Skip to content

Commit

Permalink
refactor: move ts_config src to outputted JsInfo.sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jan 14, 2025
1 parent ad6f86c commit 7dc264b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ts/private/ts_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def _ts_config_impl(ctx):
if TsConfigInfo in dep:
transitive_deps.append(dep[TsConfigInfo].deps)

transitive_sources = js_lib_helpers.gather_transitive_sources([], ctx.attr.deps)
transitive_sources = js_lib_helpers.gather_transitive_sources(files, ctx.attr.deps)

transitive_types = js_lib_helpers.gather_transitive_types(files, ctx.attr.deps)
transitive_types = js_lib_helpers.gather_transitive_types([], ctx.attr.deps)

npm_sources = js_lib_helpers.gather_npm_sources(
srcs = [],
Expand Down Expand Up @@ -81,8 +81,8 @@ def _ts_config_impl(ctx):
# provide tsconfig.json file via `types` and not `sources` since they are only needed
# for downstream ts_project rules and not in downstream runtime binary rules
target = ctx.label,
sources = depset(),
types = files_depset,
sources = files_depset,
types = depset(),
transitive_sources = transitive_sources,
transitive_types = transitive_types,
npm_sources = npm_sources,
Expand Down

0 comments on commit 7dc264b

Please sign in to comment.