Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: smarter handling of exit code 2
Only exit after code 2 if it happened quickly; improve messaging (recommend `||exit 1`) If nodemon exits _quickly_ on code 2, then it'll bail and warn. If it's after ~500ms, then it assumes that the sub-process intentionally used exit 2 (like mocha or stylelint), it won't bail and treat it as a failure (like a crash). Props to @joeytwiddle Fixes #496 Fixes #627
- Loading branch information