File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
2828
2929 [ #6712 ] ( https://github.com/yarnpkg/yarn/pull/6712 ) - [ ** Maël Nison** ] ( https://twitter.com/arcanis )
3030
31+ - Stops automatically unplugging packages with postinstall script when running under ` --ignore-scripts `
32+
33+ [ #6820 ] ( https://github.com/yarnpkg/yarn/pull/6820 ) - [ ** Maël Nison** ] ( https://twitter.com/arcanis )
34+
3135- Adds transparent support for the [ ` resolve ` ] ( https://github.com/browserify/resolve ) package when using Plug'n'Play
3236
3337 [ #6816 ] ( https://github.com/yarnpkg/yarn/pull/6816 ) - [ ** Maël Nison** ] ( https://twitter.com/arcanis )
Original file line number Diff line number Diff line change @@ -698,7 +698,11 @@ export default class PackageLinker {
698698 }
699699
700700 // If the package has a postinstall script, we also unplug it (otherwise they would run into the cache)
701- if ( pkg . scripts && ( pkg . scripts . preinstall || pkg . scripts . install || pkg . scripts . postinstall ) ) {
701+ if (
702+ ! this . config . ignoreScripts &&
703+ pkg . scripts &&
704+ ( pkg . scripts . preinstall || pkg . scripts . install || pkg . scripts . postinstall )
705+ ) {
702706 return true ;
703707 }
704708
You can’t perform that action at this time.
0 commit comments