fix(cli): ensure stdio is inherited for command execution in startSingleService

This commit is contained in:
melvinchia3636
2026-01-29 08:01:33 +08:00
parent e46badda02
commit c21ef3fdfa

View File

@@ -30,7 +30,7 @@ export async function startSingleService(
const cwd = config.cwd instanceof Function ? config.cwd() : config.cwd
executeCommand(command, { cwd }, extraArgs)
executeCommand(command, { cwd, stdio: 'inherit' }, extraArgs)
return
}
@@ -39,7 +39,11 @@ export async function startSingleService(
if (service in PROJECTS) {
const projectPath = PROJECTS[service as keyof typeof PROJECTS]
executeCommand(`cd ${projectPath} && bun run dev`, {}, extraArgs)
executeCommand(
`cd ${projectPath} && bun run dev`,
{ stdio: 'inherit' },
extraArgs
)
return
}