We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5712c commit 1c50e96Copy full SHA for 1c50e96
packages/typescript/internal/ts_project.bzl
@@ -170,8 +170,9 @@ def _ts_project_impl(ctx):
170
# NB: We don't have emit_declaration_only setting here, so use presence of any JS outputs as an equivalent.
171
# tsc will only produce .json if it also produces .js
172
if len(ctx.outputs.js_outs):
173
+ pkg_len = len(ctx.label.package) + 1 if len(ctx.label.package) else 0
174
json_outs = [
- ctx.actions.declare_file(_join(ctx.attr.out_dir, src.short_path[len(ctx.label.package) + 1:]))
175
+ ctx.actions.declare_file(_join(ctx.attr.out_dir, src.short_path[pkg_len:]))
176
for src in ctx.files.srcs
177
if src.basename.endswith(".json")
178
]
0 commit comments