@@ -9,10 +9,22 @@ bazel_dep(name = "rules_nodejs", version = "6.5.0")
99bazel_dep (name = "aspect_rules_js" , version = "2.4.2" )
1010bazel_dep (name = "aspect_rules_ts" , version = "3.6.3" )
1111bazel_dep (name = "rules_pkg" , version = "0.8.1" )
12+
1213# Alow for usage of rules_pkg@0.8.1 even though other deps want a later verison.
13- multiple_version_override (module_name = "rules_pkg" , versions = ["0.8.1" , "1.1.0" ])
14+ multiple_version_override (
15+ module_name = "rules_pkg" ,
16+ versions = [
17+ "0.8.1" ,
18+ "1.1.0" ,
19+ ],
20+ )
21+
1422bazel_dep (name = "rules_python" , version = "1.5.3" )
15- single_version_override (module_name = "rules_python" , version = "1.5.3" )
23+ single_version_override (
24+ module_name = "rules_python" ,
25+ version = "1.5.3" ,
26+ )
27+
1628bazel_dep (name = "aspect_bazel_lib" , version = "2.20.0" )
1729bazel_dep (name = "bazel_skylib" , version = "1.8.1" )
1830bazel_dep (name = "aspect_rules_esbuild" , version = "0.22.1" )
@@ -23,26 +35,31 @@ git_override(
2335 commit = "a957283cdef0ade1fc6d1d7404f14577cebd3642" ,
2436 remote = "https://github.com/devversion/rules_angular.git" ,
2537)
38+
2639bazel_dep (name = "devinfra" )
2740git_override (
2841 module_name = "devinfra" ,
2942 commit = "7a11f99c467ca5ae4411c27beeec4300e32b616a" ,
3043 remote = "https://github.com/angular/dev-infra.git" ,
3144)
45+
3246bazel_dep (name = "rules_sass" )
3347git_override (
3448 module_name = "rules_sass" ,
3549 commit = "76078d5e9776a0080dcee496e90b88d8a6179c19" ,
3650 remote = "https://github.com/devversion/rules_sass.git" ,
3751)
52+
3853bazel_dep (name = "rules_browsers" )
3954git_override (
4055 module_name = "rules_browsers" ,
4156 commit = "8ee9ae3216ef26516c8ef20537c89857343cdc3a" ,
4257 remote = "https://github.com/devversion/rules_browsers.git" ,
4358)
4459
60+ # The below is needed until https://github.com/bazel-contrib/rules_nodejs/pull/3853 is merged and released.
4561NODE_24_VERSION = "24.0.0"
62+
4663NODE_24_REPO = {
4764 "24.0.0-darwin_arm64" : ("node-v24.0.0-darwin-arm64.tar.gz" , "node-v24.0.0-darwin-arm64" , "194e2f3dd3ec8c2adcaa713ed40f44c5ca38467880e160974ceac1659be60121" ),
4865 "24.0.0-darwin_amd64" : ("node-v24.0.0-darwin-x64.tar.gz" , "node-v24.0.0-darwin-x64" , "f716b3ce14a7e37a6cbf97c9de10d444d7da07ef833cd8da81dd944d111e6a4a" ),
@@ -60,43 +77,55 @@ node.toolchain(
6077 node_version = NODE_24_VERSION ,
6178)
6279use_repo (node , "nodejs_toolchains" )
80+ use_repo (node , "nodejs_darwin_amd64" )
81+ use_repo (node , "nodejs_darwin_arm64" )
82+ use_repo (node , "nodejs_linux_amd64" )
83+ use_repo (node , "nodejs_linux_arm64" )
84+ use_repo (node , "nodejs_linux_ppc64le" )
85+ use_repo (node , "nodejs_linux_s390x" )
86+ use_repo (node , "nodejs_windows_amd64" )
6387
64- node .toolchain (
88+ node_dev = use_extension ("@rules_nodejs//nodejs:extensions.bzl" , "node" , dev_dependency = True )
89+
90+ # Node.js 20
91+ node_dev .toolchain (
6592 name = "node20" ,
66- node_repositories = {
67- "20.19.0-darwin_arm64" : ("node-v20.19.0-darwin-arm64.tar.gz" , "node-v20.19.0-darwin-arm64" , "c016cd1975a264a29dc1b07c6fbe60d5df0a0c2beb4113c0450e3d998d1a0d9c" ),
68- "20.19.0-darwin_amd64" : ("node-v20.19.0-darwin-x64.tar.gz" , "node-v20.19.0-darwin-x64" , "a8554af97d6491fdbdabe63d3a1cfb9571228d25a3ad9aed2df856facb131b20" ),
69- "20.19.0-linux_arm64" : ("node-v20.19.0-linux-arm64.tar.xz" , "node-v20.19.0-linux-arm64" , "dbe339e55eb393955a213e6b872066880bb9feceaa494f4d44c7aac205ec2ab9" ),
70- "20.19.0-linux_ppc64le" : ("node-v20.19.0-linux-ppc64le.tar.xz" , "node-v20.19.0-linux-ppc64le" , "84937108f005679e60b486ed8e801cebfe923f02b76d8e710463d32f82181f65" ),
71- "20.19.0-linux_s390x" : ("node-v20.19.0-linux-s390x.tar.xz" , "node-v20.19.0-linux-s390x" , "11f8ee99d792a83bba7b29911e0229dd6cd5e88987d7416346067db1cc76d89a" ),
72- "20.19.0-linux_amd64" : ("node-v20.19.0-linux-x64.tar.xz" , "node-v20.19.0-linux-x64" , "b4e336584d62abefad31baecff7af167268be9bb7dd11f1297112e6eed3ca0d5" ),
73- "20.19.0-windows_amd64" : ("node-v20.19.0-win-x64.zip" , "node-v20.19.0-win-x64" , "be72284c7bc62de07d5a9fd0ae196879842c085f11f7f2b60bf8864c0c9d6a4f" ),
74- },
7593 node_version = "20.19.0" ,
7694)
77- use_repo (node , "node20_toolchains" )
95+ use_repo (node_dev , "node20_darwin_arm64" )
96+ use_repo (node_dev , "node20_darwin_amd64" )
97+ use_repo (node_dev , "node20_linux_amd64" )
98+ use_repo (node_dev , "node20_linux_arm64" )
99+ use_repo (node_dev , "node20_linux_s390x" )
100+ use_repo (node_dev , "node20_linux_ppc64le" )
101+ use_repo (node_dev , "node20_windows_amd64" )
78102
79- node .toolchain (
103+ # Node.js 22
104+ node_dev .toolchain (
80105 name = "node22" ,
81- node_repositories = {
82- "22.12.0-darwin_arm64" : ("node-v22.12.0-darwin-arm64.tar.gz" , "node-v22.12.0-darwin-arm64" , "293dcc6c2408da21562d135b0412525e381bb6fe150d688edb58fe850d0f3e13" ),
83- "22.12.0-darwin_amd64" : ("node-v22.12.0-darwin-x64.tar.gz" , "node-v22.12.0-darwin-x64" , "52bc25dd026db7247c3c00439afdb83e95087248267f02d6c1a7250d1f896173" ),
84- "22.12.0-linux_arm64" : ("node-v22.12.0-linux-arm64.tar.xz" , "node-v22.12.0-linux-arm64" , "8cfd5a8b9afae5a2e0bd86b0148ca31d2589c0ea669c2d0b11c132e35d90ed68" ),
85- "22.12.0-linux_ppc64le" : ("node-v22.12.0-linux-ppc64le.tar.xz" , "node-v22.12.0-linux-ppc64le" , "199a606ba1ee86cce6d6b369c71f9d00873d2836a6662592afc3b6a5923e2004" ),
86- "22.12.0-linux_s390x" : ("node-v22.12.0-linux-s390x.tar.xz" , "node-v22.12.0-linux-s390x" , "9b517f8006eb4b451d40c461cbe64f93c6455566dbe2613387ab02412bc06d35" ),
87- "22.12.0-linux_amd64" : ("node-v22.12.0-linux-x64.tar.xz" , "node-v22.12.0-linux-x64" , "22982235e1b71fa8850f82edd09cdae7e3f32df1764a9ec298c72d25ef2c164f" ),
88- "22.12.0-windows_amd64" : ("node-v22.12.0-win-x64.zip" , "node-v22.12.0-win-x64" , "2b8f2256382f97ad51e29ff71f702961af466c4616393f767455501e6aece9b8" ),
89- },
90106 node_version = "22.12.0" ,
91107)
92- use_repo (node , "node22_toolchains" )
108+ use_repo (node_dev , "node22_darwin_arm64" )
109+ use_repo (node_dev , "node22_darwin_amd64" )
110+ use_repo (node_dev , "node22_linux_amd64" )
111+ use_repo (node_dev , "node22_linux_arm64" )
112+ use_repo (node_dev , "node22_linux_s390x" )
113+ use_repo (node_dev , "node22_linux_ppc64le" )
114+ use_repo (node_dev , "node22_windows_amd64" )
93115
94- node .toolchain (
116+ # Node.js 24
117+ node_dev .toolchain (
95118 name = "node24" ,
96119 node_repositories = NODE_24_REPO ,
97120 node_version = NODE_24_VERSION ,
98121)
99- use_repo (node , "node24_toolchains" )
122+ use_repo (node_dev , "node24_darwin_arm64" )
123+ use_repo (node_dev , "node24_darwin_amd64" )
124+ use_repo (node_dev , "node24_linux_amd64" )
125+ use_repo (node_dev , "node24_linux_arm64" )
126+ use_repo (node_dev , "node24_linux_s390x" )
127+ use_repo (node_dev , "node24_linux_ppc64le" )
128+ use_repo (node_dev , "node24_windows_amd64" )
100129
101130npm = use_extension ("@aspect_rules_js//npm:extensions.bzl" , "npm" )
102131npm .npm_translate_lock (
@@ -143,20 +172,20 @@ use_repo(npm, "npm")
143172
144173rules_ts_ext = use_extension ("@aspect_rules_ts//ts:extensions.bzl" , "ext" )
145174rules_ts_ext .deps (
175+ name = "angular_cli_npm_typescript" ,
146176 # Obtained by: curl --silent https://registry.npmjs.org/typescript/5.9.2 | jq -r '.dist.integrity'
147177 ts_integrity = "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==" ,
148178 ts_version_from = "//:package.json" ,
149- name = "angular_cli_npm_typescript" ,
150179)
151- use_repo (rules_ts_ext , ** {"npm_typescript" :"angular_cli_npm_typescript" })
180+ use_repo (rules_ts_ext , ** {"npm_typescript" : "angular_cli_npm_typescript" })
152181
153182rules_angular = use_extension ("@rules_angular//setup:extensions.bzl" , "rules_angular" )
154183rules_angular .setup (
155184 name = "components_rules_angular_configurable_deps" ,
156185 angular_compiler_cli = "//:node_modules/@angular/compiler-cli" ,
157186 typescript = "//:node_modules/typescript" ,
158187)
159- use_repo (rules_angular , ** {"rules_angular_configurable_deps" :"components_rules_angular_configurable_deps" })
188+ use_repo (rules_angular , ** {"rules_angular_configurable_deps" : "components_rules_angular_configurable_deps" })
160189
161190register_toolchains (
162191 "@devinfra//bazel/git-toolchain:git_linux_toolchain" ,
0 commit comments