forked from BigfootDev/flatbuffers
Remove Bazel WORKSPACE setup. (#8509)
This commit is contained in:
@@ -8,7 +8,6 @@ filegroup(
|
||||
"BUILD.bazel",
|
||||
"compile_flat_file.sh",
|
||||
"pnpm-lock.yaml",
|
||||
"repositories.bzl",
|
||||
] + glob([
|
||||
"*.ts",
|
||||
]),
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
"""WORKSPACE macro to load flatbuffers's npm package list."""
|
||||
|
||||
load("@aspect_rules_js//npm:repositories.bzl", _npm_translate_lock = "npm_translate_lock")
|
||||
|
||||
def flatbuffers_npm(name):
|
||||
_npm_translate_lock(
|
||||
name = name,
|
||||
npmrc = "@com_github_google_flatbuffers//:.npmrc",
|
||||
pnpm_lock = "@com_github_google_flatbuffers//:pnpm-lock.yaml",
|
||||
# Override the Bazel package where pnpm-lock.yaml is located and link
|
||||
# to the specified package instead.
|
||||
root_package = "ts",
|
||||
# Set this to True when the lock file needs to be updated, commit the
|
||||
# changes, then set to False again.
|
||||
# Alternatively, run:
|
||||
# $ bazel run -- @pnpm//:pnpm --dir $PWD install --lockfile-only
|
||||
update_pnpm_lock = False,
|
||||
verify_node_modules_ignored = "@com_github_google_flatbuffers//:.bazelignore",
|
||||
data = [
|
||||
"@com_github_google_flatbuffers//:package.json",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user