Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
feat: add the possiblity to add flags to the pnpm install command (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer authored Oct 21, 2022
1 parent d05976b commit da2ed5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ mkdir -p $NETLIFY_CACHE_DIR/.cargo

: ${YARN_FLAGS=""}
: ${NPM_FLAGS=""}
: ${PNPM_FLAGS=""}
: ${BUNDLER_FLAGS=""}

# Feature flags are a comma-separated list.
Expand Down Expand Up @@ -206,7 +207,7 @@ run_pnpm() {
restore_node_modules "pnpm"

echo "Installing NPM modules using PNPM version $(pnpm --version)"
if pnpm install
if pnpm install ${PNPM_FLAGS:+$PNPM_FLAGS}
then
echo "NPM modules installed using PNPM"
else
Expand Down

0 comments on commit da2ed5e

Please sign in to comment.