Skip to content

Commit

Permalink
Merge pull request #159 from bennyn/patch-1
Browse files Browse the repository at this point in the history
Support Ctrl + C on Windows
  • Loading branch information
ColemanGariety authored Nov 3, 2018
2 parents 1a31fa2 + 7ce2da0 commit 033c27b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ module.exports = function (options) {
if (!(tasks instanceof Array)) throw new Error('Expected task name or array but found: ' + tasks)
var gulpPath = path.join(process.cwd(), 'node_modules/.bin/')
var gulpCmd = path.join(gulpPath, process.platform === 'win32' ? 'gulp.cmd' : 'gulp')
cp.spawnSync(gulpCmd, tasks, { stdio: [0, 1, 2] });
var options = { stdio: [0, 1, 2] }
if (process.platform === 'win32') options.shell = true
cp.spawnSync(gulpCmd, tasks, options)
}
}

Expand Down

0 comments on commit 033c27b

Please sign in to comment.