Skip to content

Commit c0381d4

Browse files
committed
fix: try to fix #516
1 parent 6462f01 commit c0381d4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ts/private/ts_project.bzl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,13 @@ This might be because
210210
This is an error because Bazel does not run actions unless their outputs are needed for the requested targets to build.
211211
""")
212212

213-
output_declarations = typings_outs + typing_maps_outs + typings_srcs
213+
output_declarations = typings_outs + typing_maps_outs + typings_srcs + [
214+
# Probably not the right spot: make .json outputs also appear in typings
215+
# so they are propagated to dependents and available for typechecking
216+
s
217+
for s in output_sources
218+
if s.path.endswith(".json") and ctx.attr.resolve_json_module
219+
]
214220

215221
# Default outputs (DefaultInfo files) is what you see on the command-line for a built
216222
# library, and determines what files are used by a simple non-provider-aware downstream

0 commit comments

Comments
 (0)