Skip to content

Commit f3b4b65

Browse files
author
Vasil Chimev
authored
refactor(script): update animations dependency if present in the project (#1129)
* feat(script): update animations dependency if present in the project * refactor: add a missing semicolon
1 parent 75077fa commit f3b4b65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: nativescript-angular/bin/update-app-ng-deps

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ function updateDeps(deps, devDeps, newDeps) {
3030

3131
console.log(`Updated dependency ${dependencyName} to version: ${version}.`);
3232
});
33+
34+
if (deps["@angular/animations"]) {
35+
const ngDep = Object.keys(newDeps).find(dep => dep.startsWith("@angular"));
36+
deps["@angular/animations"] = newDeps[ngDep];
37+
}
3338
}
3439

3540
const pluginDeps = pluginPackageJson.peerDependencies;

0 commit comments

Comments
 (0)