diff --git a/integration/bazel/.bazelrc b/integration/bazel/.bazelrc index 0451524e61..a91cea38ef 100644 --- a/integration/bazel/.bazelrc +++ b/integration/bazel/.bazelrc @@ -22,7 +22,3 @@ build --define=enable_legacy_rollup_rule=1 # Don't create symlinks build --symlink_prefix=/ - -# Turn on managed directories feature in Bazel -# This allows us to avoid installing a second copy of node_modules -# common --experimental_allow_incremental_repository_updates diff --git a/packages/bazel/src/BUILD.bazel b/packages/bazel/src/BUILD.bazel index d83cc00e8e..4b5587150a 100644 --- a/packages/bazel/src/BUILD.bazel +++ b/packages/bazel/src/BUILD.bazel @@ -11,16 +11,12 @@ exports_files(glob(["*.bzl"])) load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") -filegroup( - name = "empty_node_modules", - srcs = [], -) - nodejs_binary( name = "modify_tsconfig", - data = ["modify_tsconfig.js"], + data = [ + "modify_tsconfig.js", + ], entry_point = ":modify_tsconfig.js", - node_modules = ":empty_node_modules", visibility = ["//visibility:public"], ) # END-DEV-ONLY diff --git a/packages/bazel/src/ng_package/BUILD.bazel b/packages/bazel/src/ng_package/BUILD.bazel index 4faebaaf88..53d57140fd 100644 --- a/packages/bazel/src/ng_package/BUILD.bazel +++ b/packages/bazel/src/ng_package/BUILD.bazel @@ -49,7 +49,6 @@ load("@npm//@bazel/typescript:index.bzl", "ts_library") ts_library( name = "lib", srcs = glob(["*.ts"]), - node_modules = "@npm//typescript:typescript__typings", tsconfig = ":tsconfig.json", deps = [ "@npm//@types/node", diff --git a/packages/bazel/src/ngc-wrapped/BUILD.bazel b/packages/bazel/src/ngc-wrapped/BUILD.bazel index c0ae3ddc05..41b26525a6 100644 --- a/packages/bazel/src/ngc-wrapped/BUILD.bazel +++ b/packages/bazel/src/ngc-wrapped/BUILD.bazel @@ -9,7 +9,6 @@ ts_library( "index.ts", ], module_name = "@angular/bazel", - node_modules = "@npm//typescript:typescript__typings", tsconfig = ":tsconfig.json", visibility = [ "//packages/bazel:__pkg__", @@ -21,6 +20,7 @@ ts_library( "@npm//@types/node", "@npm//tsickle", "@npm//typescript", + "@npm//typescript:typescript__typings", ], )