diff --git a/examples/genrule/BUILD.bazel b/examples/genrule/BUILD.bazel index dd176bb965..8905bc9654 100644 --- a/examples/genrule/BUILD.bazel +++ b/examples/genrule/BUILD.bazel @@ -31,8 +31,6 @@ genrule( name = "call_acorn", srcs = [ ":one.js", - # reference the location where the "acorn" npm package was linked in our root Bazel package. - "//:node_modules/acorn", "//:node_modules/acorn/dir", ], outs = ["out1"], @@ -69,7 +67,6 @@ genrule( ":require_acorn_js", # reference the location where the "acorn" npm package was linked in our root Bazel package. "//:node_modules/acorn", - "//:node_modules/acorn/dir", ], outs = ["out2"], cmd = """ diff --git a/npm/private/npm_link_package_store.bzl b/npm/private/npm_link_package_store.bzl index f523bca704..2af66d9b00 100644 --- a/npm/private/npm_link_package_store.bzl +++ b/npm/private/npm_link_package_store.bzl @@ -92,7 +92,7 @@ def _npm_link_package_store_impl(ctx): ) files.append(bin_file) - files_depset = depset(files) + files_depset = depset(files, transitive = [store_info.files]) transitive_files_depset = depset(files, transitive = [store_info.transitive_files])