@supalive/codegen 1.13.1 → 1.15.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.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-C8EGEwt7.js → src-BG6JNyje.js} +1 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as emit, c as loadSchemaEnums, i as resolveConfig, n as generateToDisk, o as extractClient, r as readEntryConfig, s as SchemaEnumRegistry, t as generate } from "./src-
|
|
1
|
+
import { a as emit, c as loadSchemaEnums, i as resolveConfig, n as generateToDisk, o as extractClient, r as readEntryConfig, s as SchemaEnumRegistry, t as generate } from "./src-BG6JNyje.js";
|
|
2
2
|
export { SchemaEnumRegistry, emit, extractClient, generate, generateToDisk, loadSchemaEnums, readEntryConfig, resolveConfig };
|
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { Node, Project, ts } from "ts-morph";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
-
import { schemaRegistry
|
|
6
|
+
import { schemaRegistry } from "@supalive/core/procedure";
|
|
7
7
|
//#region src/zod-schema.ts
|
|
8
8
|
/**
|
|
9
9
|
* Map each procedure to the doc comment on its declaration, so the generated
|
|
@@ -554,7 +554,6 @@ async function loadSchemaEnums(config) {
|
|
|
554
554
|
unregister = (await import(pathToFileURL(require_.resolve("tsx/esm/api")).href)).register();
|
|
555
555
|
} catch {}
|
|
556
556
|
try {
|
|
557
|
-
trackSchema();
|
|
558
557
|
await import(pathToFileURL(config.schemaModule).href);
|
|
559
558
|
const registry = schemaRegistry;
|
|
560
559
|
if (!registry || registry.size === 0) return SchemaEnumRegistry.empty();
|