forked from BigfootDev/flatbuffers
Fix npm bzlmod (#8506)
* Restrict visibility of exported file * Align npm_translate_lock attrs * Remove defs_bzl_filename attr * Align root_package with pnpm-lock.yaml location Use a symlink to avoid copying the file.
This commit is contained in:
@@ -57,7 +57,10 @@ npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
|
||||
npm.npm_translate_lock(
|
||||
name = "flatbuffers_npm",
|
||||
npmrc = "//:.npmrc",
|
||||
pnpm_lock = "//:pnpm-lock.yaml",
|
||||
pnpm_lock = "//ts:pnpm-lock.yaml",
|
||||
# Override the Bazel package where pnpm-lock.yaml is located and link
|
||||
# to the specified package instead.
|
||||
root_package = "ts",
|
||||
verify_node_modules_ignored = "//:.bazelignore",
|
||||
)
|
||||
use_repo(npm, "flatbuffers_npm")
|
||||
|
||||
Reference in New Issue
Block a user