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

Commit ede6fb7

Browse files
committed
build: update Bazel rules_js to v2.0.0
This also required the update of aspect_bazel_lib to v2.8.0 and the update of Bazel itself to 7.3.0.
1 parent c500208 commit ede6fb7

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

.bazelrc

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ test --incompatible_exclusive_test_sandboxed
3232
# Fixes use of npm paths with spaces such as some within the puppeteer module
3333
build --experimental_inprocess_symlink_creation
3434

35+
# Warn if test timeout is much longer than execution time
36+
test --test_verbose_timeout_warnings
37+
38+
# Prevent large amounbt of `dependency checking of directories is unsound` warnings
39+
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
40+
41+
# Disable bazel modules for now
42+
common --noenable_bzlmod
43+
3544
####################################################
3645
# User bazel configuration
3746
# NOTE: This needs to be the *last* entry in the config.

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.3.1
1+
7.3.0

WORKSPACE.bazel

+10-20
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

33
http_archive(
44
name = "aspect_bazel_lib",
5-
sha256 = "979667bb7276ee8fcf2c114c9be9932b9a3052a64a647e0dcaacfb9c0016f0a3",
6-
strip_prefix = "bazel-lib-2.4.1",
7-
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.4.1/bazel-lib-v2.4.1.tar.gz",
5+
sha256 = "cea19e6d8322fb212f155acb58d1590f632e53abde7f1be5f0a086a93cf4c9f4",
6+
strip_prefix = "bazel-lib-2.8.0",
7+
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.8.0/bazel-lib-v2.8.0.tar.gz",
88
)
99

1010
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
@@ -14,30 +14,20 @@ aspect_bazel_lib_register_toolchains()
1414

1515
http_archive(
1616
name = "aspect_rules_js",
17-
sha256 = "630a71aba66c4023a5b16ab3efafaeed8b1a2865ccd168a34611eb73876b3fc4",
18-
strip_prefix = "rules_js-1.37.1",
19-
url = "https://github.com/aspect-build/rules_js/releases/download/v1.37.1/rules_js-v1.37.1.tar.gz",
17+
sha256 = "6b7e73c35b97615a09281090da3645d9f03b2a09e8caa791377ad9022c88e2e6",
18+
strip_prefix = "rules_js-2.0.0",
19+
url = "https://github.com/aspect-build/rules_js/releases/download/v2.0.0/rules_js-v2.0.0.tar.gz",
2020
)
2121

2222
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
2323

2424
rules_js_dependencies()
2525

26-
load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
26+
load("@aspect_rules_js//js:toolchains.bzl", "rules_js_register_toolchains")
2727

28-
nodejs_register_toolchains(
28+
rules_js_register_toolchains(
2929
name = "nodejs",
30-
# The below can be removed once @rules_nodejs/nodejs is updated to latest which contains https://github.com/bazelbuild/rules_nodejs/pull/3701
31-
node_repositories = {
32-
"20.11.0-darwin_arm64": ("node-v20.11.0-darwin-arm64.tar.gz", "node-v20.11.0-darwin-arm64", "94e443d007e2882f8e5aecc85d978f7591520dc3b642adc7583b3cb0b3fc37d7"),
33-
"20.11.0-darwin_amd64": ("node-v20.11.0-darwin-x64.tar.gz", "node-v20.11.0-darwin-x64", "c0ba02c905814258bd99a362027f8d4d2cc738218a9cf1dce2620e8735e3a80e"),
34-
"20.11.0-linux_arm64": ("node-v20.11.0-linux-arm64.tar.xz", "node-v20.11.0-linux-arm64", "f6df68c6793244071f69023a9b43a0cf0b13d65cbe86d55925c28e4134d9aafb"),
35-
"20.11.0-linux_ppc64le": ("node-v20.11.0-linux-ppc64le.tar.xz", "node-v20.11.0-linux-ppc64le", "6a0e1fa23d7bc707711bbc36159b4220eca123e13435d266d690c6b6c443dc67"),
36-
"20.11.0-linux_s390x": ("node-v20.11.0-linux-s390x.tar.xz", "node-v20.11.0-linux-s390x", "cc92efa3fa101d613539451b1cf323ea9ac6198b4a68a7d3bf3b1090c6a7b5da"),
37-
"20.11.0-linux_amd64": ("node-v20.11.0-linux-x64.tar.xz", "node-v20.11.0-linux-x64", "822780369d0ea309e7d218e41debbd1a03f8cdf354ebf8a4420e89f39cc2e612"),
38-
"20.11.0-windows_amd64": ("node-v20.11.0-win-x64.zip", "node-v20.11.0-win-x64", "893115cd92ad27bf178802f15247115e93c0ef0c753b93dca96439240d64feb5"),
39-
},
40-
node_version = "20.11.0",
30+
node_version = "20.14.0",
4131
)
4232

4333
# Add a patch fix for rules_webtesting v0.3.5 required for enabling runfiles on Windows.
@@ -69,7 +59,7 @@ load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories"
6959

7060
web_test_repositories()
7161

72-
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
62+
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
7363

7464
npm_translate_lock(
7565
name = "npm",

0 commit comments

Comments
 (0)