diff --git a/reflection/BUILD.bazel b/reflection/BUILD.bazel index fd548776b..f2760933c 100644 --- a/reflection/BUILD.bazel +++ b/reflection/BUILD.bazel @@ -1,14 +1,5 @@ -load("//:typescript.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"], -) diff --git a/reflection/ts/BUILD.bazel b/reflection/ts/BUILD.bazel new file mode 100644 index 000000000..64047812f --- /dev/null +++ b/reflection/ts/BUILD.bazel @@ -0,0 +1,8 @@ +load("//:typescript.bzl", "flatbuffer_ts_library") + +flatbuffer_ts_library( + name = "reflection_ts_fbs", + srcs = ["//reflection:reflection_fbs_schema"], + include_reflection = False, + visibility = ["//visibility:public"], +) diff --git a/typescript.bzl b/typescript.bzl index f87eff193..4f7e9aa98 100644 --- a/typescript.bzl +++ b/typescript.bzl @@ -85,7 +85,7 @@ def flatbuffer_ts_library( "types": ["node"], }, }, - deps = deps + ["//ts:flatbuffers"] + (["//reflection:reflection_ts_fbs"] if include_reflection else []), + deps = deps + ["//ts:flatbuffers"] + (["//reflection/ts:reflection_ts_fbs"] if include_reflection else []), ) js_library( name = name,