Skip to content

Commit

Permalink
on Windows this needs to be the full cmd file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Forster committed Mar 25, 2018
1 parent ecc3224 commit 1cfee4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/generate-octicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@ generateIconData().then(result => {

console.log('Ensuring generated file is formatted correctly...')
const root = Path.dirname(__dirname)
return cp.spawn('yarn', ['lint:fix'], { cwd: root, stdio: 'inherit' })
const yarnExecutable = process.platform === 'win32' ? 'yarn.cmd' : 'yarn'
return cp.spawn(yarnExecutable, ['lint:fix'], { cwd: root, stdio: 'inherit' })
})

0 comments on commit 1cfee4b

Please sign in to comment.