Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 6aba64d

Browse files
alan-agius4CaerusKaru
authored andcommitted
build: update nodejs rules to 0.37.0 and enable managed_directories (#1240)
1 parent e02cc48 commit 6aba64d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.bazelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,12 @@ build --strategy=AngularTemplateCompile=worker
5858
# Use the legacy AOT compiler strategy. We don't want to compile with Ivy nor with "ngtsc" which
5959
# does not generate factory files which are needed for AOT.
6060
build --define=compile=legacy
61+
62+
###############################
63+
# NodeJS rules settings
64+
# These settings are required for rules_nodejs
65+
###############################
66+
67+
# Turn on managed directories feature in Bazel
68+
# This allows us to avoid installing a second copy of node_modules
69+
common --experimental_allow_incremental_repository_updates

WORKSPACE

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
workspace(name = "nguniversal")
1+
workspace(
2+
name = "nguniversal",
3+
managed_directories = {"@npm": ["node_modules"]},
4+
)
25

36
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
47

58
# Add NodeJS rules (explicitly used for sass bundle rules)
69
http_archive(
710
name = "build_bazel_rules_nodejs",
8-
sha256 = "6d4edbf28ff6720aedf5f97f9b9a7679401bf7fca9d14a0fff80f644a99992b4",
9-
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.32.2/rules_nodejs-0.32.2.tar.gz"],
11+
sha256 = "0d9660cf0894f1fe1e9840818553e0080fbce0851169812d77a70bdb9981c946",
12+
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.37.0/rules_nodejs-0.37.0.tar.gz"],
1013
)
1114

1215
# Setup the NodeJS toolchain

0 commit comments

Comments
 (0)