From 7dc264b83bd21c5278e4e89b91de8c49b86821d4 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Fri, 10 Jan 2025 11:58:37 -0800 Subject: [PATCH] refactor: move ts_config src to outputted JsInfo.sources --- ts/private/ts_config.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/private/ts_config.bzl b/ts/private/ts_config.bzl index 7ff34400..3656c4bb 100644 --- a/ts/private/ts_config.bzl +++ b/ts/private/ts_config.bzl @@ -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 = [], @@ -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,