From aa340f74b2da9b1a39f8ec9e20cf9269ef623f3d Mon Sep 17 00:00:00 2001 From: Nico Schett Date: Wed, 9 Oct 2024 08:19:08 +0200 Subject: [PATCH] fix: spawn server with args correctly This should also support windows then. ref: #32 --- packages/pylon-dev/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pylon-dev/src/index.ts b/packages/pylon-dev/src/index.ts index 0ed7477..9346c95 100644 --- a/packages/pylon-dev/src/index.ts +++ b/packages/pylon-dev/src/index.ts @@ -83,7 +83,9 @@ async function main(options: ArgOptions, command: Command) { }) } - currentProc = spawn(options.command, { + const [commandName, ...args] = options.command.split(' ') + + currentProc = spawn(commandName, args, { shell: true, stdio: 'inherit', env: {