-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Verify latest release
- I verified that the issue exists in the latest pnpm 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
NODE_OPTIONS: 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?
- macOS
- Windows
- Linux
If your OS is a Linux based, which one it is? (Include the version if relevant)
KDE neon