| module(name = "other_module") |
| |
| bazel_dep(name = "aspect_rules_js", version = "0.0.0") |
| |
| npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") |
| npm.npm_translate_lock( |
| name = "npm_other_module", |
| npmrc = "//:.npmrc", |
| pnpm_lock = "//:pnpm-lock.yaml", |
| verify_node_modules_ignored = "//:.bazelignore", |
| ) |
| use_repo(npm, "npm_other_module") |
| |
| # A non-root module may request a pnpm version for the default "pnpm" repo, but |
| # the version requested by the e2e test root module takes priority. The e2e test |
| # root module uses pnpm_version_from, which must win over this registration; this |
| # is asserted by //:pnpm_versions_test in the e2e test root module. |
| pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") |
| pnpm.pnpm( |
| name = "pnpm", |
| pnpm_version = "9.15.9", |
| pnpm_version_integrity = "sha512-aARhQYk8ZvrQHAeSMRKOmvuJ74fiaR1p5NQO7iKJiClf1GghgbrlW1hBjDolO95lpQXsfF+UA+zlzDzTfc8lMQ==", |
| ) |
| use_repo(pnpm, "pnpm") |