mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 15:28:19 +00:00
Migrate from rules_nodejs to rules_js/rules_ts (#7923)
* Start using pnpm
* Add @npm
* get more stuff set up
* Get the analysis phase passing.
* Get esbuild working?
* Get it compiling?
$ bazel build //tests/ts/...
* Try to get the test working
* test is passing
* Get the other tests working
* clarify comment
* clean up a bit
* Try to add another test
* Add another test
* clean up more
* remove unused reference
* Add e2e test
* Get more of the test working
* add lock file
* Get test working on its own
* Get e2e test passing
* fix infinite recursion
* Add comments
* clean up some more
* clean up more again
* Source typescript version from package.json
* run buildifier
* lint
* Fix unset `extra_env`
* Incorporate feedback
* run buildifier
---------
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
load("//:build_defs.bzl", "flatbuffer_cc_library")
|
||||
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
# rules_js works around various JS tooling limitations by copying everything
|
||||
# into the output directory. Make the test data available to the tests this way.
|
||||
copy_to_bin(
|
||||
name = "test_data_copied_to_bin",
|
||||
srcs = glob([
|
||||
"*.mon",
|
||||
"*.json",
|
||||
]),
|
||||
visibility = ["//tests/ts:__subpackages__"],
|
||||
)
|
||||
|
||||
# Test binary.
|
||||
cc_test(
|
||||
name = "flatbuffers_test",
|
||||
|
||||
Reference in New Issue
Block a user