Skip to content

Commit 72dc96b

Browse files
clydinalexeagle
authored andcommitted
fix(@schematics/angular): update zone.js version during CLI 8.0 migration
Fixes #14281
1 parent 2acded4 commit 72dc96b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/schematics/angular/migrations/update-8/update-builders.ts

+14
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ export function updateBuilders() {
4242
);
4343
}
4444

45+
current = getPackageJsonDependency(host, 'zone.js');
46+
if (current && current.version !== latestVersions.ZoneJs) {
47+
updates = true;
48+
addPackageJsonDependency(
49+
host,
50+
{
51+
type: current.type,
52+
name: 'zone.js',
53+
version: latestVersions.ZoneJs,
54+
overwrite: true,
55+
},
56+
);
57+
}
58+
4559
if (updates) {
4660
context.addTask(new NodePackageInstallTask());
4761
}

0 commit comments

Comments
 (0)