@drzl/cli 4.30.0 → 4.32.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/config.d.cts CHANGED
@@ -122,10 +122,12 @@ declare const GeneratorKindSchema: z.ZodEnum<{
122
122
  graphql: "graphql";
123
123
  ai: "ai";
124
124
  "effect-http": "effect-http";
125
+ elysia: "elysia";
125
126
  h3: "h3";
126
127
  mcp: "mcp";
127
128
  next: "next";
128
129
  "tanstack-start": "tanstack-start";
130
+ "ts-rest": "ts-rest";
129
131
  service: "service";
130
132
  zod: "zod";
131
133
  valibot: "valibot";
@@ -149,10 +151,12 @@ declare const GeneratorSchema: z.ZodObject<{
149
151
  graphql: "graphql";
150
152
  ai: "ai";
151
153
  "effect-http": "effect-http";
154
+ elysia: "elysia";
152
155
  h3: "h3";
153
156
  mcp: "mcp";
154
157
  next: "next";
155
158
  "tanstack-start": "tanstack-start";
159
+ "ts-rest": "ts-rest";
156
160
  service: "service";
157
161
  zod: "zod";
158
162
  valibot: "valibot";
@@ -174,6 +178,10 @@ declare const GeneratorSchema: z.ZodObject<{
174
178
  v2: "v2";
175
179
  }>>;
176
180
  apiName: z.ZodOptional<z.ZodString>;
181
+ contractName: z.ZodOptional<z.ZodString>;
182
+ appName: z.ZodOptional<z.ZodString>;
183
+ prefix: z.ZodOptional<z.ZodString>;
184
+ pathPrefix: z.ZodOptional<z.ZodString>;
177
185
  serverName: z.ZodOptional<z.ZodString>;
178
186
  serverVersion: z.ZodOptional<z.ZodString>;
179
187
  stdio: z.ZodOptional<z.ZodBoolean>;
@@ -186,8 +194,8 @@ declare const GeneratorSchema: z.ZodObject<{
186
194
  includeRelations: z.ZodOptional<z.ZodBoolean>;
187
195
  sharedEnums: z.ZodOptional<z.ZodBoolean>;
188
196
  coerceDates: z.ZodOptional<z.ZodEnum<{
189
- none: "none";
190
197
  input: "input";
198
+ none: "none";
191
199
  all: "all";
192
200
  }>>;
193
201
  typedJson: z.ZodOptional<z.ZodBoolean>;
@@ -309,6 +317,7 @@ declare const GeneratorSchema: z.ZodObject<{
309
317
  zod: "zod";
310
318
  valibot: "valibot";
311
319
  arktype: "arktype";
320
+ typebox: "typebox";
312
321
  }>>>;
313
322
  importPath: z.ZodOptional<z.ZodString>;
314
323
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -392,10 +401,12 @@ declare const ConfigSchema: z.ZodObject<{
392
401
  graphql: "graphql";
393
402
  ai: "ai";
394
403
  "effect-http": "effect-http";
404
+ elysia: "elysia";
395
405
  h3: "h3";
396
406
  mcp: "mcp";
397
407
  next: "next";
398
408
  "tanstack-start": "tanstack-start";
409
+ "ts-rest": "ts-rest";
399
410
  service: "service";
400
411
  zod: "zod";
401
412
  valibot: "valibot";
@@ -417,6 +428,10 @@ declare const ConfigSchema: z.ZodObject<{
417
428
  v2: "v2";
418
429
  }>>;
419
430
  apiName: z.ZodOptional<z.ZodString>;
431
+ contractName: z.ZodOptional<z.ZodString>;
432
+ appName: z.ZodOptional<z.ZodString>;
433
+ prefix: z.ZodOptional<z.ZodString>;
434
+ pathPrefix: z.ZodOptional<z.ZodString>;
420
435
  serverName: z.ZodOptional<z.ZodString>;
421
436
  serverVersion: z.ZodOptional<z.ZodString>;
422
437
  stdio: z.ZodOptional<z.ZodBoolean>;
@@ -429,8 +444,8 @@ declare const ConfigSchema: z.ZodObject<{
429
444
  includeRelations: z.ZodOptional<z.ZodBoolean>;
430
445
  sharedEnums: z.ZodOptional<z.ZodBoolean>;
431
446
  coerceDates: z.ZodOptional<z.ZodEnum<{
432
- none: "none";
433
447
  input: "input";
448
+ none: "none";
434
449
  all: "all";
435
450
  }>>;
436
451
  typedJson: z.ZodOptional<z.ZodBoolean>;
@@ -552,6 +567,7 @@ declare const ConfigSchema: z.ZodObject<{
552
567
  zod: "zod";
553
568
  valibot: "valibot";
554
569
  arktype: "arktype";
570
+ typebox: "typebox";
555
571
  }>>>;
556
572
  importPath: z.ZodOptional<z.ZodString>;
557
573
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -797,6 +813,30 @@ declare function effectHttpOutDir(g: {
797
813
  }, cfg: {
798
814
  outDir: string;
799
815
  }): string;
816
+ /**
817
+ * Where the ts-rest generator writes.
818
+ *
819
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
820
+ * which is the assembled root contract. Its own function rather than a call to one of the others,
821
+ * for the reason `honoOutDir` records.
822
+ */
823
+ declare function tsRestOutDir(g: {
824
+ path?: string;
825
+ }, cfg: {
826
+ outDir: string;
827
+ }): string;
828
+ /**
829
+ * Where the Elysia generator writes.
830
+ *
831
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
832
+ * which is the assembled app. Its own function rather than a call to one of the others, for the
833
+ * reason `honoOutDir` records.
834
+ */
835
+ declare function elysiaOutDir(g: {
836
+ path?: string;
837
+ }, cfg: {
838
+ outDir: string;
839
+ }): string;
800
840
  /**
801
841
  * Fill in cross-generator defaults and refuse configs whose generators would disagree.
802
842
  *
@@ -894,4 +934,4 @@ declare function tableFilterWarnings(tables: readonly {
894
934
  }): string[];
895
935
  declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
896
936
 
897
- export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir };
937
+ export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, elysiaOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
package/dist/config.d.ts CHANGED
@@ -122,10 +122,12 @@ declare const GeneratorKindSchema: z.ZodEnum<{
122
122
  graphql: "graphql";
123
123
  ai: "ai";
124
124
  "effect-http": "effect-http";
125
+ elysia: "elysia";
125
126
  h3: "h3";
126
127
  mcp: "mcp";
127
128
  next: "next";
128
129
  "tanstack-start": "tanstack-start";
130
+ "ts-rest": "ts-rest";
129
131
  service: "service";
130
132
  zod: "zod";
131
133
  valibot: "valibot";
@@ -149,10 +151,12 @@ declare const GeneratorSchema: z.ZodObject<{
149
151
  graphql: "graphql";
150
152
  ai: "ai";
151
153
  "effect-http": "effect-http";
154
+ elysia: "elysia";
152
155
  h3: "h3";
153
156
  mcp: "mcp";
154
157
  next: "next";
155
158
  "tanstack-start": "tanstack-start";
159
+ "ts-rest": "ts-rest";
156
160
  service: "service";
157
161
  zod: "zod";
158
162
  valibot: "valibot";
@@ -174,6 +178,10 @@ declare const GeneratorSchema: z.ZodObject<{
174
178
  v2: "v2";
175
179
  }>>;
176
180
  apiName: z.ZodOptional<z.ZodString>;
181
+ contractName: z.ZodOptional<z.ZodString>;
182
+ appName: z.ZodOptional<z.ZodString>;
183
+ prefix: z.ZodOptional<z.ZodString>;
184
+ pathPrefix: z.ZodOptional<z.ZodString>;
177
185
  serverName: z.ZodOptional<z.ZodString>;
178
186
  serverVersion: z.ZodOptional<z.ZodString>;
179
187
  stdio: z.ZodOptional<z.ZodBoolean>;
@@ -186,8 +194,8 @@ declare const GeneratorSchema: z.ZodObject<{
186
194
  includeRelations: z.ZodOptional<z.ZodBoolean>;
187
195
  sharedEnums: z.ZodOptional<z.ZodBoolean>;
188
196
  coerceDates: z.ZodOptional<z.ZodEnum<{
189
- none: "none";
190
197
  input: "input";
198
+ none: "none";
191
199
  all: "all";
192
200
  }>>;
193
201
  typedJson: z.ZodOptional<z.ZodBoolean>;
@@ -309,6 +317,7 @@ declare const GeneratorSchema: z.ZodObject<{
309
317
  zod: "zod";
310
318
  valibot: "valibot";
311
319
  arktype: "arktype";
320
+ typebox: "typebox";
312
321
  }>>>;
313
322
  importPath: z.ZodOptional<z.ZodString>;
314
323
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -392,10 +401,12 @@ declare const ConfigSchema: z.ZodObject<{
392
401
  graphql: "graphql";
393
402
  ai: "ai";
394
403
  "effect-http": "effect-http";
404
+ elysia: "elysia";
395
405
  h3: "h3";
396
406
  mcp: "mcp";
397
407
  next: "next";
398
408
  "tanstack-start": "tanstack-start";
409
+ "ts-rest": "ts-rest";
399
410
  service: "service";
400
411
  zod: "zod";
401
412
  valibot: "valibot";
@@ -417,6 +428,10 @@ declare const ConfigSchema: z.ZodObject<{
417
428
  v2: "v2";
418
429
  }>>;
419
430
  apiName: z.ZodOptional<z.ZodString>;
431
+ contractName: z.ZodOptional<z.ZodString>;
432
+ appName: z.ZodOptional<z.ZodString>;
433
+ prefix: z.ZodOptional<z.ZodString>;
434
+ pathPrefix: z.ZodOptional<z.ZodString>;
420
435
  serverName: z.ZodOptional<z.ZodString>;
421
436
  serverVersion: z.ZodOptional<z.ZodString>;
422
437
  stdio: z.ZodOptional<z.ZodBoolean>;
@@ -429,8 +444,8 @@ declare const ConfigSchema: z.ZodObject<{
429
444
  includeRelations: z.ZodOptional<z.ZodBoolean>;
430
445
  sharedEnums: z.ZodOptional<z.ZodBoolean>;
431
446
  coerceDates: z.ZodOptional<z.ZodEnum<{
432
- none: "none";
433
447
  input: "input";
448
+ none: "none";
434
449
  all: "all";
435
450
  }>>;
436
451
  typedJson: z.ZodOptional<z.ZodBoolean>;
@@ -552,6 +567,7 @@ declare const ConfigSchema: z.ZodObject<{
552
567
  zod: "zod";
553
568
  valibot: "valibot";
554
569
  arktype: "arktype";
570
+ typebox: "typebox";
555
571
  }>>>;
556
572
  importPath: z.ZodOptional<z.ZodString>;
557
573
  schemaSuffix: z.ZodOptional<z.ZodString>;
@@ -797,6 +813,30 @@ declare function effectHttpOutDir(g: {
797
813
  }, cfg: {
798
814
  outDir: string;
799
815
  }): string;
816
+ /**
817
+ * Where the ts-rest generator writes.
818
+ *
819
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
820
+ * which is the assembled root contract. Its own function rather than a call to one of the others,
821
+ * for the reason `honoOutDir` records.
822
+ */
823
+ declare function tsRestOutDir(g: {
824
+ path?: string;
825
+ }, cfg: {
826
+ outDir: string;
827
+ }): string;
828
+ /**
829
+ * Where the Elysia generator writes.
830
+ *
831
+ * The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
832
+ * which is the assembled app. Its own function rather than a call to one of the others, for the
833
+ * reason `honoOutDir` records.
834
+ */
835
+ declare function elysiaOutDir(g: {
836
+ path?: string;
837
+ }, cfg: {
838
+ outDir: string;
839
+ }): string;
800
840
  /**
801
841
  * Fill in cross-generator defaults and refuse configs whose generators would disagree.
802
842
  *
@@ -894,4 +934,4 @@ declare function tableFilterWarnings(tables: readonly {
894
934
  }): string[];
895
935
  declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
896
936
 
897
- export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir };
937
+ export { AffixSchema, AnalyzerSchema, CONFIG_FILE_NAMES, CONFIG_SCHEMA_ID, ColumnRulesSchema, ConfigSchema, type DrzlConfig, type DrzlConfigInput, GENERATOR_KINDS, type GeneratorKind, GeneratorKindSchema, GeneratorSchema, ImportExtensionSchema, NamingSchema, aiOutDir, buildConfigJsonSchema, computeGeneratorOutputDirs, computeWatchTargets, configFromKinds, defineConfig, effectHttpOutDir, elysiaOutDir, expressOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
package/dist/config.js CHANGED
@@ -17,6 +17,7 @@ import {
17
17
  configFromKinds,
18
18
  defineConfig,
19
19
  effectHttpOutDir,
20
+ elysiaOutDir,
20
21
  expressOutDir,
21
22
  fastifyOutDir,
22
23
  filterTables,
@@ -32,8 +33,9 @@ import {
32
33
  resolveTemplateDirsSync,
33
34
  tableFilterWarnings,
34
35
  tanstackStartOutDir,
35
- trpcOutDir
36
- } from "./chunk-3REB46XD.js";
36
+ trpcOutDir,
37
+ tsRestOutDir
38
+ } from "./chunk-BDIJ6WMG.js";
37
39
  export {
38
40
  AffixSchema,
39
41
  AnalyzerSchema,
@@ -53,6 +55,7 @@ export {
53
55
  configFromKinds,
54
56
  defineConfig,
55
57
  effectHttpOutDir,
58
+ elysiaOutDir,
56
59
  expressOutDir,
57
60
  fastifyOutDir,
58
61
  filterTables,
@@ -68,6 +71,7 @@ export {
68
71
  resolveTemplateDirsSync,
69
72
  tableFilterWarnings,
70
73
  tanstackStartOutDir,
71
- trpcOutDir
74
+ trpcOutDir,
75
+ tsRestOutDir
72
76
  };
73
77
  //# sourceMappingURL=config.js.map
@@ -116,10 +116,12 @@
116
116
  "graphql",
117
117
  "ai",
118
118
  "effect-http",
119
+ "elysia",
119
120
  "h3",
120
121
  "mcp",
121
122
  "next",
122
123
  "tanstack-start",
124
+ "ts-rest",
123
125
  "service",
124
126
  "zod",
125
127
  "valibot",
@@ -153,6 +155,18 @@
153
155
  "apiName": {
154
156
  "type": "string"
155
157
  },
158
+ "contractName": {
159
+ "type": "string"
160
+ },
161
+ "appName": {
162
+ "type": "string"
163
+ },
164
+ "prefix": {
165
+ "type": "string"
166
+ },
167
+ "pathPrefix": {
168
+ "type": "string"
169
+ },
156
170
  "serverName": {
157
171
  "type": "string"
158
172
  },
@@ -595,7 +609,8 @@
595
609
  "enum": [
596
610
  "zod",
597
611
  "valibot",
598
- "arktype"
612
+ "arktype",
613
+ "typebox"
599
614
  ]
600
615
  },
601
616
  "importPath": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drzl/cli",
3
- "version": "4.30.0",
3
+ "version": "4.32.0",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -43,10 +43,10 @@
43
43
  "@drzl/generator-next": "^0.1.0",
44
44
  "@drzl/generator-orpc": "^2.9.2",
45
45
  "@drzl/generator-service": "^2.5.3",
46
+ "@drzl/generator-tanstack-start": "^0.1.0",
46
47
  "@drzl/generator-trpc": "^0.3.2",
47
48
  "@drzl/generator-typebox": "^0.14.6",
48
49
  "@drzl/generator-valibot": "^3.20.5",
49
- "@drzl/generator-tanstack-start": "^0.1.0",
50
50
  "@drzl/generator-zod": "^3.21.5",
51
51
  "@drzl/validation-core": "^3.22.6"
52
52
  },
@@ -76,7 +76,9 @@
76
76
  },
77
77
  "optionalDependencies": {
78
78
  "@drzl/generator-effect-http": "^0.1.0",
79
- "@drzl/generator-h3": "^0.1.0"
79
+ "@drzl/generator-elysia": "^0.2.0",
80
+ "@drzl/generator-h3": "^0.1.0",
81
+ "@drzl/generator-ts-rest": "^0.2.0"
80
82
  },
81
83
  "scripts": {
82
84
  "build": "tsup src/cli.ts src/config.ts --format esm,cjs --sourcemap --dts --clean && node scripts/gen-config-schema.mjs",