diff --git a/dev-infra/BUILD.bazel b/dev-infra/BUILD.bazel index d1272fcd5c..0e8666105e 100644 --- a/dev-infra/BUILD.bazel +++ b/dev-infra/BUILD.bazel @@ -38,7 +38,7 @@ genrule( pkg_npm( name = "npm_package", srcs = [ - "BUILD.bazel", + "index.bzl", "//dev-infra/bazel:files", "//dev-infra/benchmark:files", ], diff --git a/dev-infra/index.bzl b/dev-infra/index.bzl new file mode 100644 index 0000000000..cd495e8552 --- /dev/null +++ b/dev-infra/index.bzl @@ -0,0 +1,9 @@ +# Copyright Google LLC All Rights Reserved. +# +# Use of this source code is governed by an MIT-style license that can be +# found in the LICENSE file at https://angular.io/license + +# File is currently empty but serves as indicator for `rules_nodejs` and instructs it to +# preserve the content output in the NPM install workspace. This allows consumers to use +# rules and targets from within Bazel. e.g. by using `@npm//@angular/dev-infra-private/<..>`. +# See: https://github.com/bazelbuild/rules_nodejs/commit/4f508b1a0be1f5444e9c13b0439e649449792fef.