1
1
workspace (name = "angular_cli" )
2
2
3
- DEFAULT_NODE_VERSION = "18.19 .1"
3
+ DEFAULT_NODE_VERSION = "20.11 .1"
4
4
5
5
# Workaround for: https://github.com/bazel-contrib/bazel-lib/issues/968.
6
6
# Override toolchain for tar on windows.
@@ -67,43 +67,28 @@ rules_pkg_dependencies()
67
67
# Setup the Node.js toolchain
68
68
load ("@rules_nodejs//nodejs:repositories.bzl" , "nodejs_register_toolchains" )
69
69
70
- NODE_18_REPO = {
71
- "18.19 .1-darwin_arm64" : ("node-v18.19 .1-darwin-arm64.tar.gz" , "node-v18.19 .1-darwin-arm64" , "0c7249318868877032ed21cc0ed450015ee44b31b9b281955521cd3fc39fbfa3 " ),
72
- "18.19 .1-darwin_amd64" : ("node-v18.19 .1-darwin-x64.tar.gz" , "node-v18.19 .1-darwin-x64" , "ab67c52c0d215d6890197c951e1bd479b6140ab630212b96867395e21d813016 " ),
73
- "18.19 .1-linux_arm64" : ("node-v18.19 .1-linux-arm64.tar.xz" , "node-v18.19 .1-linux-arm64" , "228ad1eee660fba3f9fd2cccf02f05b8ebccc294d27f22c155d20b233a9d76b3 " ),
74
- "18.19 .1-linux_ppc64le" : ("node-v18.19 .1-linux-ppc64le.tar.xz" , "node-v18.19 .1-linux-ppc64le" , "2e5812b8fc00548e2e8ab9daa88ace13974c16b6ba5595a7a50c35f848f7d432 " ),
75
- "18.19 .1-linux_s390x" : ("node-v18.19 .1-linux-s390x.tar.xz" , "node-v18.19 .1-linux-s390x" , "15106acf4c9e3aca02416dd89fb5c71af77097042455a73f9caa064c1988ead5 " ),
76
- "18.19 .1-linux_amd64" : ("node-v18.19 .1-linux-x64.tar.xz" , "node-v18.19 .1-linux-x64" , "f35f24edd4415cd609a2ebc03be03ed2cfe211d7333d55c752d831754fb849f0 " ),
77
- "18.19 .1-windows_amd64" : ("node-v18.19 .1-win-x64.zip" , "node-v18.19 .1-win-x64" , "ff08f8fe253fba9274992d7052e9d9a70141342d7b36ddbd6e84cbe823e312c6 " ),
70
+ NODE_20_REPO = {
71
+ "20.11 .1-darwin_arm64" : ("node-v20.11 .1-darwin-arm64.tar.gz" , "node-v20.11 .1-darwin-arm64" , "e0065c61f340e85106a99c4b54746c5cee09d59b08c5712f67f99e92aa44995d " ),
72
+ "20.11 .1-darwin_amd64" : ("node-v20.11 .1-darwin-x64.tar.gz" , "node-v20.11 .1-darwin-x64" , "c52e7fb0709dbe63a4cbe08ac8af3479188692937a7bd8e776e0eedfa33bb848 " ),
73
+ "20.11 .1-linux_arm64" : ("node-v20.11 .1-linux-arm64.tar.xz" , "node-v20.11 .1-linux-arm64" , "c957f29eb4e341903520caf362534f0acd1db7be79c502ae8e283994eed07fe1 " ),
74
+ "20.11 .1-linux_ppc64le" : ("node-v20.11 .1-linux-ppc64le.tar.xz" , "node-v20.11 .1-linux-ppc64le" , "51343cacf5cdf5c4b5e93e919d19dd373d6ef43d5f2c666eae299f26e31d08b5 " ),
75
+ "20.11 .1-linux_s390x" : ("node-v20.11 .1-linux-s390x.tar.xz" , "node-v20.11 .1-linux-s390x" , "b32616b705cd0ddbb230b95c693e3d7a37becc2ced9bcadea8dc824cceed6be0 " ),
76
+ "20.11 .1-linux_amd64" : ("node-v20.11 .1-linux-x64.tar.xz" , "node-v20.11 .1-linux-x64" , "d8dab549b09672b03356aa2257699f3de3b58c96e74eb26a8b495fbdc9cf6fbe " ),
77
+ "20.11 .1-windows_amd64" : ("node-v20.11 .1-win-x64.zip" , "node-v20.11 .1-win-x64" , "bc032628d77d206ffa7f133518a6225a9c5d6d9210ead30d67e294ff37044bda " ),
78
78
}
79
79
80
- nodejs_register_toolchains (
81
- name = "node18" ,
82
- # The below can be removed once @rules_nodejs/nodejs is updated to latest which contains https://github.com/bazelbuild/rules_nodejs/pull/3701
83
- node_repositories = NODE_18_REPO ,
84
- node_version = "18.19.1" ,
85
- )
86
-
87
80
# Set the default nodejs toolchain to the latest supported major version
88
81
nodejs_register_toolchains (
89
82
name = "nodejs" ,
90
83
# The below c
10000
an be removed once @rules_nodejs/nodejs is updated to latest which contains https://github.com/bazelbuild/rules_nodejs/pull/3701
91
- node_repositories = NODE_18_REPO ,
84
+ node_repositories = NODE_20_REPO ,
92
85
node_version = DEFAULT_NODE_VERSION ,
93
86
)
94
87
95
88
nodejs_register_toolchains (
96
89
name = "node20" ,
97
90
# The below can be removed once @rules_nodejs/nodejs is updated to latest which contains https://github.com/bazelbuild/rules_nodejs/pull/3701
98
- node_repositories = {
99
- "20.11.1-darwin_arm64" : ("node-v20.11.1-darwin-arm64.tar.gz" , "node-v20.11.1-darwin-arm64" , "e0065c61f340e85106a99c4b54746c5cee09d59b08c5712f67f99e92aa44995d" ),
100
- "20.11.1-darwin_amd64" : ("node-v20.11.1-darwin-x64.tar.gz" , "node-v20.11.1-darwin-x64" , "c52e7fb0709dbe63a4cbe08ac8af3479188692937a7bd8e776e0eedfa33bb848" ),
101
- "20.11.1-linux_arm64" : ("node-v20.11.1-linux-arm64.tar.xz" , "node-v20.11.1-linux-arm64" , "c957f29eb4e341903520caf362534f0acd1db7be79c502ae8e283994eed07fe1" ),
102
- "20.11.1-linux_ppc64le" : ("node-v20.11.1-linux-ppc64le.tar.xz" , "node-v20.11.1-linux-ppc64le" , "51343cacf5cdf5c4b5e93e919d19dd373d6ef43d5f2c666eae299f26e31d08b5" ),
103
- "20.11.1-linux_s390x" : ("node-v20.11.1-linux-s390x.tar.xz" , "node-v20.11.1-linux-s390x" , "b32616b705cd0ddbb230b95c693e3d7a37becc2ced9bcadea8dc824cceed6be0" ),
104
- "20.11.1-linux_amd64" : ("node-v20.11.1-linux-x64.tar.xz" , "node-v20.11.1-linux-x64" , "d8dab549b09672b03356aa2257699f3de3b58c96e74eb26a8b495fbdc9cf6fbe" ),
105
- "20.11.1-windows_amd64" : ("node-v20.11.1-win-x64.zip" , "node-v20.11.1-win-x64" , "bc032628d77d206ffa7f133518a6225a9c5d6d9210ead30d67e294ff37044bda" ),
106
- },
91
+ node_repositories = NODE_20_REPO ,
107
92
node_version = "20.11.1" ,
108
93
)
109
94
@@ -125,7 +110,7 @@ nodejs_register_toolchains(
125
110
load ("@aspect_rules_js//js:toolchains.bzl" , "rules_js_register_toolchains" )
126
111
127
112
rules_js_register_toolchains (
128
- node_repositories = NODE_18_REPO ,
113
+ node_repositories = NODE_20_REPO ,
129
114
node_version = DEFAULT_NODE_VERSION ,
130
115
)
131
116
0 commit comments