Skip to content

Commit f5210b2

Browse files
committed
fix(bench): force pnpm lockfile generation
1 parent 7a76aa3 commit f5210b2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

bench/pm-bench-phases.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ install_cmd() {
444444
utoo-next) echo "$UTOO_NEXT_BIN install --ignore-scripts --registry=$REGISTRY --cache-dir=$UTOO_NEXT_CACHE" ;;
445445
utoo-alt) echo "env $UTOO_ALT_ENV utoo install --ignore-scripts --registry=$REGISTRY --cache-dir=$UTOO_ALT_CACHE" ;;
446446
bun) echo "bun install --ignore-scripts --registry=$REGISTRY" ;;
447-
pnpm) echo "pnpm install --ignore-scripts --no-frozen-lockfile --config.package-manager-strict=false --registry=$REGISTRY --store-dir=$PNPM_STORE" ;;
447+
# Some npm projects set `package-lock=false` in .npmrc. pnpm maps that to
448+
# its own lockfile switch, so force it back on for lock-based p3/p4 parity.
449+
pnpm) echo "pnpm install --ignore-scripts --no-frozen-lockfile --config.lockfile=true --config.package-manager-strict=false --registry=$REGISTRY --store-dir=$PNPM_STORE" ;;
448450
aube) echo "env XDG_DATA_HOME=$AUBE_DATA XDG_CACHE_HOME=$AUBE_CACHE NPM_CONFIG_REGISTRY=$REGISTRY aube install --ignore-scripts --reporter silent" ;;
449451
esac
450452
}
@@ -456,7 +458,7 @@ resolve_cmd() {
456458
utoo-next) echo "$UTOO_NEXT_BIN deps --registry=$REGISTRY --cache-dir=$UTOO_NEXT_CACHE" ;;
457459
utoo-alt) echo "env $UTOO_ALT_ENV utoo deps --registry=$REGISTRY --cache-dir=$UTOO_ALT_CACHE" ;;
458460
bun) echo "bun install --lockfile-only --registry=$REGISTRY" ;;
459-
pnpm) echo "pnpm install --lockfile-only --ignore-scripts --config.package-manager-strict=false --registry=$REGISTRY --store-dir=$PNPM_STORE" ;;
461+
pnpm) echo "pnpm install --lockfile-only --ignore-scripts --config.lockfile=true --config.package-manager-strict=false --registry=$REGISTRY --store-dir=$PNPM_STORE" ;;
460462
aube) echo "env XDG_DATA_HOME=$AUBE_DATA XDG_CACHE_HOME=$AUBE_CACHE NPM_CONFIG_REGISTRY=$REGISTRY aube install --lockfile-only --ignore-scripts --reporter silent" ;;
461463
esac
462464
}

0 commit comments

Comments
 (0)