@@ -63,20 +63,42 @@ load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_d
63
63
64
64
build_bazel_rules_nodejs_dependencies ()
65
65
66
+ http_archive (
67
+ name = "aspect_rules_js" ,
68
+ sha256 = "75c25a0f15a9e4592bbda45b57aa089e4bf17f9176fd735351e8c6444df87b52" ,
69
+ strip_prefix = "rules_js-2.1.0" ,
70
+ url = "https://github.com/aspect-build/rules_js/releases/download/v2.1.0/rules_js-v2.1.0.tar.gz" ,
71
+ )
72
+
73
+ load ("@aspect_rules_js//js:repositories.bzl" , "rules_js_dependencies" )
74
+
75
+ rules_js_dependencies ()
76
+
66
77
load ("@rules_nodejs//nodejs:repositories.bzl" , "nodejs_register_toolchains" )
67
78
79
+ NODE_VERSION = "22.0.0"
80
+
81
+ NODE_REPOSITORIES = {
82
+ "22.0.0-darwin_arm64" : ("node-v22.0.0-darwin-arm64.tar.gz" , "node-v22.0.0-darwin-arm64" , "ea96d349cfaa67aa87ceeaa3e5b52c9167f7ac302fd8d1ff162d0785e9dc0785" ),
83
+ "22.0.0-darwin_amd64" : ("node-v22.0.0-darwin-x64.tar.gz" , "node-v22.0.0-darwin-x64" , "422a3887ff5418f0a4552d89cf99346ab8ab51bb5d384660baa88b8444d2c111" ),
84
+ "22.0.0-linux_arm64" : ("node-v22.0.0-linux-arm64.tar.xz" , "node-v22.0.0-linux-arm64" , "83711d29cbe46375bdffab5419f3d831892e24294169272f6c39edc364556241" ),
85
+ "22.0.0-linux_ppc64le" : ("node-v22.0.0-linux-ppc64le.tar.xz" , "node-v22.0.0-linux-ppc64le" , "2b3fb8707a79243bfb3131312b86716ddc3855bce21bb168095b6b916798e5e9" ),
86
+ "22.0.0-linux_s390x" : ("node-v22.0.0-linux-s390x.tar.xz" , "node-v22.0.0-linux-s390x" , "89a8efeeb9f94ce9ea251b8109e079c14919f4c0dc2cbc9f545ec47ef0886737" ),
87
+ "22.0.0-linux_amd64" : ("node-v22.0.0-linux-x64.tar.xz" , "node-v22.0.0-linux-x64" , "9122e50f2642afd5f6078cafd1f52ede60fc464284384f05c18a04d13d07ae5a" ),
88
+ "22.0.0-windows_amd64" : ("node-v22.0.0-win-x64.zip" , "node-v22.0.0-win-x64" , "32d639b47d4c0a651ff8f8d7d41a454168a3d4045be37985f9a810cf8cef6174" ),
89
+ }
90
+
68
91
nodejs_register_toolchains (
69
92
name = "nodejs" ,
70
- node_repositories = {
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" ),
78
- },
79
- node_version = "18.19.1" ,
93
+ node_repositories = NODE_REPOSITORIES ,
94
+ node_version = NODE_VERSION ,
95
+ )
96
+
97
+ load ("@aspect_rules_js//js:toolchains.bzl" , "rules_js_register_toolchains" )
98
+
99
+ rules_js_register_toolchains (
100
+ node_repositories = NODE_REPOSITORIES ,
101
+ node_version = NODE_VERSION ,
80
102
)
81
103
82
104
load ("@build_bazel_rules_nodejs//:index.bzl" , "yarn_install" )
@@ -135,3 +157,22 @@ load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "
135
157
esbuild_repositories (
136
158
npm_repository = "npm" ,
137
159
)
160
+
161
+ load ("@aspect_rules_js//npm:repositories.bzl" , "npm_translate_lock" )
162
+
163
+ npm_translate_lock (
164
+ name = "npm2" ,
165
+ data = [
166
+ "//:package.json" ,
167
+ "//:pnpm-workspace.yaml" ,
168
+ ],
169
+ npmrc = "//:.npmrc" ,
170
+ pnpm_lock = "//:pnpm-lock.yaml" ,
171
+ update_pnpm_lock = True ,
172
+ verify_node_modules_ignored = "//:.bazelignore" ,
173
+ yarn_lock = "//:yarn.lock" ,
174
+ )
175
+
176
+ load ("@npm2//:repositories.bzl" , "npm_repositories" )
177
+
178
+ npm_repositories ()
0 commit comments