pnpm.io icon indicating copy to clipboard operation
pnpm.io copied to clipboard

Mention run settings in global settings; clarify `enablePrePostScripts` and `ignoreScripts` interaction

Open sdavids opened this issue 9 months ago • 0 comments

The three settings (enablePrePostScripts, scriptShell, and shellEmulator) mentioned on this page: https://pnpm.io/cli/run#pnpm-workspaceyaml-settings

should also be included on this page:

https://pnpm.io/settings


Also, it should be clarified how enablePrePostScripts relates to ignoreScripts:

pnpm-workspace.yaml

enablePrePostScripts: true
ignoreScripts: true

or

pnpm-workspace.yaml

enablePrePostScripts: true

and

.npmrc

ignore-scripts=true

Are the pre-/post-scripts ignored with this setting combination, i.e. enablePrePostScripts has a lower precedence then ignoreScripts or is it the other way round?

sdavids avatar May 24 '25 12:05 sdavids