Skip to content

Commit

Permalink
feat: add package_visibility attribute to npm_translate_lock (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Oct 3, 2023
1 parent 452ac99 commit f60b9b5
Show file tree
Hide file tree
Showing 17 changed files with 4,302 additions and 116 deletions.
4 changes: 4 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ npm.npm_translate_lock(
],
},
npmrc = "//:.npmrc",
package_visibility = {
"unused": ["//visibility:private"],
"@mycorp/pkg-a": ["//examples:__subpackages__"],
},
patch_args = {
"*": ["-p1"],
"@gregmagolan/test-a": ["-p4"],
Expand Down
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.

Loading

0 comments on commit f60b9b5

Please sign in to comment.