@@ -12,9 +12,7 @@ http_archive(
1212 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.4/rules_nodejs-5.8.4.tar.gz" ],
1313)
1414
15- # Add skylib which contains common Bazel utilities. Note that `rules_nodejs` would also
16- # bring in the skylib repository but with an older version that does not support shorthands
17- # for declaring Bazel build setting flags.
15+ # Add skylib which contains common Bazel utilities.
1816http_archive (
1917 name = "bazel_skylib" ,
2018 sha256 = "a9c5d3a22461ed7063aa7b088f9c96fa0aaaa8b6984b601f84d705adc47d8a58" ,
@@ -56,8 +54,6 @@ load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
5654
5755rules_js_dependencies ()
5856
59- load ("@rules_nodejs//nodejs:repositories.bzl" , "nodejs_register_toolchains" )
60-
6157NODE_VERSION = "22.11.0"
6258
6359NODE_REPOSITORIES = {
@@ -70,39 +66,17 @@ NODE_REPOSITORIES = {
7066 "22.11.0-windows_amd64" : ("node-v22.11.0-win-x64.zip" , "node-v22.11.0-win-x64" , "905373a059aecaf7f48c1ce10ffbd5334457ca00f678747f19db5ea7d256c236" ),
7167}
7268
73- nodejs_register_toolchains (
74- name = "nodejs" ,
75- node_repositories = NODE_REPOSITORIES ,
76- node_version = NODE_VERSION ,
77- )
78-
7969load ("@aspect_rules_js//js:toolchains.bzl" , "rules_js_register_toolchains" )
8070
8171rules_js_register_toolchains (
8272 node_repositories = NODE_REPOSITORIES ,
8373 node_version = NODE_VERSION ,
8474)
8575
86- load ("@build_bazel_rules_nodejs//:index.bzl" , "yarn_install" )
87-
88- # TODO(devversion): Remove this once `ng_package` is ported over to `rules_js`.
89- yarn_install (
90- name = "npm" ,
91- data = [
92- "//tools/bazel/legacy-rnjs:.yarn/patches/@angular-bazel-https-c46f484fb8.patch" ,
93- "//tools/bazel/legacy-rnjs:.yarn/releases/yarn-4.5.0.cjs" ,
94- "//tools/bazel/legacy-rnjs:.yarnrc.yml" ,
95- ],
96- exports_directories_only = False ,
97- package_json = "//tools/bazel/legacy-rnjs:package.json" ,
98- yarn = "//tools/bazel/legacy-rnjs:.yarn/releases/yarn-4.5.0.cjs" ,
99- yarn_lock = "//tools/bazel/legacy-rnjs:yarn.lock" ,
100- )
101-
10276load ("@aspect_rules_js//npm:repositories.bzl" , "npm_translate_lock" )
10377
10478npm_translate_lock (
105- name = "npm2 " ,
79+ name = "npm " ,
10680 custom_postinstalls = {
10781 "@angular/animations" : "node ../../@nginfra/angular-linking/index.mjs" ,
10882 "@angular/common" : "node ../../@nginfra/angular-linking/index.mjs" ,
@@ -175,7 +149,7 @@ npm_translate_lock(
175149 verify_node_modules_ignored = "//:.bazelignore" ,
176150)
177151
178- load ("@npm2 //:repositories.bzl" , "npm_repositories" )
152+ load ("@npm //:repositories.bzl" , "npm_repositories" )
179153
180154npm_repositories ()
181155
@@ -230,7 +204,7 @@ setup_dependencies_2()
230204
231205git_repository (
232206 name = "rules_angular" ,
233- commit = "514eda9ec00a6745dc11b2a62d7be2634199171e " ,
207+ commit = "0a54fca16350cab2b823908f1725aec175fcfeb2 " ,
234208 remote = "https://github.com/devversion/rules_angular.git" ,
235209)
236210
0 commit comments