@bensandee/tooling 0.52.0 → 0.52.2

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.
@@ -238,9 +238,22 @@ async function runDockerCheck(executor, config) {
238
238
  buildImages(executor, config);
239
239
  }
240
240
  executor.log("Starting compose stack...");
241
- composeUp(executor, compose);
242
- executor.log(`Waiting for stack to be healthy (max ${timeoutMs / 1e3}s)...`);
243
241
  const startTime = executor.now();
242
+ try {
243
+ composeUp(executor, compose);
244
+ } catch (error) {
245
+ const message = error instanceof Error ? error.message : String(error);
246
+ executor.logError(`Compose stack failed to start — dumping logs`);
247
+ for (const service of compose.services) composeLogs(executor, compose, service);
248
+ cleanup();
249
+ return {
250
+ success: false,
251
+ reason: "startup-failed",
252
+ message,
253
+ elapsedMs: executor.now() - startTime
254
+ };
255
+ }
256
+ executor.log(`Waiting for stack to be healthy (max ${timeoutMs / 1e3}s)...`);
244
257
  let lastStatusLogTime = startTime;
245
258
  const healthStatus = new Map(config.healthChecks.map((c) => [c.name, false]));
246
259
  while (executor.now() - startTime < timeoutMs) {
@@ -85,7 +85,7 @@ type CheckResult = {
85
85
  elapsedMs: number;
86
86
  } | {
87
87
  success: false;
88
- reason: "timeout" | "unhealthy-container" | "smoketest-failed" | "error";
88
+ reason: "timeout" | "unhealthy-container" | "smoketest-failed" | "startup-failed" | "error";
89
89
  message: string;
90
90
  elapsedMs: number;
91
91
  };
@@ -1,2 +1,2 @@
1
- import { a as composeDown, c as composeUp, i as composeArgs, l as createRealExecutor, n as checkHttpHealth, o as composeLogs, r as getContainerHealth, s as composePs, t as runDockerCheck } from "../check-COzp4S_Q.mjs";
1
+ import { a as composeDown, c as composeUp, i as composeArgs, l as createRealExecutor, n as checkHttpHealth, o as composeLogs, r as getContainerHealth, s as composePs, t as runDockerCheck } from "../check-B5DFYJ3x.mjs";
2
2
  export { checkHttpHealth, composeArgs, composeDown, composeLogs, composePs, composeUp, createRealExecutor, getContainerHealth, runDockerCheck };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bensandee/tooling",
3
- "version": "0.52.0",
3
+ "version": "0.52.2",
4
4
  "description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,9 +51,9 @@
51
51
  "@types/node": "24.12.2",
52
52
  "@types/picomatch": "4.0.3",
53
53
  "commit-and-tag-version": "12.7.1",
54
- "prettier": "3.8.2",
55
- "release-it": "19.2.4",
56
- "tsdown": "0.21.7",
54
+ "prettier": "3.8.3",
55
+ "release-it": "20.0.0",
56
+ "tsdown": "0.21.9",
57
57
  "@bensandee/claude-hooks": "0.7.0",
58
58
  "@bensandee/config": "0.10.2"
59
59
  },