@@ -157,9 +157,6 @@ node_dev.toolchain(
157157 node_version = "24.9.0" ,
158158)
159159
160- ############################################
161- # npm dependencies used by examples
162-
163160npm = use_extension (
164161 "@aspect_rules_js//npm:extensions.bzl" ,
165162 "npm" ,
@@ -175,37 +172,16 @@ npm.npm_translate_lock(
175172 ],
176173 },
177174 custom_postinstalls = {
178- "@aspect-test/c" : "echo moo > cow.txt" ,
179- "@aspect-test/[email protected] " :
"echo mooo >> cow.txt" ,
180175 "pngjs" : "chmod -R a+X *" , # fixes malformed tarball content file permissions in this package after extraction (see https://github.com/aspect-build/rules_js/issues/1637 for more details)
181176 },
182177 data = [
183178 "//:package.json" ,
184179 "//:pnpm-workspace.yaml" ,
185- "//examples/js_binary:package.json" ,
186- "//examples/js_lib_pkg/a:package.json" ,
187- "//examples/js_lib_pkg/b:package.json" ,
188- "//examples/linked_consumer:package.json" ,
189- "//examples/linked_empty_node_modules:package.json" ,
190- "//examples/linked_lib:package.json" ,
191- "//examples/linked_pkg:package.json" ,
192- "//examples/macro:package.json" ,
193- "//examples/nextjs:package.json" ,
194- "//examples/npm_deps:package.json" ,
195- "//examples/npm_deps/patches:[email protected] " ,
196- "//examples/npm_package/libs/lib_a:package.json" ,
197- "//examples/npm_package/packages/pkg_a:package.json" ,
198- "//examples/npm_package/packages/pkg_b:package.json" ,
199- "//examples/npm_package/packages/pkg_d:package.json" ,
200- "//examples/npm_package/packages/pkg_e:package.json" ,
201- "//examples/runfiles:package.json" ,
202- "//examples/stack_traces:package.json" ,
203- "//examples/vite3:package.json" ,
204- "//examples/vite6:package.json" ,
205- "//examples/webpack_cli:package.json" ,
206180 "//js/private/coverage/bundle:package.json" ,
207181 "//js/private/devserver/src:package.json" ,
208182 "//js/private/test/image:package.json" ,
183+ "//js/private/test/image-fixture-a:package.json" ,
184+ "//js/private/test/image-fixture-d:package.json" ,
209185 "//js/private/test/js_run_devserver:package.json" ,
210186 "//js/private/test/node-patches:package.json" ,
211187 "//js/private/worker/src:package.json" ,
@@ -263,28 +239,11 @@ npm.npm_translate_lock(
263239 npmrc = "//:.npmrc" ,
264240 package_visibility = {
265241 "unused" : ["//npm/private/test:__subpackages__" ],
266- "@mycorp/pkg-a" : [
267- "//examples:__subpackages__" ,
268- "//js/private/test/image:__subpackages__" ,
269- ],
270- "@mycorp/pkg-d" : [
271- "//examples:__subpackages__" ,
272- "//js/private/test/image:__subpackages__" ,
273- ],
274- "@mycorp/pkg-e" : ["//examples:__subpackages__" ],
275242 },
276243 pnpm_lock = "//:pnpm-lock.yaml" ,
277- public_hoist_packages = {
278- # Instructs the linker to hoist the [email protected] npm package to `node_modules/ms` in the `examples/npm_deps` package. 279- # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where
280- # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as
281- # other direct dependencies in the `examples/npm_deps/package.json`.
282- "[email protected] " : [
"examples/npm_deps" ],
283- },
284244 update_pnpm_lock = True ,
285245 use_pnpm = "@pnpm10//:package/bin/pnpm.cjs" ,
286246 verify_node_modules_ignored = "//:.bazelignore" ,
287- verify_patches = "//examples/npm_deps/patches:patches" ,
288247)
289248npm .npm_translate_lock (
290249 name = "npm-no_optional" ,
@@ -306,26 +265,8 @@ use_repo(
306265 "npm__es5-ext__0.10.64__links" ,
307266 "npm__fsevents__2.3.3__links" ,
308267 "npm__google-closure-compiler__20251111.0.0__links" ,
309- "npm__next__15.2.6_1642820312__links" ,
310268 "npm__rollup__4.55.2" ,
311269 "npm__rollup__4.55.2__links" ,
312270 "npm__unused__0.2.2__links" ,
313271 "npm__webpack-bundle-analyzer__4.5.0_bufferutil_4.0.8" ,
314272)
315-
316- # As an example, manually import a package using explicit coordinates.
317- # Just a demonstration of the syntax de-sugaring.
318- npm .npm_import (
319- name = "acorn__8.4.0" ,
320- bins = {"acorn" : "./bin/acorn" },
321- integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==" ,
322- package = "acorn" ,
323- # Root package where to link the package store
324- root_package = "" ,
325- version = "8.4.0" ,
326- )
327- use_repo (
328- npm ,
329- "acorn__8.4.0" ,
330- "acorn__8.4.0__links" ,
331- )
0 commit comments