@reddoorla/maintenance 0.33.0 → 0.35.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 +2 -0
- package/dist/cli/bin.d.ts +21 -0
- package/dist/cli/bin.js +988 -629
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +230 -46
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/forms/index.d.ts +108 -0
- package/dist/forms/index.js +97 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/index.d.ts +55 -4
- package/dist/index.js +351 -114
- package/dist/index.js.map +1 -1
- package/dist/recipes/sync-configs.js +67 -10
- package/dist/recipes/sync-configs.js.map +1 -1
- package/dist/types-RXY-vY-5.d.ts +9 -0
- package/dist/util/git.d.ts +37 -1
- package/dist/util/git.js +26 -0
- package/dist/util/git.js.map +1 -1
- package/package.json +15 -2
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 };
|