From 5a0deb8d6933ca887ddd475f35908633497f9ed9 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 9 Jan 2019 16:25:23 -0800 Subject: [PATCH] fix(bazel): Add @bazel/bazel to dev deps (#28032) Project created by @angular/cli depends on Bazel at build time and we should not assume that Bazel is available globally. Instead, the project should specify an explicit dev dependency on `@bazel/bazel`. PR Close #28032 --- packages/bazel/src/schematics/ng-new/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bazel/src/schematics/ng-new/index.ts b/packages/bazel/src/schematics/ng-new/index.ts index 3701f1c648..3dbbc27bf8 100755 --- a/packages/bazel/src/schematics/ng-new/index.ts +++ b/packages/bazel/src/schematics/ng-new/index.ts @@ -36,6 +36,7 @@ function addDevDependenciesToPackageJson(options: Schema) { const devDependencies: {[k: string]: string} = { '@angular/bazel': angularCoreVersion, // TODO(kyliau): Consider moving this to latest-versions.ts + '@bazel/bazel': '^0.21.0', '@bazel/karma': '^0.22.0', '@bazel/typescript': '^0.22.0', };