Skip to content

Commit a2008ff

Browse files
authored
fix(cli): on windows use shell option to spawn runtime process (#1333)
This is a quick fix that seems to work in my testing. As a follow up we should explore: https://www.npmjs.com/package/cross-spawn Filed #1332 to track
1 parent d7c3549 commit a2008ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

genkit-tools/cli/src/commands/start.ts

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const start = new Command('start')
4040
runtimePromise = new Promise((urlResolver, reject) => {
4141
const appProcess = spawn(start.args[0], start.args.slice(1), {
4242
env: { ...process.env, GENKIT_ENV: 'dev' },
43+
shell: process.platform === 'win32',
4344
});
4445

4546
const originalStdIn = process.stdin;

0 commit comments

Comments
 (0)