@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as generateToDisk, r as readEntryConfig } from "./src-C8EGEwt7.js";
2
+ import { n as generateToDisk, r as readEntryConfig } from "./src-BG6JNyje.js";
3
3
  import path from "node:path";
4
4
  //#region src/cli.ts
5
5
  function parseArgs(argv) {
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-C8EGEwt7.js";
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, trackSchema } from "@supalive/core/procedure";
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supalive/codegen",
3
- "version": "1.13.1",
3
+ "version": "1.15.0",
4
4
  "description": "Generate type-safe client code (Dart, and more) from a Supalive TypeScript router.",
5
5
  "author": "Rebaz Raouf",
6
6
  "license": "MIT",