Skip to content

Commit

Permalink
docs: document bins attr for bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Oct 18, 2023
1 parent 6d72ff4 commit b688a52
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/npm_translate_lock.md

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

12 changes: 12 additions & 0 deletions npm/private/npm_translate_lock.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,18 @@ def npm_translate_lock(
In the future, this field may be automatically populated from information in the pnpm lock
file. That feature is currently blocked on https://github.com/pnpm/pnpm/issues/5131.
Note: Bzlmod users must use an alternative syntax due to module extensions not supporting
dict-of-dict attributes:
```
bins = {
"@foo/bar": [
"foo=./foo.js",
"bar=./bar.js"
],
}
```
verify_node_modules_ignored: node_modules folders in the source tree should be ignored by Bazel.
This points to a `.bazelignore` file to verify that all nested node_modules directories
Expand Down

0 comments on commit b688a52

Please sign in to comment.