cursedops 0.5.0 → 0.5.1
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 +1 -1
- package/src/workerDeploy.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cursedops",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The build-and-ops answers this generation's apps wrote independently and identically: finding a generation's roots — and printing a command that runs when pasted — without knowing a path, the generation's whole-tree laws run over one repo from a checkout or a worktree, macOS launchd agent install/replace/remove and the live port a job serves, the scaffolding and verdicts of a deployed smoke (origin probe, the smoke's own environment, a network that lies about DNS, a settled version), the static-serving helpers eight apps copied — the path-traversal guard among them — the API floor that keeps an unmatched /api/... from ever being answered with the app shell, the commit and dirty flag a checkout-served process reports, the Cloudflare Worker deploy toolkit four apps copied (the deploy sequence, exact-set secrets over a pipe, origin-first rollback, the curl edge fetch, the row-for-row D1 import proof), and the public-surface ratchet three published libraries each carried a forked copy of. Mechanism only — no app knows its name from here. Bun, zero runtime dependencies (typescript is an optional peer, for public-surface only), ships source.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
package/src/workerDeploy.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* variables, and the commands that build, stage, attach secrets and smoke.
|
|
5
5
|
*
|
|
6
6
|
* ```ts
|
|
7
|
-
* import { cloudflareCredential, parseWorkerEnv, runWorkerDeploy,
|
|
7
|
+
* import { cloudflareCredential, parseWorkerEnv, runWorkerDeploy, workerDeployDeps } from "cursedops/worker-deploy";
|
|
8
8
|
*
|
|
9
9
|
* const env = parseWorkerEnv(process.argv.slice(2));
|
|
10
10
|
* const result = runWorkerDeploy({
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
* stampVars: { commit: "MUSIC_BUILD_COMMIT", dirty: "MUSIC_BUILD_DIRTY" },
|
|
13
13
|
* build: ["bun", "run", "build"],
|
|
14
14
|
* stageFirst: [["bun", "run", "scripts/worker-deploy.ts", "--env", "stage"], ["bun", "run", "scripts/worker-stage-walk.ts"]],
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* // the app's own scripts take `--env stage`; `wranglerEnvArgs` is for WRANGLER's argv only
|
|
16
|
+
* secrets: ["bun", "run", "scripts/worker-secrets.ts", ...(env === "stage" ? ["--env", "stage"] : [])],
|
|
17
|
+
* smoke: ["bun", "run", "scripts/worker-smoke.ts", ...(env === "stage" ? ["--env", "stage"] : [])],
|
|
17
18
|
* credential: cloudflareCredential(file),
|
|
18
19
|
* }, workerDeployDeps(ROOT));
|
|
19
20
|
* process.exit(result.code);
|