(port: number, name: string, maxWaitMs: number)
| 73 | if (await probePort(port)) return; |
| 74 | await sleep(500); |
| 75 | } |
| 76 | console.warn(`⚠ ${name} on port ${port} did not become ready within ${maxWaitMs / 1000}s`); |
| 77 | } |
| 78 | |
| 79 | export function buildStartCommand(serviceName: string, serviceNames?: readonly string[]): string { |
| 80 | const svc = getService(serviceName); |
| 81 | const command = serviceNames ? serviceCommand(serviceName, serviceNames) : svc.command; |
| 82 | |
| 83 | // Use pnpm --filter instead of cd to avoid cwd issues on restart — |
| 84 | // after ctrl-c the shell stays in the service dir, so a relative cd |
| 85 | // would try to descend into <dir>/<dir> which doesn't exist. |
no test coverage detected