fix: make lint run on Windows in PowerShell

This commit is contained in:
Heilig Benedek 2018-10-08 14:48:35 +02:00 committed by Jeremy Apthorp
parent 878c5b663d
commit 4017f3faa7
2 changed files with 7 additions and 7 deletions

View file

@ -94,7 +94,7 @@ const LINTERS = [ {
const allOk = filenames.map(filename => {
const args = ['format', filename]
if (!opts.fix) args.push('--dry-run')
const result = childProcess.spawnSync('gn', args, { stdio: 'inherit' })
const result = childProcess.spawnSync('gn', args, { stdio: 'inherit', shell: true })
if (result.status === 0) {
return true
} else if (result.status === 2) {