From d970c418cafa9a84ef67e4283ce0300fec3a49cf Mon Sep 17 00:00:00 2001 From: Vikas Kapadiya Date: Tue, 7 May 2024 03:40:44 +0530 Subject: [PATCH] Fix issue with Laravel Herd --- src/PhpCommand.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PhpCommand.ts b/src/PhpCommand.ts index 23f0a4f..05ca0a6 100644 --- a/src/PhpCommand.ts +++ b/src/PhpCommand.ts @@ -13,7 +13,8 @@ export default class PhpCommand { } const exec = spawn(this.cmd, this.args, { - cwd: cwd || this.cwd + cwd: cwd || this.cwd, + shell: platform() === "win32" ? true : undefined }); } @@ -26,4 +27,4 @@ export default class PhpCommand { return `${this.cmd}${stringifiedArgs}`; } -} \ No newline at end of file +}