@cosmicdrift/kumiko-dev-server 0.18.0 → 0.19.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.
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bun
2
+ // Shipped, app-facing schema-migration CLI: `kumiko-schema generate|apply|baseline|status`.
3
+ //
4
+ // Self-contained — delegates to the framework's runSchemaCli core, so apps run
5
+ // migrations without the full dev `kumiko` CLI (which eager-loads ts-morph-heavy
6
+ // dev commands not shipped to apps). Run from the app workspace root:
7
+ //
8
+ // bunx kumiko-schema generate init
9
+ // bunx kumiko-schema apply
10
+ // bunx kumiko-schema baseline # adopt an existing DB (tables already exist)
11
+ // bunx kumiko-schema status
12
+
13
+ import { runSchemaCli } from "@cosmicdrift/kumiko-framework/schema-cli";
14
+
15
+ // biome-ignore lint/suspicious/noConsole: CLI output is the feature.
16
+ const out = { log: (l: string) => console.log(l), err: (l: string) => console.error(l) };
17
+ const appCwd = process.env["INIT_CWD"] ?? process.cwd();
18
+ const code = await runSchemaCli(process.argv.slice(2), appCwd, out);
19
+ process.exit(code);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Development server bootstrap for Kumiko apps. Bundles the client, mints dev-JWTs, injects the resolved AppSchema, and seeds an admin. Not for production.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -42,6 +42,7 @@
42
42
  "bin": {
43
43
  "kumiko-build": "./bin/kumiko-build.ts",
44
44
  "kumiko-dev": "./bin/kumiko-dev.ts",
45
+ "kumiko-schema": "./bin/kumiko-schema.ts",
45
46
  "kumiko-schema-check": "./bin/kumiko-schema-check.ts"
46
47
  },
47
48
  "dependencies": {