| bazel_dep(name = "aspect_rules_js", version = "0.0.0", dev_dependency = True) |
| local_path_override( |
| module_name = "aspect_rules_js", |
| path = "../..", |
| ) |
| |
| bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True) |
| |
| npm = use_extension( |
| "@aspect_rules_js//npm:extensions.bzl", |
| "npm", |
| dev_dependency = True, |
| ) |
| npm.npm_translate_lock( |
| name = "npm", |
| data = [ |
| "//:package.json", |
| "//:pnpm-workspace.yaml", |
| ], |
| npmrc = "//:.npmrc", |
| patch_args = { |
| "*": ["-p1"], |
| "@gregmagolan/test-a": ["-p4"], |
| }, |
| patches = { |
| "@gregmagolan/test-a": ["//:patches/test-a.patch"], |
| "@gregmagolan/test-a@0.0.1": ["//:patches/test-a@0.0.1.patch"], |
| "@gregmagolan/test-b": ["//:patches/test-b.patch"], |
| }, |
| pnpm_lock = "//:pnpm-lock.yaml", |
| update_pnpm_lock = True, |
| verify_node_modules_ignored = "//:.bazelignore", |
| verify_patches = "//patches:patches.list", |
| ) |
| use_repo(npm, "npm") |