Files
flatbuffers/ts/repositories.bzl
Sebastian Barfurth 65e49faf76 Bump the versions of all aspect Bazel dependencies (#8508)
* bump all aspect dependency versions to latest

* add workspace file to test bazel repo
2025-01-24 10:09:22 -08:00

23 lines
952 B
Python

"""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",
],
)