fix(cli): await concurrently result to ensure all services complete.

This commit is contained in:
melvinchia3636
2026-01-29 08:37:32 +08:00
parent 761369f597
commit 77a2660c1d

View File

@@ -58,12 +58,14 @@ export async function startAllServices(): Promise<void> {
try {
const concurrentServices = await getConcurrentServices()
concurrently(concurrentServices, {
const { result } = concurrently(concurrentServices, {
killOthersOn: ['failure', 'success'],
restartTries: 0,
prefix: 'name',
prefixColors: ['cyan', 'green', 'magenta']
})
await result
} catch (error) {
logger.error('Failed to start all services')
logger.debug(`Error details: ${error}`)