Skip to content

Commit

Permalink
ts_project: ensure assets get propagated
Browse files Browse the repository at this point in the history
#533, in fixing the issue caused by #493, also omitted adding assets that shouldn't be copied to the `JsInfo` provider. As a result, downstream rules (such as `esbuild`) will fail to find the file because it never collected it.
  • Loading branch information
iamricard authored Dec 2, 2024
1 parent 5b19859 commit d70c5f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/private/ts_project.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ See https://github.com/aspect-build/rules_ts/issues/361 for more details.
asset = ctx.actions.declare_file(a_out)
copy_file_action(ctx, a, asset)
assets_outs.append(asset)
else:
assets_outs.append(a)

outputs = js_outs + map_outs + typings_outs + typing_maps_outs
if ctx.outputs.buildinfo_out:
Expand Down

0 comments on commit d70c5f4

Please sign in to comment.