pnpm icon indicating copy to clipboard operation
pnpm copied to clipboard

pnpm will not ignore scripts for dependency during pnpm install

Open iamthejadepanther opened this issue 3 weeks ago • 1 comments

Verify latest release

  • [x] I verified that the issue exists in the latest pnpm release

pnpm version

No response

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

No response

Reproduction steps

try to ignore scripts for dependency defined in workspaces

Describe the Bug

pnpm will not ignore scripts during pnpm install. I have had to create my own install script using --ignore-scripts flag, but surely there is a way this can be defined in the root package.json or pnpm-workspace.yaml

I have tried using overrides in the package.json and various ignore flags in the yaml file as per the docs, however each time i rerun pnpm install, the scripts of the dependency are executed and the package is built - which i am trying to avoid

Expected Behavior

install dependencies for packages defined in workspaces, but do not run scripts defined in their package.json file

Which Node.js version are you using?

24

Which operating systems have you used?

  • [ ] macOS
  • [x] Windows
  • [ ] Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

iamthejadepanther avatar Nov 30 '25 09:11 iamthejadepanther

Could you share the minimal reproducible environment? It would help in finding a solution.

ryo-manba avatar Dec 01 '25 12:12 ryo-manba