Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@schematics/angular): update zone.js version during CLI 8.0 migra…
Browse files Browse the repository at this point in the history
…tion

Fixes #14281
clydin authored and alexeagle committed Apr 26, 2019
1 parent 6180329 commit 3a15fdf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/schematics/angular/migrations/update-8/update-builders.ts
Original file line number Diff line number Diff line change
@@ -42,6 +42,20 @@ export function updateBuilders() {
);
}

current = getPackageJsonDependency(host, 'zone.js');
if (current && current.version !== latestVersions.ZoneJs) {
updates = true;
addPackageJsonDependency(
host,
{
type: current.type,
name: 'zone.js',
version: latestVersions.ZoneJs,
overwrite: true,
},
);
}

if (updates) {
context.addTask(new NodePackageInstallTask());
}

0 comments on commit 3a15fdf

Please sign in to comment.