fix(cli): strip Windows worker fallback executable

This commit is contained in:
can1357
2026-06-29 16:41:43 +02:00
parent 64be11e289
commit b4f75abb30
@@ -104,7 +104,7 @@ export function resolveWorkerSpawnCmd(workerArg: string): WorkerSpawnCommand {
return { cmd: [executable, path.basename(hostEntry), workerArg], cwd: path.dirname(hostEntry) };
}
const packageRoot = path.resolve(import.meta.dir, "..", "..");
return { cmd: [process.execPath, "src/cli.ts", workerArg], cwd: packageRoot };
return { cmd: [executable, "src/cli.ts", workerArg], cwd: packageRoot };
}
/**