File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/schematics/angular/migrations Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 17
17
},
18
18
"migration-04" : {
19
19
"version" : " 7.1.0-beta.0" ,
20
- "factory" : " ./update-7/index#typeScriptHelpersRule" ,
20
+ "factory" : " ./update-7/index#typeScriptHelpersRule"
21
+ },
22
+ "migration-05" : {
23
+ "version" : " 7.0.3" ,
24
+ "factory" : " ./update-7" ,
21
25
"description" : " Update an Angular CLI project to version 7."
22
26
}
23
27
}
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