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

Commit 2548a26

Browse files
committed
build: update to node 20
Updates the repo to Node 20 to avoid some potential issues when updating to Angular 17.2.0.
1 parent 6e8c57c commit 2548a26

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.17.1
1+
20.11.0

WORKSPACE.bazel

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

33
http_archive(
44
name = "aspect_bazel_lib",
5-
sha256 = "0da75299c5a52737b2ac39458398b3f256e41a1a6748e5457ceb3a6225269485",
6-
strip_prefix = "bazel-lib-1.31.2",
7-
url = "https://github.com/aspect-build/bazel-lib/releases/download/v1.31.2/bazel-lib-v1.31.2.tar.gz",
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",
88
)
99

10-
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
10+
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
1111

1212
aspect_bazel_lib_dependencies()
13+
aspect_bazel_lib_register_toolchains()
1314

1415
http_archive(
1516
name = "aspect_rules_js",
16-
sha256 = "dcd1567d4a93a8634ec0b888b371a60b93c18d980f77dace02eb176531a71fcf",
17-
strip_prefix = "rules_js-1.26.0",
18-
url = "https://github.com/aspect-build/rules_js/releases/download/v1.26.0/rules_js-v1.26.0.tar.gz",
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",
1920
)
2021

2122
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
@@ -26,7 +27,17 @@ load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
2627

2728
nodejs_register_toolchains(
2829
name = "nodejs",
29-
node_version = "16.17.1",
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",
3041
)
3142

3243
# Add a patch fix for rules_webtesting v0.3.5 required for enabling runfiles on Windows.

0 commit comments

Comments
 (0)