You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yarn supports parallel tasks, however it's not clear how exit codes are handled. It appears that only the exit code of the last task affects the final exit code. If this is intentional, perhaps the docs should explicitly state this and outline a better use case, because the example given is yarn lint & yarn test, which I think in most scenarios you would want to error if either one of those commands errored.
To reproduce
Assuming there is a formatting error, running yarn error produces an error because prettier is last, whereas yarn no-error does not:
Self-service
Describe the bug
Yarn supports parallel tasks, however it's not clear how exit codes are handled. It appears that only the exit code of the last task affects the final exit code. If this is intentional, perhaps the docs should explicitly state this and outline a better use case, because the example given is
yarn lint & yarn test
, which I think in most scenarios you would want to error if either one of those commands errored.To reproduce
Assuming there is a formatting error, running
yarn error
produces an error because prettier is last, whereasyarn no-error
does not:Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: