File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
packages/schematics/angular/migrations Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 44 "version" : " 6.0.0-beta.8" ,
55 "factory" : " ./update-6" ,
66 "description" : " Update an Angular CLI project to version 6."
7+ },
8+ "migration-02" : {
9+ "version" : " 7.0.0-beta.0" ,
10+ "factory" : " ./update-7" ,
11+ "description" : " Update an Angular CLI project to version 7."
712 }
813 }
914}
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright Google Inc. All Rights Reserved.
4+ *
5+ * Use of this source code is governed by an MIT-style license that can be
6+ * found in the LICENSE file at https://angular.io/license
7+ */
8+ import { Rule } from '@angular-devkit/schematics' ;
9+ import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks' ;
10+ import {
11+ NodeDependencyType ,
12+ addPackageJsonDependency ,
13+ } from '../../utility/dependencies' ;
14+ import { latestVersions } from '../../utility/latest-versions' ;
15+
16+
17+ export default function ( ) : Rule {
18+ return ( tree , context ) => {
19+ addPackageJsonDependency (
20+ tree ,
21+ {
22+ type : NodeDependencyType . Dev ,
23+ name : '@angular-devkit/build-angular' ,
24+ version : latestVersions . DevkitBuildAngular ,
25+ overwrite : true ,
26+ } ,
27+ ) ;
28+
29+ context . addTask ( new NodePackageInstallTask ( ) ) ;
30+ } ;
31+ }
You can’t perform that action at this time.
0 commit comments