Skip to content

Commit a956474

Browse files
alexeaglehansl
authored andcommitted
build: allow users to have no //:node_modules (#445)
1 parent 90c8b47 commit a956474

File tree

1 file changed

+3
-3
lines changed
  • packages/angular_devkit/build_optimizer

1 file changed

+3
-3
lines changed

packages/angular_devkit/build_optimizer/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ ts_library(
2525
"**/*_spec.ts",
2626
],
2727
),
28-
# Note, intentionally no node_modules attribute - so it will use the
29-
# compile-time deps in the downstream repository's //:node_modules.
30-
# This creates the assumption that every consumer does have that target.
3128
tsconfig = "//:tsconfig.json",
29+
# Borrow the compile-time deps of the typescript compiler
30+
# Just to avoid an extra npm install action.
31+
node_modules = "@build_bazel_rules_typescript_tsc_wrapped_deps//:node_modules",
3232
)

0 commit comments

Comments
 (0)