Skip to content

Commit

Permalink
docs: include pnpm in bzlmod install snippet (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored May 16, 2024
1 parent d3f10eb commit 5d41461
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ npm.npm_translate_lock(
)
use_repo(npm, "npm")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
# Allows developers to use the matching pnpm version, for example:
# bazel run -- @pnpm --dir $PWD install
use_repo(pnpm, "pnpm")
\`\`\`
## Using WORKSPACE
Expand Down
6 changes: 6 additions & 0 deletions e2e/bzlmod/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ npm.npm_import(
)
use_repo(npm, "npm_meaning-of-life")
use_repo(npm, "npm_meaning-of-life__links")

pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")

# Allows developers to run the identical version of pnpm for local workflows like
# bazel run -- @pnpm --dir $PWD install
use_repo(pnpm, "pnpm")

0 comments on commit 5d41461

Please sign in to comment.