Skip to content

Commit 85dc132

Browse files
authored
fix(builtin): add DeclarationInfo sources from dependencies as inputs to npm_package_bin driven actions (#2353)
1 parent c148138 commit 85dc132

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/node/npm_package_bin.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"A generic rule to run a tool that appears in node_modules/.bin"
22

3-
load("//:providers.bzl", "JSModuleInfo", "NpmPackageInfo", "node_modules_aspect", "run_node")
3+
load("//:providers.bzl", "DeclarationInfo", "JSModuleInfo", "NpmPackageInfo", "node_modules_aspect", "run_node")
44
load("//internal/common:expand_variables.bzl", "expand_variables")
55
load("//internal/linker:link_node_modules.bzl", "module_mappings_aspect")
66

@@ -39,6 +39,8 @@ def _inputs(ctx):
3939
inputs_depsets.append(d[NpmPackageInfo].sources)
4040
if JSModuleInfo in d:
4141
inputs_depsets.append(d[JSModuleInfo].sources)
42+
if DeclarationInfo in d:
43+
inputs_depsets.append(d[DeclarationInfo].declarations)
4244
return depset(ctx.files.data, transitive = inputs_depsets).to_list()
4345

4446
def _impl(ctx):

0 commit comments

Comments
 (0)