Skip to content

Commit

Permalink
feat: add package_visibility attribute to npm_translate_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Oct 1, 2023
1 parent 7762b73 commit 01bdf61
Show file tree
Hide file tree
Showing 15 changed files with 4,506 additions and 113 deletions.
4 changes: 4 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ npm_translate_lock(
],
},
npmrc = "//:.npmrc",
package_visibility = {
"unused": ["//visibility:private"],
"@mycorp/pkg-a": ["//examples:__subpackages__"],
},
patch_args = {
"*": ["-p1"],
"@gregmagolan/test-a": ["-p4"],
Expand Down
7 changes: 4 additions & 3 deletions docs/npm_import.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/npm_link_package.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions docs/npm_translate_lock.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions npm/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def _extension_impl(module_ctx):
npmrc = attr.npmrc,
npm_package_lock = attr.npm_package_lock,
npm_package_target_name = attr.npm_package_target_name,
package_visibility = attr.package_visibility,
patches = attr.patches,
patch_args = attr.patch_args,
pnpm_lock = attr.pnpm_lock,
Expand Down
Loading

0 comments on commit 01bdf61

Please sign in to comment.