@reddoorla/maintenance 0.33.0 → 0.34.0

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/README.md CHANGED
@@ -16,6 +16,8 @@ pnpm add -D @reddoorla/maintenance
16
16
  pnpm reddoor-maint --help
17
17
  ```
18
18
 
19
+ > **Standing the whole system up** (Airtable, the Netlify dashboard, the cron secrets, the daily approve loop, launching) — see the end-to-end **[setup walkthrough](docs/SETUP.md)**. This README is the per-command reference.
20
+
19
21
  ---
20
22
 
21
23
  ## The onboarding flow
package/dist/cli/bin.d.ts CHANGED
@@ -1 +1,22 @@
1
1
  #!/usr/bin/env node
2
+ /** Run a command thunk and surface its result, falling back to a clean error
3
+ * message on throw. Wraps the ~10-line try/catch every `.action()` used to
4
+ * duplicate. `verbose` flips between full stack and message-only.
5
+ *
6
+ * On success it sets `process.exitCode` and RETURNS rather than calling
7
+ * `process.exit()` right after `console.log()`. `process.exit()` does not wait
8
+ * for stdout to flush when stdout is a pipe, so a large `--json` payload piped
9
+ * to another process would get truncated mid-write. Setting `exitCode` and
10
+ * returning lets Node drain stdout and exit naturally with the right code. A
11
+ * non-zero `code` still yields a non-zero process exit.
12
+ *
13
+ * The error path keeps `process.exit()` — error messages are small (one line),
14
+ * always go to stderr, and exiting immediately is the desired fail-fast. */
15
+ declare function runOrExit(fn: () => Promise<{
16
+ output: string;
17
+ code: number;
18
+ }>, opts: {
19
+ verbose?: boolean;
20
+ }): Promise<void>;
21
+
22
+ export { runOrExit };