githolon 0.81.0 → 0.83.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/dist/cli.mjs
CHANGED
|
@@ -7583,7 +7583,7 @@ import { existsSync as existsSync14, readdirSync as readdirSync5, readFileSync a
|
|
|
7583
7583
|
import { spawnSync as spawnSync6 } from "node:child_process";
|
|
7584
7584
|
import { createRequire as createRequire3 } from "node:module";
|
|
7585
7585
|
import { dirname as dirname9, join as join16, resolve as resolve5 } from "node:path";
|
|
7586
|
-
import { pathToFileURL as pathToFileURL5 } from "node:url";
|
|
7586
|
+
import { pathToFileURL as pathToFileURL5, fileURLToPath } from "node:url";
|
|
7587
7587
|
|
|
7588
7588
|
// src/generate.ts
|
|
7589
7589
|
import { mkdirSync, existsSync, writeFileSync } from "node:fs";
|
|
@@ -9443,6 +9443,33 @@ ${commandHelp("dev")}`);
|
|
|
9443
9443
|
...once ? { once: true } : {}
|
|
9444
9444
|
});
|
|
9445
9445
|
}
|
|
9446
|
+
if (argv[0] === "cloud") {
|
|
9447
|
+
const sub2 = argv[1];
|
|
9448
|
+
if (sub2 !== "dev") {
|
|
9449
|
+
process.stderr.write(`error: unknown cloud subcommand '${sub2 ?? ""}'
|
|
9450
|
+
usage: githolon cloud dev [--port <n>] [--data <dir>] [--ephemeral]
|
|
9451
|
+
[--platform <name>] [--deploy <file>] [--auth-provider <p>] [--firebase-project <id>] [--bootstrap]
|
|
9452
|
+
`);
|
|
9453
|
+
return 1;
|
|
9454
|
+
}
|
|
9455
|
+
const { spawnSync: spawnSync7 } = await import("node:child_process");
|
|
9456
|
+
const here = dirname9(fileURLToPath(import.meta.url));
|
|
9457
|
+
const candidates = [
|
|
9458
|
+
resolve5(here, "dev-server.mjs"),
|
|
9459
|
+
// published: dist/dev-server.mjs
|
|
9460
|
+
resolve5(here, "../../cloud/dev-server/server.mjs"),
|
|
9461
|
+
// in-repo (tsx / unbuilt) fallbacks
|
|
9462
|
+
resolve5(here, "../../../cloud/dev-server/server.mjs"),
|
|
9463
|
+
resolve5(process.cwd(), "cloud/dev-server/server.mjs")
|
|
9464
|
+
];
|
|
9465
|
+
const serverPath = candidates.find((p) => existsSync14(p));
|
|
9466
|
+
if (!serverPath) {
|
|
9467
|
+
process.stderr.write("error: dev-server not found \u2014 reinstall `githolon` or run `npm run build` in the cli package\n");
|
|
9468
|
+
return 1;
|
|
9469
|
+
}
|
|
9470
|
+
const r = spawnSync7(process.execPath, [serverPath, ...argv.slice(2)], { stdio: "inherit" });
|
|
9471
|
+
return r.status ?? 0;
|
|
9472
|
+
}
|
|
9446
9473
|
if (argv[0] === "replay") {
|
|
9447
9474
|
const rest = argv.slice(1);
|
|
9448
9475
|
let step;
|