Skip to content

Commit

Permalink
fix(@schematics/angular): replace forked web-animations-js with lat…
Browse files Browse the repository at this point in the history
…est version

Closes #14518
  • Loading branch information
alan-agius4 authored and vikerman committed Jun 25, 2019
1 parent d55e98e commit 463bcc9
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ import { latestVersions } from '../../utility/latest-versions';

export function updateDependencies() {
return (host: Tree) => {

const dependenciesToUpdate: Record<string, string> = {
'@angular-devkit/build-angular': latestVersions.DevkitBuildAngular,
'@angular-devkit/build-ng-packagr': latestVersions.DevkitBuildNgPackagr,
'@angular-devkit/build-webpack': latestVersions.DevkitBuildWebpack,
'zone.js': latestVersions.ZoneJs,
'tsickle': latestVersions.tsickle,
tsickle: latestVersions.tsickle,
'ng-packagr': latestVersions.ngPackagr,
// FIXME: change to ^2.3.2 as soon as it's released with the pr208 fix
'web-animations-js': 'github:angular/web-animations-js#release_pr208',
'web-animations-js': '^2.3.2',
};

for (const [name, version] of Object.entries(dependenciesToUpdate)) {
Expand All @@ -29,15 +27,12 @@ export function updateDependencies() {
continue;
}

addPackageJsonDependency(
host,
{
type: current.type,
name,
version,
overwrite: true,
},
);
addPackageJsonDependency(host, {
type: current.type,
name,
version,
overwrite: true,
});
}
};
}

0 comments on commit 463bcc9

Please sign in to comment.