Skip to content

Commit

Permalink
fix(@schematics/angular): migrate build-angular for 7.0 RC users
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin committed Oct 23, 2018
1 parent a53cf44 commit 7743cf0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
},
"migration-04": {
"version": "7.1.0-beta.0",
"factory": "./update-7/index#typeScriptHelpersRule",
"factory": "./update-7/index#typeScriptHelpersRule"
},
"migration-05": {
"version": "7.0.3",
"factory": "./update-7",
"description": "Update an Angular CLI project to version 7."
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/schematics/angular/migrations/update-7/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ export { typeScriptHelpersRule } from './typescript-helpers';
export default function(): Rule {
return (tree, context) => {
const existing = getPackageJsonDependency(tree, '@angular-devkit/build-angular');
const type = existing ? existing.type : NodeDependencyType.Dev;
if (existing && latestVersions.DevkitBuildAngular === existing.version) {
return;
}

const type = existing ? existing.type : NodeDependencyType.Dev;
addPackageJsonDependency(
tree,
{
Expand Down

0 comments on commit 7743cf0

Please sign in to comment.