From 1db8bf312ed2f5605d17f6f48e00a1ecc3ff1a68 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Thu, 14 Mar 2019 15:26:11 -0700 Subject: [PATCH] fix(bazel): Remove @angular/upgrade from dev dependencies (#29319) @angular/upgrade is unnecessary, but it's required by router/upgrade. PR Close #29319 --- .../ng-add/files/angular-metadata.tsconfig.json.template | 3 ++- packages/bazel/src/schematics/ng-add/index.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bazel/src/schematics/ng-add/files/angular-metadata.tsconfig.json.template b/packages/bazel/src/schematics/ng-add/files/angular-metadata.tsconfig.json.template index de2189f735..a336cee8ce 100644 --- a/packages/bazel/src/schematics/ng-add/files/angular-metadata.tsconfig.json.template +++ b/packages/bazel/src/schematics/ng-add/files/angular-metadata.tsconfig.json.template @@ -16,6 +16,7 @@ "exclude": [ "node_modules/@angular/bazel/**", "node_modules/@angular/compiler-cli/**", - "node_modules/@angular/**/testing/**" + "node_modules/@angular/**/testing/**", + "node_modules/@angular/router/upgrade*" ] } diff --git a/packages/bazel/src/schematics/ng-add/index.ts b/packages/bazel/src/schematics/ng-add/index.ts index e8a0d3dd3d..8a1fe694fa 100755 --- a/packages/bazel/src/schematics/ng-add/index.ts +++ b/packages/bazel/src/schematics/ng-add/index.ts @@ -43,7 +43,6 @@ function addDevDependenciesToPackageJson(options: Schema) { const devDependencies: {[k: string]: string} = { '@angular/bazel': angularCoreVersion, - '@angular/upgrade': angularCoreVersion, '@bazel/bazel': '^0.23.0', '@bazel/ibazel': '^0.9.0', '@bazel/karma': '^0.27.4',