From 45fda44e9005bce24ee83cfaecb3ed8c3fcc6df2 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Wed, 28 Feb 2018 10:25:21 -0500 Subject: [PATCH] fix(schematics): fixed the switch-to-cli17 migration to handle the case when the CLI file isn't present --- packages/schematics/migrations/20180225-switch-to-cli17.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/schematics/migrations/20180225-switch-to-cli17.ts b/packages/schematics/migrations/20180225-switch-to-cli17.ts index 083b96b29f265..bb155f47ffcb6 100644 --- a/packages/schematics/migrations/20180225-switch-to-cli17.ts +++ b/packages/schematics/migrations/20180225-switch-to-cli17.ts @@ -17,7 +17,6 @@ export default { ['karma-cli']: undefined }; - json.dependencies = { ...json.dependencies, "@angular/animations": "5.2.6", @@ -35,6 +34,8 @@ export default { }; }); - unlinkSync('.angular_cli165.tgz'); + try { + unlinkSync('.angular_cli165.tgz'); + } catch (e) {} } };