From 85dc13267b20db0e62cdfbaed0248e603f6d4efc Mon Sep 17 00:00:00 2001 From: Matt Mackay Date: Wed, 16 Dec 2020 18:19:35 -0500 Subject: [PATCH] fix(builtin): add DeclarationInfo sources from dependencies as inputs to npm_package_bin driven actions (#2353) --- internal/node/npm_package_bin.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/node/npm_package_bin.bzl b/internal/node/npm_package_bin.bzl index 1ed16b768e..b578683286 100644 --- a/internal/node/npm_package_bin.bzl +++ b/internal/node/npm_package_bin.bzl @@ -1,6 +1,6 @@ "A generic rule to run a tool that appears in node_modules/.bin" -load("//:providers.bzl", "JSModuleInfo", "NpmPackageInfo", "node_modules_aspect", "run_node") +load("//:providers.bzl", "DeclarationInfo", "JSModuleInfo", "NpmPackageInfo", "node_modules_aspect", "run_node") load("//internal/common:expand_variables.bzl", "expand_variables") load("//internal/linker:link_node_modules.bzl", "module_mappings_aspect") @@ -39,6 +39,8 @@ def _inputs(ctx): inputs_depsets.append(d[NpmPackageInfo].sources) if JSModuleInfo in d: inputs_depsets.append(d[JSModuleInfo].sources) + if DeclarationInfo in d: + inputs_depsets.append(d[DeclarationInfo].declarations) return depset(ctx.files.data, transitive = inputs_depsets).to_list() def _impl(ctx):