Last pnpm version that worked
10.x
pnpm version
11.0.4
Code to reproduce the issue
- set
script-shell=C:\Program Files\git\bin\bash.exe in ~/.npmrc for sane portable package.json tasks
- use pnpm to run the tasks
Expected behavior
pnpm uses globally set script-shell (10.x used ~/.npmrc or <pnpm-config>/rc, 11.x could use <pnpm-config>/config.yaml)
Actual behavior
pnpm uses cmd on windows, which breaks package.json all repos that expect bash
Additional information
yes, projects can override it using pnpm config set --location project scriptShell bash, but on many-many checked out repos, users may not want having to run it before use (and have possibly unwanted changes in workdir) - global setting would provide a sane default
Node.js version
25.9.0
Operating System
Windows
Last pnpm version that worked
10.x
pnpm version
11.0.4
Code to reproduce the issue
script-shell=C:\Program Files\git\bin\bash.exein~/.npmrcfor sane portable package.json tasksExpected behavior
pnpm uses globally set script-shell (10.x used
~/.npmrcor<pnpm-config>/rc, 11.x could use<pnpm-config>/config.yaml)Actual behavior
pnpm uses cmd on windows, which breaks package.json all repos that expect bash
Additional information
yes, projects can override it using
pnpm config set --location project scriptShell bash, but on many-many checked out repos, users may not want having to run it before use (and have possibly unwanted changes in workdir) - global setting would provide a sane defaultNode.js version
25.9.0
Operating System
Windows