yarn add --ignore-optional
fails when optional dep has failing postinstall
#2929
Labels
yarn add --ignore-optional
fails when optional dep has failing postinstall
#2929
Reproduction
On a freshly init'd project:
The
optional-failure
package has an optional dependency onpkg-with-failing-postinstall
.Here's the full output from running this command on my machine:
This produces an exit status of 1.
Expected Behavior
The
--ignore-optional
flag should allow optional postinstall scripts to fail and be handled the same way failing installs of optional deps are handled.System information
I've reproduced this on two systems:
The text was updated successfully, but these errors were encountered: