Skip to content

Commit

Permalink
refactor: set SIGINT listener in bin instead of runAll
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Jul 25, 2019
1 parent 0342ebf commit 127cd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bin/lint-staged
Expand Up @@ -9,6 +9,9 @@ if (process.stdout.isTTY) {
process.env.FORCE_COLOR = '1'
}

// Do not terminate main Listr process on SIGINT
process.on('SIGINT', () => {})

const pkg = require('../package.json')
require('please-upgrade-node')(
Object.assign({}, pkg, {
Expand Down
3 changes: 0 additions & 3 deletions src/runAll.js
Expand Up @@ -103,9 +103,6 @@ https://github.com/okonet/lint-staged#using-js-functions-to-customize-linter-com
return 'No tasks to run.'
}

// Do not terminate main Listr process on SIGINT
process.on('SIGINT', () => {})

return new Listr(
[
{
Expand Down

0 comments on commit 127cd95

Please sign in to comment.