File tree 2 files changed +9
-1
lines changed
packages/schematics/angular/migrations
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 14
14
"version" : " 7.0.0-rc.0" ,
15
15
"factory" : " ./update-7/index#polyfillMetadataRule" ,
16
16
"description" : " Update an Angular CLI project to version 7."
17
+ },
18
+ "migration-04" : {
19
+ "version" : " 7.0.3" ,
20
+ "factory" : " ./update-7" ,
21
+ "description" : " Update an Angular CLI project to version 7."
17
22
}
18
23
}
19
24
}
Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ export { polyfillMetadataRule } from './polyfill-metadata';
19
19
export default function ( ) : Rule {
20
20
return ( tree , context ) => {
21
21
const existing = getPackageJsonDependency ( tree , '@angular-devkit/build-angular' ) ;
22
- const type = existing ? existing . type : NodeDependencyType . Dev ;
22
+ if ( existing && latestVersions . DevkitBuildAngular === existing . version ) {
23
+ return ;
24
+ }
23
25
26
+ const type = existing ? existing . type : NodeDependencyType . Dev ;
24
27
addPackageJsonDependency (
25
28
tree ,
26
29
{
You can’t perform that action at this time.
0 commit comments