Skip to content

Commit

Permalink
fix: exit process with status 1 if build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Mar 26, 2020
1 parent 53d621b commit 70d5553
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[ignore]
.*/node_modules/config-chain/.*
.*/node_modules/npmconf/.*
.*/.history/.*

[include]

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# VSCode
.vscode/
.history/
tsconfig.json

# node.js
Expand Down
5 changes: 4 additions & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ if (command === 'build') {
)}ms (${chalk.blue(path.relative(process.cwd(), options.output))})`
);
},
e => spinner.fail(`Failed to build pages ${e.message}`)
e => {
spinner.fail(`Failed to build pages ${e.message}`);
process.exit(1);
}
);
} else {
serve(argv);
Expand Down

0 comments on commit 70d5553

Please sign in to comment.