Verify latest release
pnpm version
10.5.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/richard-jfc/pnpm-bug-repro
Reproduction steps
- Checkout the example repo.
- Run
pnpm --filter sub-pkg test
- See that the NODE_OPTIONS is undefined
cd packages/test
- Run
pnpm test
- See that NODE_OPTIONS is defined
NODE_OPTIONS: --experimental-strip-types
Describe the Bug
When running a pnpm script from within a workspace folder pnpm correctly picks up the node-options from the .npmrc. However, when running from the root with a filter then pnpm does not pick up the node-options from the .npmrc
Expected Behavior
pnpm should always include the NODE_OPTIONS from the .npmrc file (regardless of the presence of the --filter option)
Which Node.js version are you using?
22.13.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
KDE neon
Verify latest release
pnpm version
10.5.1
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/richard-jfc/pnpm-bug-repro
Reproduction steps
pnpm --filter sub-pkg testcd packages/testpnpm testDescribe the Bug
When running a pnpm script from within a workspace folder pnpm correctly picks up the
node-optionsfrom the .npmrc. However, when running from the root with a filter then pnpm does not pick up thenode-optionsfrom the .npmrcExpected Behavior
pnpm should always include the NODE_OPTIONS from the .npmrc file (regardless of the presence of the
--filteroption)Which Node.js version are you using?
22.13.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
KDE neon