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.
This commit is contained in:
Richard R 2026-06-13 14:38:32 -06:00
parent ee979205b3
commit d4d8f0a590

View file

@ -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',