ci: use npm init for pnpm e2e to avoid integrity crash

pnpm 11.x `pnpm init` still writes onFail:download; `pnpm add` then
fails after PMG analysis even on 11.10.0. Seed the temp package with
npm init instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Sahilb315
2026-07-13 17:37:04 +05:30
co-authored by Cursor
parent 2b53abbe4a
commit 37eed636c8
+5 -1
View File
@@ -289,7 +289,11 @@ jobs:
run: |
echo "Testing PNPM single package installation..."
PNPM_TESTDIR=$(mktemp -d) && cd "$PNPM_TESTDIR"
pmg --proxy-mode=false pnpm init
# Avoid `pnpm init`: it writes devEngines.packageManager with
# onFail:download, and the following `pnpm add` then crashes with
# "Cannot use 'in' operator to search for 'integrity' in undefined"
# (seen on pnpm 11.1.3 and 11.10.0 in this workflow).
npm init -y
pmg --proxy-mode=false pnpm add express@5.2.1
pmg --proxy-mode=false pnpm add lodash@4.17.21