From 1fb299a44fae48ae9bfa44ac14423ff56ccf8798 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 16 Mar 2026 01:58:24 +0100 Subject: [PATCH] fix: remove packageManager field and fix Windows npm spawn - Remove packageManager from package.json to avoid version conflict when the action tests against itself (uses: ./) - Use shell: true on Windows so spawn can find npm.cmd Co-Authored-By: Claude Opus 4.6 --- dist/index.js | Bin 1379617 -> 1379650 bytes package.json | 1 - src/install-pnpm/run.ts | 1 + 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 48a2e3e6f8fb0a9b60962b7e1f0dda0807c74d49..c1c77fc8fbc5a2ca7de513e0e1b78f136e70fe89 100644 GIT binary patch delta 68 zcmZ2DE9B6ukcJk<7N!>F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj5Eh4x6 YvFj9Pq~_#UO)q#QD7F38KM{9605hu?g8%>k delta 55 zcmX>!D`erUkcJk<7N!>F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj5Eh4x6 LZU6mG#GMZS9;Orn diff --git a/package.json b/package.json index 4bc2782..407d4e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "private": true, - "packageManager": "pnpm@10.32.1", "scripts": { "build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node24 --format=cjs --minify --outfile=dist/index.js --loader:.json=json", "build": "pnpm run build:bundle", diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index 104e371..c4cabaf 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -74,6 +74,7 @@ function runCommand(cmd: string, args: string[], opts: { cwd: string }): Promise const cp = spawn(cmd, args, { cwd: opts.cwd, stdio: ['pipe', 'inherit', 'inherit'], + shell: process.platform === 'win32', }) cp.on('error', reject) cp.on('close', resolve)