Skip to content

Commit

Permalink
node_cache: Invoke pnpm via corepack.
Browse files Browse the repository at this point in the history
This avoids prompting the user that corepack is about to download
pnpm.

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Mar 29, 2024
1 parent 2c13d0e commit 708c3e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/node_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def setup_node_modules(production: bool = DEFAULT_PRODUCTION) -> None:

run(
[
"/usr/local/bin/pnpm",
"/usr/local/bin/corepack",
"pnpm",
"install",
"--frozen-lockfile",
"--prefer-offline",
Expand Down

0 comments on commit 708c3e7

Please sign in to comment.