File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
packages/schematics/angular/migrations Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1414 "version" : " 7.0.0-rc.0" ,
1515 "factory" : " ./update-7/index#polyfillMetadataRule" ,
1616 "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."
1722 }
1823 }
1924}
Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ export { polyfillMetadataRule } from './polyfill-metadata';
1919export default function ( ) : Rule {
2020 return ( tree , context ) => {
2121 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+ }
2325
26+ const type = existing ? existing . type : NodeDependencyType . Dev ;
2427 addPackageJsonDependency (
2528 tree ,
2629 {
You can’t perform that action at this time.
0 commit comments