Skip to content

Commit 32a9fc8

Browse files
committed
feat: support bazel path-mapping
1 parent e7a6c5a commit 32a9fc8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

ts/private/ts_project.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ def _ts_project_impl(ctx):
123123

124124
typecheck_outs = []
125125

126-
execution_requirements = {}
126+
execution_requirements = {
127+
"supports-path-mapping": "1",
128+
}
127129
executable = ctx.executable.tsc
128130

129131
supports_workers = options.supports_workers

ts/private/ts_proto_library.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ def _protoc_action(ctx, proto_info, outputs):
131131
),
132132
env = {"BAZEL_BINDIR": ctx.bin_dir.path},
133133
use_default_shell_env = True,
134+
execution_requirements = {
135+
"supports-path-mapping": "1",
136+
},
134137
)
135138

136139
def _declare_outs(ctx, info, ext):

ts/private/ts_validate_options.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Assumes all tsconfig file deps are already copied to the bin directory.
4545
env = {
4646
"BAZEL_BINDIR": ctx.bin_dir.path,
4747
},
48+
execution_requirements = {
49+
"supports-path-mapping": "1",
50+
},
4851
use_default_shell_env = True,
4952
)
5053

0 commit comments

Comments
 (0)