node_cache: Invoke pnpm via corepack.

This avoids prompting the user that corepack is about to download
pnpm.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-03-28 19:52:27 -07:00 committed by Tim Abbott
parent 2c13d0e43d
commit 708c3e7182
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ def setup_node_modules(production: bool = DEFAULT_PRODUCTION) -> None:
run( run(
[ [
"/usr/local/bin/pnpm", "/usr/local/bin/corepack",
"pnpm",
"install", "install",
"--frozen-lockfile", "--frozen-lockfile",
"--prefer-offline", "--prefer-offline",