[Bug?]: disabled enableScripts setting still triggers postinstall script #4780
Labels
bug
Something isn't working
waiting for feedback
Will autoclose in a while unless more data are provided
Self-service
Describe the bug
Disabling the
enableScripts
setting does not seem to have an effect on thepostinstall
script defined inpackage.json
. I am experiencing the same behaviour both withyarn install
andyarn workspaces focus -A --production
.Setting
enableScripts=false
in.yarnrc.yml
orYARN_ENABLE_SCRIPTS=false
as an environment variable still triggers thepostinstall
script after an install.To reproduce
Environment
Additional context
This has also been reported in #4386 and #4547.
Btw: I could not use the suggested Playgrond instance for Sherlock, since it threw CORS network errors and did not execute my code. So I reproduced the issue with Sherlock locally.
The text was updated successfully, but these errors were encountered: