@cosmicdrift/kumiko-dev-server 0.125.0 → 0.125.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.125.
|
|
3
|
+
"version": "0.125.1",
|
|
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>",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"kumiko-schema-check": "./bin/kumiko-schema-check.ts"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@cosmicdrift/kumiko-bundled-features": "0.125.
|
|
54
|
-
"@cosmicdrift/kumiko-framework": "0.125.
|
|
53
|
+
"@cosmicdrift/kumiko-bundled-features": "0.125.1",
|
|
54
|
+
"@cosmicdrift/kumiko-framework": "0.125.1",
|
|
55
55
|
"ts-morph": "^28.0.0"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
@@ -79,7 +79,8 @@ describe("renderDefineFile", () => {
|
|
|
79
79
|
const out = renderDefineFile(["tenant:write:create", "tenant:write:update"]);
|
|
80
80
|
expect(out).toContain("export type TypedDispatcher");
|
|
81
81
|
expect(out).toContain("export function createTypedDispatcher");
|
|
82
|
-
expect(out).toContain('
|
|
82
|
+
expect(out).toContain('import type { WriteHandlerQn } from "./types.generated"');
|
|
83
|
+
expect(out).toContain("export type { WriteHandlerQn };");
|
|
83
84
|
});
|
|
84
85
|
});
|
|
85
86
|
|
package/src/codegen/render.ts
CHANGED
|
@@ -175,8 +175,13 @@ export function renderDefineFile(handlerQns: readonly string[] = []): string {
|
|
|
175
175
|
? [
|
|
176
176
|
"",
|
|
177
177
|
`import type { Dispatcher, WriteOpts, WriteResult } from "@cosmicdrift/kumiko-headless";`,
|
|
178
|
+
`import type { WriteHandlerQn } from "./types.generated";`,
|
|
178
179
|
"",
|
|
179
|
-
`export type { WriteHandlerQn } from "./types.generated"
|
|
180
|
+
// Plain `export type { WriteHandlerQn } from "./types.generated"`
|
|
181
|
+
// only re-exports — with verbatimModuleSyntax it does NOT bind the
|
|
182
|
+
// name locally, so the `TypedDispatcher` reference below would fail
|
|
183
|
+
// to resolve. Import above + bare re-export here does both.
|
|
184
|
+
`export type { WriteHandlerQn };`,
|
|
180
185
|
"",
|
|
181
186
|
`/** Dispatcher with write() narrowed to registered handler QNs. */`,
|
|
182
187
|
`export type TypedDispatcher = Omit<Dispatcher, "write"> & {`,
|