@buildepicshit/cli 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -37,5 +37,5 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "type": "module",
40
- "version": "0.0.7"
40
+ "version": "0.0.8"
41
41
  }
@@ -27,10 +27,12 @@ export async function waitForHealthy(
27
27
  let retries = 0;
28
28
 
29
29
  while (retries < maxRetries && Date.now() - startTime < timeout) {
30
- // Bail if process died
31
- if (proc.status === "failed" || proc.status === "completed") {
30
+ // Bail if process died (but not if it completed cleanly — e.g. docker compose --detach)
31
+ if (proc.status === "failed") {
32
+ const tail = proc.outputLines.slice(-20).join("\n");
33
+ const output = tail ? `\n\nProcess output:\n${tail}` : "";
32
34
  throw new Error(
33
- `Process "${proc.serviceName}" exited before becoming healthy`,
35
+ `Process "${proc.serviceName}" failed before becoming healthy${output}`,
34
36
  );
35
37
  }
36
38