@cosmicdrift/kumiko-dev-server 0.350.0 → 0.352.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/bin/kumiko-build.ts +7 -0
- package/bin/kumiko-dev.ts +6 -1
- package/bin/kumiko-schema-check.ts +6 -0
- package/dist/init-deploy-cli.js +13 -0
- package/package.json +6 -6
- package/src/changes.json +6 -0
package/bin/kumiko-build.ts
CHANGED
|
@@ -31,6 +31,13 @@ import {
|
|
|
31
31
|
runCodegen,
|
|
32
32
|
} from "@cosmicdrift/kumiko-dev-server/cli";
|
|
33
33
|
|
|
34
|
+
if (process.argv.slice(2).some((arg) => arg === "--help" || arg === "-h")) {
|
|
35
|
+
process.stdout.write(
|
|
36
|
+
"Usage: kumiko-build [app-dir] build client (dist/) and server (dist-server/) bundles\n",
|
|
37
|
+
);
|
|
38
|
+
process.exit(0);
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
const explicit = process.argv[2];
|
|
35
42
|
const cwd = explicit ? resolve(process.cwd(), explicit) : process.cwd();
|
|
36
43
|
|
package/bin/kumiko-dev.ts
CHANGED
|
@@ -26,9 +26,14 @@ const MAX_CRASHES = 5;
|
|
|
26
26
|
const CRASH_WINDOW_MS = 10_000;
|
|
27
27
|
const CRASH_BACKOFF_MS = 500;
|
|
28
28
|
|
|
29
|
+
const USAGE = "Usage: kumiko-dev <server-entry.ts> [server args...]\n";
|
|
29
30
|
const entry = process.argv[2];
|
|
31
|
+
if (entry === "--help" || entry === "-h") {
|
|
32
|
+
process.stdout.write(USAGE);
|
|
33
|
+
process.exit(0);
|
|
34
|
+
}
|
|
30
35
|
if (entry === undefined || entry === "") {
|
|
31
|
-
process.stderr.write(
|
|
36
|
+
process.stderr.write(USAGE);
|
|
32
37
|
process.exit(2);
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -98,7 +98,13 @@ async function readMountedFeatures(runConfigPath: string): Promise<Set<string>>
|
|
|
98
98
|
return set;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
const USAGE = "Usage: kumiko-schema-check [--run-config <path>] [--generate <path>]";
|
|
102
|
+
|
|
101
103
|
async function main(): Promise<void> {
|
|
104
|
+
if (process.argv.slice(2).some((arg) => arg === "--help" || arg === "-h")) {
|
|
105
|
+
console.log(USAGE);
|
|
106
|
+
process.exit(0);
|
|
107
|
+
}
|
|
102
108
|
const args = parseArgs(process.argv.slice(2));
|
|
103
109
|
|
|
104
110
|
if (!existsSync(args.runConfigPath)) {
|
package/dist/init-deploy-cli.js
CHANGED
|
@@ -8,6 +8,15 @@ import { getFlag, getNumberFlag, getStringFlag, parseArgs, } from "@cosmicdrift/
|
|
|
8
8
|
import * as z from "zod";
|
|
9
9
|
import { checkDeployDrift, scaffoldDeploy } from "./scaffold-deploy.js";
|
|
10
10
|
const USAGE = "Usage: kumiko-init-deploy --app <name> [--port <n>] [--github-org <org>] [--out <dir>] [--force | --check]";
|
|
11
|
+
const HELP = `${USAGE}
|
|
12
|
+
|
|
13
|
+
--app <name> app name (default: package.json "name" without its @scope/)
|
|
14
|
+
--port <n> port the container exposes
|
|
15
|
+
--github-org <org> GitHub org for the image reference
|
|
16
|
+
--out <dir> project directory to scaffold into (default: cwd)
|
|
17
|
+
--force overwrite existing deploy files
|
|
18
|
+
--check drift check only, exit 1 if deploy/ is stale
|
|
19
|
+
-h, --help print this help and exit`;
|
|
11
20
|
const packageNameSchema = z.object({ name: z.string().optional() });
|
|
12
21
|
/** package.json `name` without its `@scope/` prefix, if present and valid. */
|
|
13
22
|
function defaultAppName(cwd) {
|
|
@@ -74,6 +83,10 @@ function reportScaffold(target, force, out) {
|
|
|
74
83
|
return 0;
|
|
75
84
|
}
|
|
76
85
|
export async function runInitDeployCli({ argv, cwd, out, }) {
|
|
86
|
+
if (argv.includes("--help") || argv.includes("-h")) {
|
|
87
|
+
out.log(HELP);
|
|
88
|
+
return 0;
|
|
89
|
+
}
|
|
77
90
|
const args = parseArgs(argv);
|
|
78
91
|
const force = getFlag(args, "force");
|
|
79
92
|
const check = getFlag(args, "check");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.352.0",
|
|
4
4
|
"description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"kumiko-upgrade": "./bin/kumiko-upgrade.ts"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
68
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
69
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
70
|
-
"@cosmicdrift/kumiko-renderer-web": "0.
|
|
71
|
-
"@cosmicdrift/kumiko-server-runtime": "0.
|
|
67
|
+
"@cosmicdrift/kumiko-bundled-features": "0.352.0",
|
|
68
|
+
"@cosmicdrift/kumiko-framework": "0.352.0",
|
|
69
|
+
"@cosmicdrift/kumiko-headless": "0.352.0",
|
|
70
|
+
"@cosmicdrift/kumiko-renderer-web": "0.352.0",
|
|
71
|
+
"@cosmicdrift/kumiko-server-runtime": "0.352.0",
|
|
72
72
|
"bun-types": "^1.3.13",
|
|
73
73
|
"ts-morph": "^28.0.0",
|
|
74
74
|
"zod": "^4.4.3"
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.351.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "--help prints usage instead of running the command (init-deploy, build, dev, schema-check, kumiko-testing integration)",
|
|
6
|
+
"detail": "`--help` prints usage on every bin\n`kumiko-init-deploy --help` used to write the deploy files, and `kumiko-testing integration --help` crashed while parsing its arguments. Both now print their usage and exit 0, as do `kumiko-build`, `kumiko-dev`, `kumiko-schema-check` and `create-kumiko-app`."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.349.0",
|
|
4
10
|
"type": "improvement",
|