Skip to content

Commit 38a9584

Browse files
committed
fix(typescript): do not re-declare .json output files in srcs if they are already generated files
1 parent b07d823 commit 38a9584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript/internal/ts_project.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _ts_project_impl(ctx):
174174
json_outs = [
175175
ctx.actions.declare_file(_join(ctx.attr.out_dir, src.short_path[pkg_len:]))
176176
for src in ctx.files.srcs
177-
if src.basename.endswith(".json")
177+
if src.basename.endswith(".json") and src.is_source
178178
]
179179
else:
180180
json_outs = []

0 commit comments

Comments
 (0)