Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from AirHelp/improve-process-exit
Browse files Browse the repository at this point in the history
improve process exit code
  • Loading branch information
jedrula authored Dec 22, 2016
2 parents 1e41dd1 + ca3c482 commit dc159ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
## 1.0.1
- bump up version after the patch ([eec5e46](https://github.com/AirHelp/hbslint-airhelp/commit/eec5e464d5f81b7ccd81130ac53b05a645a301c4))
- simplified exiting with the right code ([a67f834](https://github.com/AirHelp/hbslint-airhelp/commit/a67f8346ae8c913df515ef142cf56822e958cc92))

## 1.0.0
- initial features ([79d14e0](https://github.com/AirHelp/hbslint-airhelp/commit/79d14e0d40e1daea109f8119d05a5d08f150debe))
4 changes: 1 addition & 3 deletions bin/hbslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,4 @@ if (errorFilesCount) {
log(chalk.green('No warnings found'));
}

process.on('exit', () => {
process.exit(exitCode);
});
process.exitCode = exitCode;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hbslint-airhelp",
"version": "1.0.0",
"version": "1.0.1",
"description": "AirHelp Handlebars Lint shareable cli and config",
"bin": {
"hbslint": "./bin/hbslint.js"
Expand Down

0 comments on commit dc159ef

Please sign in to comment.