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:
Marcel
2025-01-23 22:01:31 +01:00
committed by GitHub
parent fceafd438d
commit a9257b6963
5 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@flatbuffers_npm//:npm_link_all_packages.bzl", "npm_link_all_packages")
load("@flatbuffers_npm//:defs.bzl", "npm_link_all_packages")
filegroup(
name = "distribution",

1
ts/pnpm-lock.yaml generated Symbolic link
View File

@@ -0,0 +1 @@
../pnpm-lock.yaml

View File

@@ -16,7 +16,6 @@ def flatbuffers_npm(name):
# $ bazel run -- @pnpm//:pnpm --dir $PWD install --lockfile-only
update_pnpm_lock = False,
verify_node_modules_ignored = "@com_github_google_flatbuffers//:.bazelignore",
defs_bzl_filename = "npm_link_all_packages.bzl",
data = [
"@com_github_google_flatbuffers//:package.json",
],