...

Text file src/github.com/google/flatbuffers/tests/ts/bazel_repository_test_dir/BUILD

Documentation: github.com/google/flatbuffers/tests/ts/bazel_repository_test_dir

     1load("@aspect_rules_js//js:defs.bzl", "js_test")
     2load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library")
     3load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")
     4load("@npm//:defs.bzl", "npm_link_all_packages")
     5
     6npm_link_all_packages(name = "node_modules")
     7
     8npm_link_package(
     9    name = "node_modules/flatbuffers",
    10    src = "@com_github_google_flatbuffers//ts:flatbuffers",
    11)
    12
    13flatbuffer_ts_library(
    14    name = "one_fbs",
    15    srcs = ["one.fbs"],
    16)
    17
    18flatbuffer_ts_library(
    19    name = "two_fbs",
    20    srcs = ["two.fbs"],
    21    deps = [":one_fbs"],
    22)
    23
    24js_test(
    25    name = "import_test",
    26    data = [
    27        "package.json",
    28        ":node_modules/flatbuffers",
    29        ":two_fbs",
    30    ],
    31    entry_point = "import_test.js",
    32)

View as plain text