Files
flatbuffers/reflection/BUILD.bazel
James Kuszmaul e5f331db99 [TS] Add single-file ts codegen & bazel rule for typescript (#7161)
The headline here is adding a flatbuffer_ts_library rule for generating
typescript code in bazel. This entails some non-trivial other changes,
but ideally none are user-visible.

In particular:
* Added a --ts-flat-file flag that generates a single *_generated.ts
  file instead of separate files for each typescript type. This makes
  bazel much happier.
* Import the bazel rules_nodejs stuff needed to support building
  typescript in bazel
* Move flatbuffers.ts to index.ts because I wasn't sure how to make
  bazel comprehend the "main" attribute of the package.json. Happy
  to take another stab at figuring that out if really needed.
* Fix another couple keyword escaping spots in typescript...
2022-03-10 10:08:13 -08:00

15 lines
337 B
Python

load("//:build_defs.bzl", "flatbuffer_ts_library")
filegroup(
name = "reflection_fbs_schema",
srcs = ["reflection.fbs"],
visibility = ["//visibility:public"],
)
flatbuffer_ts_library(
name = "reflection_ts_fbs",
srcs = ["reflection.fbs"],
include_reflection = False,
visibility = ["//visibility:public"],
)