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 19
19
"version" : " 7.1.0-beta.0" ,
20
20
"factory" : " ./update-7/index#typeScriptHelpersRule" ,
21
21
"description" : " Update an Angular CLI project to version 7."
22
+ },
23
+ "migration-05" : {
24
+ "version" : " 7.0.3" ,
25
+ "factory" : " ./update-7" ,
26
+ "description" : " Update an Angular CLI project to version 7."
22
27
}
23
28
}
24
29
}
Original file line number Diff line number Diff line change @@ -20,8 +20,11 @@ export { typeScriptHelpersRule } from './typescript-helpers';
20
20
export default function ( ) : Rule {
21
21
return ( tree , context ) => {
22
22
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
+ }
24
26
27
+ const type = existing ? existing . type : NodeDependencyType . Dev ;
25
28
addPackageJsonDependency (
26
29
tree ,
27
30
{
You can’t perform that action at this time.
0 commit comments