-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fixes #388] ensure broccoli-cli exits with the appropriate status co… #456
Conversation
@@ -173,6 +176,9 @@ export = function broccoliCLI(args: string[], ui = new UI()) { | |||
watcher.on('buildFailure', (err: any) => { | |||
ui.writeLine('build failure', 'ERROR'); | |||
ui.writeError(err); | |||
if (!options.watch) { | |||
process.exitCode = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: test this scenario
…de on build failure
e695ba1
to
6d21c9d
Compare
Interesting. How does calling |
It doesn’t, This PR is fixing a bug, specifically the bug fix here was adding a missing exitCode assignment (see above inline comment) |
Oh, I see! I had missed that there was an new exit scenario in there. |
Something new for this PR @stefanpenner @rwjblue ? |
released as v3.5.1 🎉 |
…de on build failure