From c1d4885e62e0cfe8daa8feffd63e2ce29b00c36b Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Wed, 1 Jul 2020 08:49:32 -0700 Subject: [PATCH] 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. --- packages/typescript/internal/build_defs.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typescript/internal/build_defs.bzl b/packages/typescript/internal/build_defs.bzl index 942f49c3a0..fc425c2fa6 100644 --- a/packages/typescript/internal/build_defs.bzl +++ b/packages/typescript/internal/build_defs.bzl @@ -104,7 +104,7 @@ def _filter_ts_inputs(all_inputs): return [ f for f in all_inputs - if f.extension in ["js", "jsx", "ts", "tsx", "json"] + if f.extension in ["js", "jsx", "ts", "tsx", "json", "proto"] ] def _compile_action(ctx, inputs, outputs, tsconfig_file, node_opts, description = "prodmode"):