Skip to content

Commit bdf8894

Browse files
committed
Make sure that broken syntax blows up in Travis
Will prevent issues like this from happening again: - graphql#304 - graphql#305 Note that we fail loudly in `build` but not in `watch` (where we want to give the user a chance to correct their error). Tested by manually adding and removing syntax errors when doing `npm run build` and `npm run watch`.
1 parent 16fe1b4 commit bdf8894

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/build.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ async function build(filter) {
3232
}
3333

3434
if (require.main === module) {
35-
build().catch(error => console.error(error.stack || error));
35+
build().catch(error => {
36+
console.error(error.stack || error)
37+
process.exit(1);
38+
});
3639
}

0 commit comments

Comments
 (0)