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 1919 "version" : " 7.1.0-beta.0" ,
2020 "factory" : " ./update-7/index#typeScriptHelpersRule" ,
2121 "description" : " Update an Angular CLI project to version 7."
22+ },
23+ "migration-05" : {
24+ "version" : " 7.0.4" ,
25+ "factory" : " ./update-7" ,
26+ "description" : " Update an Angular CLI project to version 7."
2227 }
2328 }
2429}
Original file line number Diff line number Diff line change @@ -20,8 +20,11 @@ export { typeScriptHelpersRule } from './typescript-helpers';
2020export default function ( ) : Rule {
2121 return ( tree , context ) => {
2222 const existing = getPackageJsonDependency ( tree , '@angular-devkit/build-angular' ) ;
23- const type = existing ? existing . type : NodeDependencyType . Dev ;
23+ if ( existing && latestVersions . DevkitBuildAngular === existing . version ) {
24+ return ;
25+ }
2426
27+ const type = existing ? existing . type : NodeDependencyType . Dev ;
2528 addPackageJsonDependency (
2629 tree ,
2730 {
You can’t perform that action at this time.
0 commit comments