From b7ba4299b1b3bf9b31fc71fca3c2b9f062cbe193 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Thu, 10 Aug 2023 15:01:41 -0600 Subject: [PATCH] fix: add shell option to spawn --- src/yarn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yarn.ts b/src/yarn.ts index d136ff82..1829a635 100644 --- a/src/yarn.ts +++ b/src/yarn.ts @@ -44,7 +44,7 @@ export default class Yarn { spawn(executable: string, args: string[] = [], options: any = {}): Promise { 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) => {