Skip to content

Commit

Permalink
refactor: make npm targets foo__nested_node_modules, `foo__all_file…
Browse files Browse the repository at this point in the history
…s` & `foo__contents` private
  • Loading branch information
gregmagolan committed Nov 26, 2019
1 parent 5de3c6c commit 39d2305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/npm_install/generate_build_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,11 +835,13 @@ filegroup(
filegroup(
name = "${pkg._name}__nested_node_modules",${nestedNodeModulesStarlark}
visibility = ["//visibility:private"],
)
filegroup(
name = "${pkg._name}__all_files",
srcs = [":${pkg._name}__files", ":${pkg._name}__nested_node_modules"],
visibility = ["//:__subpackages__"],
)
node_module_library(
Expand All @@ -853,6 +855,7 @@ node_module_library(
node_module_library(
name = "${pkg._name}__contents",
srcs = [":${pkg._name}__all_files"],${namedSourcesStarlark}
visibility = ["//:__subpackages__"],
)
# ${pkg._name}__typings is the subset of ${pkg._name}__contents that are declarations
Expand Down

0 comments on commit 39d2305

Please sign in to comment.