Skip to content

Commit

Permalink
fix: add shell option to spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 10, 2023
1 parent 16ef1f9 commit b7ba429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class Yarn {

spawn(executable: string, args: string[] = [], options: any = {}): Promise<void> {
return new Promise((resolve, reject) => {
const spawned = spawn(executable, args, options)
const spawned = spawn(executable, args, {...options, shell: true})
spawned.stderr.on('data', (d: any) => process.stderr.write(d))
spawned.stdout.setEncoding('utf8')
spawned.stdout.on('data', (d: any) => {
Expand Down

0 comments on commit b7ba429

Please sign in to comment.