Skip to content

Commit 65dc6f6

Browse files
devversionalan-agius4
authored andcommitted
build: fix node module repository symlinking disabled in Bazel
With the rules nodejs v5 update, the symlinking default has changed from `true` to `false`. This commit explicitly adds the property and sets it to `true` similar to other Angular repositories. This helps speeding up the local DX by not having to maintain a second node modules directory.
1 parent 156006a commit 65dc6f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WORKSPACE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ yarn_install(
6464
"//:.yarn/releases/yarn-1.22.17.cjs",
6565
"//:.yarnrc",
6666
],
67+
# Currently disabled due to:
68+
# 1. Missing Windows support currently.
69+
# 2. Incompatibilites with the `ts_library` rule.
6770
exports_directories_only = False,
6871
package_json = "//:package.json",
72+
# We prefer to symlink the `node_modules` to only maintain a single install.
73+
# See https://github.com/angular/dev-infra/pull/446#issuecomment-1059820287 for details.
74+
symlink_node_modules = True,
6975
yarn = "//:.yarn/releases/yarn-1.22.17.cjs",
7076
yarn_lock = "//:yarn.lock",
7177
)

0 commit comments

Comments
 (0)