Skip to content

Commit c1d4885

Browse files
authored
fix(typescript): add .proto files from npm deps to inputs of ts_library (#1991)
If @bazel/typescript is a dep of ts_library then the linker needs to include 'third_party/github.com/bazelbuild/bazel/src/main/protobuf/worker_protocol.proto' as an input as worker.js will run out of node_modules. The failure was only observed on Angular repo RBE since running ts_library has workers on by default it is not sandboxed.
1 parent becd9bc commit c1d4885

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/typescript/internal/build_defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _filter_ts_inputs(all_inputs):
104104
return [
105105
f
106106
for f in all_inputs
107-
if f.extension in ["js", "jsx", "ts", "tsx", "json"]
107+
if f.extension in ["js", "jsx", "ts", "tsx", "json", "proto"]
108108
]
109109

110110
def _compile_action(ctx, inputs, outputs, tsconfig_file, node_opts, description = "prodmode"):

0 commit comments

Comments
 (0)