Skip to content

Commit

Permalink
fix: sconfig deps sandbox bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Aug 14, 2019
1 parent 6ec7f8a commit 161693c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/typescript/src/internal/ts_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ TsConfigInfo = provider()

def _ts_config_impl(ctx):
files = depset([ctx.file.src])
return [DefaultInfo(files = files), TsConfigInfo(deps = ctx.files.deps)]
transitive_deps = []
for dep in ctx.attr.deps:
if TsConfigInfo in dep:
transitive_deps.extend(dep[TsConfigInfo].deps)
return [DefaultInfo(files = files), TsConfigInfo(deps = ctx.files.deps + transitive_deps)]

ts_config = rule(
implementation = _ts_config_impl,
Expand Down

0 comments on commit 161693c

Please sign in to comment.