Bail out early on error
Closed this issue · 3 comments
Is your feature request related to a problem? Please describe.
My mono repo takes a while to build, and if the root level packages that are shared fail to build, it isn't really worth building the other packages because I know they will fail.
Describe the solution you'd like
I'd like the entire process to terminate and show the log output as soon as one package fails to build.
A good example of this is the --bail
switch for Jest (https://jestjs.io/docs/cli#--bail)
Describe alternatives you've considered
Mashing CTRL+C multiple times to kill all the processes 😉
Additional context
If you think adding a --bail
option is a reasonable idea, I'm happy to make the change and put up a PR when I get a chance.
I briefly noted my desire for this in #9, but have yet to implement it. I'll close #9 in favour of tracking this feature here.
I'm happy to go with --bail
and bail
as the config option (for bailing by default).
And yeah, because of the pace it tries to go through everything you're kinda left with just mashing ctrl+c
which isn't much fun.
If you want to have a go that would be appreciated!
I think we can also close this issue.
This is fixed in the latest to upgrade run the following to download and vendor the latest version.
yarn plugin import https://yarn.build/latest