From d4d8f0a590de853419dd91b64c36ea3f7fcd26e0 Mon Sep 17 00:00:00 2001 From: Richard R Date: Sat, 13 Jun 2026 14:38:32 -0600 Subject: [PATCH] refactor(bootstrap): set child process cwd to workspace root in CLI spawn Update CLI command spawning to explicitly set the working directory to the workspace root. This ensures subprocesses execute in a consistent environment, improving reliability in monorepo setups. --- packages/bootstrap/src/cli.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bootstrap/src/cli.mjs b/packages/bootstrap/src/cli.mjs index 04442d3..21e5f84 100644 --- a/packages/bootstrap/src/cli.mjs +++ b/packages/bootstrap/src/cli.mjs @@ -97,6 +97,7 @@ function forwardChildStream(stream, target) { function spawnMainCommand(command, env) { const [cmd, ...args] = command; const child = spawn(cmd, args, { + cwd: workspaceRoot, env, stdio: 'inherit', shell: process.platform === 'win32',