File: repositories.bzl

package info (click to toggle)
golang-github-google-flatbuffers 24.12.23-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 17,704 kB
  • sloc: cpp: 53,217; python: 6,900; cs: 5,566; java: 4,370; php: 1,460; javascript: 1,061; xml: 1,016; sh: 886; makefile: 13
file content (23 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""WORKSPACE macro to load flatbuffers's npm package list."""

load("@aspect_rules_js//npm:npm_import.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",
        defs_bzl_filename = "npm_link_all_packages.bzl",
        data = [
            "@com_github_google_flatbuffers//:package.json",
        ],
    )