@drzl/cli 4.36.0 → 4.38.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/{chunk-S5JWTWWU.js → chunk-VG6SD2GP.js} +74 -4
- package/dist/chunk-VG6SD2GP.js.map +1 -0
- package/dist/cli.cjs +563 -31
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +497 -29
- package/dist/cli.js.map +1 -1
- package/dist/config.cjs +76 -3
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +64 -5
- package/dist/config.d.ts +64 -5
- package/dist/config.js +7 -1
- package/dist/drzl.config.schema.json +24 -1
- package/package.json +14 -11
- package/dist/chunk-S5JWTWWU.js.map +0 -1
package/dist/config.d.cts
CHANGED
|
@@ -128,8 +128,11 @@ declare const GeneratorKindSchema: z.ZodEnum<{
|
|
|
128
128
|
next: "next";
|
|
129
129
|
"tanstack-start": "tanstack-start";
|
|
130
130
|
"ts-rest": "ts-rest";
|
|
131
|
+
"openapi-fetch": "openapi-fetch";
|
|
132
|
+
forms: "forms";
|
|
131
133
|
seed: "seed";
|
|
132
134
|
"fast-check": "fast-check";
|
|
135
|
+
pothos: "pothos";
|
|
133
136
|
service: "service";
|
|
134
137
|
zod: "zod";
|
|
135
138
|
valibot: "valibot";
|
|
@@ -159,8 +162,11 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
159
162
|
next: "next";
|
|
160
163
|
"tanstack-start": "tanstack-start";
|
|
161
164
|
"ts-rest": "ts-rest";
|
|
165
|
+
"openapi-fetch": "openapi-fetch";
|
|
166
|
+
forms: "forms";
|
|
162
167
|
seed: "seed";
|
|
163
168
|
"fast-check": "fast-check";
|
|
169
|
+
pothos: "pothos";
|
|
164
170
|
service: "service";
|
|
165
171
|
zod: "zod";
|
|
166
172
|
valibot: "valibot";
|
|
@@ -184,6 +190,7 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
184
190
|
apiName: z.ZodOptional<z.ZodString>;
|
|
185
191
|
contractName: z.ZodOptional<z.ZodString>;
|
|
186
192
|
appName: z.ZodOptional<z.ZodString>;
|
|
193
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
187
194
|
count: z.ZodOptional<z.ZodNumber>;
|
|
188
195
|
prefix: z.ZodOptional<z.ZodString>;
|
|
189
196
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -199,8 +206,8 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
199
206
|
includeRelations: z.ZodOptional<z.ZodBoolean>;
|
|
200
207
|
sharedEnums: z.ZodOptional<z.ZodBoolean>;
|
|
201
208
|
coerceDates: z.ZodOptional<z.ZodEnum<{
|
|
202
|
-
none: "none";
|
|
203
209
|
input: "input";
|
|
210
|
+
none: "none";
|
|
204
211
|
all: "all";
|
|
205
212
|
}>>;
|
|
206
213
|
typedJson: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -214,6 +221,7 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
214
221
|
meta: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
215
222
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
216
223
|
description: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
registryIds: z.ZodOptional<z.ZodBoolean>;
|
|
217
225
|
}, z.core.$strict>]>>;
|
|
218
226
|
standardSchema: z.ZodOptional<z.ZodBoolean>;
|
|
219
227
|
nestedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -249,14 +257,22 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
249
257
|
"draft-2020-12": "draft-2020-12";
|
|
250
258
|
"openapi-3.1": "openapi-3.1";
|
|
251
259
|
"openapi-3.0": "openapi-3.0";
|
|
260
|
+
"react-hook-form": "react-hook-form";
|
|
261
|
+
"tanstack-form": "tanstack-form";
|
|
262
|
+
both: "both";
|
|
252
263
|
}>>;
|
|
264
|
+
modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
265
|
+
insert: "insert";
|
|
266
|
+
update: "update";
|
|
267
|
+
select: "select";
|
|
268
|
+
}>>>;
|
|
253
269
|
components: z.ZodOptional<z.ZodBoolean>;
|
|
254
270
|
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
255
271
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
256
272
|
format: z.ZodOptional<z.ZodEnum<{
|
|
257
273
|
ts: "ts";
|
|
258
|
-
json: "json";
|
|
259
274
|
both: "both";
|
|
275
|
+
json: "json";
|
|
260
276
|
}>>;
|
|
261
277
|
info: z.ZodOptional<z.ZodObject<{
|
|
262
278
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -412,8 +428,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
412
428
|
next: "next";
|
|
413
429
|
"tanstack-start": "tanstack-start";
|
|
414
430
|
"ts-rest": "ts-rest";
|
|
431
|
+
"openapi-fetch": "openapi-fetch";
|
|
432
|
+
forms: "forms";
|
|
415
433
|
seed: "seed";
|
|
416
434
|
"fast-check": "fast-check";
|
|
435
|
+
pothos: "pothos";
|
|
417
436
|
service: "service";
|
|
418
437
|
zod: "zod";
|
|
419
438
|
valibot: "valibot";
|
|
@@ -437,6 +456,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
437
456
|
apiName: z.ZodOptional<z.ZodString>;
|
|
438
457
|
contractName: z.ZodOptional<z.ZodString>;
|
|
439
458
|
appName: z.ZodOptional<z.ZodString>;
|
|
459
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
440
460
|
count: z.ZodOptional<z.ZodNumber>;
|
|
441
461
|
prefix: z.ZodOptional<z.ZodString>;
|
|
442
462
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -452,8 +472,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
452
472
|
includeRelations: z.ZodOptional<z.ZodBoolean>;
|
|
453
473
|
sharedEnums: z.ZodOptional<z.ZodBoolean>;
|
|
454
474
|
coerceDates: z.ZodOptional<z.ZodEnum<{
|
|
455
|
-
none: "none";
|
|
456
475
|
input: "input";
|
|
476
|
+
none: "none";
|
|
457
477
|
all: "all";
|
|
458
478
|
}>>;
|
|
459
479
|
typedJson: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -467,6 +487,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
467
487
|
meta: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
468
488
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
469
489
|
description: z.ZodOptional<z.ZodBoolean>;
|
|
490
|
+
registryIds: z.ZodOptional<z.ZodBoolean>;
|
|
470
491
|
}, z.core.$strict>]>>;
|
|
471
492
|
standardSchema: z.ZodOptional<z.ZodBoolean>;
|
|
472
493
|
nestedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -502,14 +523,22 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
502
523
|
"draft-2020-12": "draft-2020-12";
|
|
503
524
|
"openapi-3.1": "openapi-3.1";
|
|
504
525
|
"openapi-3.0": "openapi-3.0";
|
|
526
|
+
"react-hook-form": "react-hook-form";
|
|
527
|
+
"tanstack-form": "tanstack-form";
|
|
528
|
+
both: "both";
|
|
505
529
|
}>>;
|
|
530
|
+
modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
531
|
+
insert: "insert";
|
|
532
|
+
update: "update";
|
|
533
|
+
select: "select";
|
|
534
|
+
}>>>;
|
|
506
535
|
components: z.ZodOptional<z.ZodBoolean>;
|
|
507
536
|
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
508
537
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
509
538
|
format: z.ZodOptional<z.ZodEnum<{
|
|
510
539
|
ts: "ts";
|
|
511
|
-
json: "json";
|
|
512
540
|
both: "both";
|
|
541
|
+
json: "json";
|
|
513
542
|
}>>;
|
|
514
543
|
info: z.ZodOptional<z.ZodObject<{
|
|
515
544
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -833,6 +862,24 @@ declare function tsRestOutDir(g: {
|
|
|
833
862
|
}, cfg: {
|
|
834
863
|
outDir: string;
|
|
835
864
|
}): string;
|
|
865
|
+
/**
|
|
866
|
+
* Where the openapi-fetch client goes.
|
|
867
|
+
*
|
|
868
|
+
* The same rule again. It writes one module, `client.ts`, rather than a barrel, but a client is a
|
|
869
|
+
* thing a project imports by path and giving it its own `path` is what lets it sit beside the
|
|
870
|
+
* document it describes rather than inside a router's output directory.
|
|
871
|
+
*/
|
|
872
|
+
declare function openApiFetchOutDir(g: {
|
|
873
|
+
path?: string;
|
|
874
|
+
}, cfg: {
|
|
875
|
+
outDir: string;
|
|
876
|
+
}): string;
|
|
877
|
+
/** Where the form modules go. The same rule again: it writes a barrel of its own. */
|
|
878
|
+
declare function formsOutDir(g: {
|
|
879
|
+
path?: string;
|
|
880
|
+
}, cfg: {
|
|
881
|
+
outDir: string;
|
|
882
|
+
}): string;
|
|
836
883
|
/**
|
|
837
884
|
* Where the Elysia generator writes.
|
|
838
885
|
*
|
|
@@ -867,6 +914,18 @@ declare function fastCheckOutDir(g: {
|
|
|
867
914
|
}, cfg: {
|
|
868
915
|
outDir: string;
|
|
869
916
|
}): string;
|
|
917
|
+
/**
|
|
918
|
+
* Where the Pothos generator writes.
|
|
919
|
+
*
|
|
920
|
+
* The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
|
|
921
|
+
* which is the assembled schema. Its own function rather than a call to one of the others, for the
|
|
922
|
+
* reason `honoOutDir` records.
|
|
923
|
+
*/
|
|
924
|
+
declare function pothosOutDir(g: {
|
|
925
|
+
path?: string;
|
|
926
|
+
}, cfg: {
|
|
927
|
+
outDir: string;
|
|
928
|
+
}): string;
|
|
870
929
|
/**
|
|
871
930
|
* Fill in cross-generator defaults and refuse configs whose generators would disagree.
|
|
872
931
|
*
|
|
@@ -964,4 +1023,4 @@ declare function tableFilterWarnings(tables: readonly {
|
|
|
964
1023
|
}): string[];
|
|
965
1024
|
declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
|
|
966
1025
|
|
|
967
|
-
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, fastCheckOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
|
|
1026
|
+
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, fastCheckOutDir, fastifyOutDir, filterTables, formsOutDir, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, openApiFetchOutDir, pothosOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
|
package/dist/config.d.ts
CHANGED
|
@@ -128,8 +128,11 @@ declare const GeneratorKindSchema: z.ZodEnum<{
|
|
|
128
128
|
next: "next";
|
|
129
129
|
"tanstack-start": "tanstack-start";
|
|
130
130
|
"ts-rest": "ts-rest";
|
|
131
|
+
"openapi-fetch": "openapi-fetch";
|
|
132
|
+
forms: "forms";
|
|
131
133
|
seed: "seed";
|
|
132
134
|
"fast-check": "fast-check";
|
|
135
|
+
pothos: "pothos";
|
|
133
136
|
service: "service";
|
|
134
137
|
zod: "zod";
|
|
135
138
|
valibot: "valibot";
|
|
@@ -159,8 +162,11 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
159
162
|
next: "next";
|
|
160
163
|
"tanstack-start": "tanstack-start";
|
|
161
164
|
"ts-rest": "ts-rest";
|
|
165
|
+
"openapi-fetch": "openapi-fetch";
|
|
166
|
+
forms: "forms";
|
|
162
167
|
seed: "seed";
|
|
163
168
|
"fast-check": "fast-check";
|
|
169
|
+
pothos: "pothos";
|
|
164
170
|
service: "service";
|
|
165
171
|
zod: "zod";
|
|
166
172
|
valibot: "valibot";
|
|
@@ -184,6 +190,7 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
184
190
|
apiName: z.ZodOptional<z.ZodString>;
|
|
185
191
|
contractName: z.ZodOptional<z.ZodString>;
|
|
186
192
|
appName: z.ZodOptional<z.ZodString>;
|
|
193
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
187
194
|
count: z.ZodOptional<z.ZodNumber>;
|
|
188
195
|
prefix: z.ZodOptional<z.ZodString>;
|
|
189
196
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -199,8 +206,8 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
199
206
|
includeRelations: z.ZodOptional<z.ZodBoolean>;
|
|
200
207
|
sharedEnums: z.ZodOptional<z.ZodBoolean>;
|
|
201
208
|
coerceDates: z.ZodOptional<z.ZodEnum<{
|
|
202
|
-
none: "none";
|
|
203
209
|
input: "input";
|
|
210
|
+
none: "none";
|
|
204
211
|
all: "all";
|
|
205
212
|
}>>;
|
|
206
213
|
typedJson: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -214,6 +221,7 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
214
221
|
meta: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
215
222
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
216
223
|
description: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
registryIds: z.ZodOptional<z.ZodBoolean>;
|
|
217
225
|
}, z.core.$strict>]>>;
|
|
218
226
|
standardSchema: z.ZodOptional<z.ZodBoolean>;
|
|
219
227
|
nestedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -249,14 +257,22 @@ declare const GeneratorSchema: z.ZodObject<{
|
|
|
249
257
|
"draft-2020-12": "draft-2020-12";
|
|
250
258
|
"openapi-3.1": "openapi-3.1";
|
|
251
259
|
"openapi-3.0": "openapi-3.0";
|
|
260
|
+
"react-hook-form": "react-hook-form";
|
|
261
|
+
"tanstack-form": "tanstack-form";
|
|
262
|
+
both: "both";
|
|
252
263
|
}>>;
|
|
264
|
+
modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
265
|
+
insert: "insert";
|
|
266
|
+
update: "update";
|
|
267
|
+
select: "select";
|
|
268
|
+
}>>>;
|
|
253
269
|
components: z.ZodOptional<z.ZodBoolean>;
|
|
254
270
|
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
255
271
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
256
272
|
format: z.ZodOptional<z.ZodEnum<{
|
|
257
273
|
ts: "ts";
|
|
258
|
-
json: "json";
|
|
259
274
|
both: "both";
|
|
275
|
+
json: "json";
|
|
260
276
|
}>>;
|
|
261
277
|
info: z.ZodOptional<z.ZodObject<{
|
|
262
278
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -412,8 +428,11 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
412
428
|
next: "next";
|
|
413
429
|
"tanstack-start": "tanstack-start";
|
|
414
430
|
"ts-rest": "ts-rest";
|
|
431
|
+
"openapi-fetch": "openapi-fetch";
|
|
432
|
+
forms: "forms";
|
|
415
433
|
seed: "seed";
|
|
416
434
|
"fast-check": "fast-check";
|
|
435
|
+
pothos: "pothos";
|
|
417
436
|
service: "service";
|
|
418
437
|
zod: "zod";
|
|
419
438
|
valibot: "valibot";
|
|
@@ -437,6 +456,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
437
456
|
apiName: z.ZodOptional<z.ZodString>;
|
|
438
457
|
contractName: z.ZodOptional<z.ZodString>;
|
|
439
458
|
appName: z.ZodOptional<z.ZodString>;
|
|
459
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
440
460
|
count: z.ZodOptional<z.ZodNumber>;
|
|
441
461
|
prefix: z.ZodOptional<z.ZodString>;
|
|
442
462
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -452,8 +472,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
452
472
|
includeRelations: z.ZodOptional<z.ZodBoolean>;
|
|
453
473
|
sharedEnums: z.ZodOptional<z.ZodBoolean>;
|
|
454
474
|
coerceDates: z.ZodOptional<z.ZodEnum<{
|
|
455
|
-
none: "none";
|
|
456
475
|
input: "input";
|
|
476
|
+
none: "none";
|
|
457
477
|
all: "all";
|
|
458
478
|
}>>;
|
|
459
479
|
typedJson: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -467,6 +487,7 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
467
487
|
meta: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
468
488
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
469
489
|
description: z.ZodOptional<z.ZodBoolean>;
|
|
490
|
+
registryIds: z.ZodOptional<z.ZodBoolean>;
|
|
470
491
|
}, z.core.$strict>]>>;
|
|
471
492
|
standardSchema: z.ZodOptional<z.ZodBoolean>;
|
|
472
493
|
nestedSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -502,14 +523,22 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
502
523
|
"draft-2020-12": "draft-2020-12";
|
|
503
524
|
"openapi-3.1": "openapi-3.1";
|
|
504
525
|
"openapi-3.0": "openapi-3.0";
|
|
526
|
+
"react-hook-form": "react-hook-form";
|
|
527
|
+
"tanstack-form": "tanstack-form";
|
|
528
|
+
both: "both";
|
|
505
529
|
}>>;
|
|
530
|
+
modes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
531
|
+
insert: "insert";
|
|
532
|
+
update: "update";
|
|
533
|
+
select: "select";
|
|
534
|
+
}>>>;
|
|
506
535
|
components: z.ZodOptional<z.ZodBoolean>;
|
|
507
536
|
document: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
508
537
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
509
538
|
format: z.ZodOptional<z.ZodEnum<{
|
|
510
539
|
ts: "ts";
|
|
511
|
-
json: "json";
|
|
512
540
|
both: "both";
|
|
541
|
+
json: "json";
|
|
513
542
|
}>>;
|
|
514
543
|
info: z.ZodOptional<z.ZodObject<{
|
|
515
544
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -833,6 +862,24 @@ declare function tsRestOutDir(g: {
|
|
|
833
862
|
}, cfg: {
|
|
834
863
|
outDir: string;
|
|
835
864
|
}): string;
|
|
865
|
+
/**
|
|
866
|
+
* Where the openapi-fetch client goes.
|
|
867
|
+
*
|
|
868
|
+
* The same rule again. It writes one module, `client.ts`, rather than a barrel, but a client is a
|
|
869
|
+
* thing a project imports by path and giving it its own `path` is what lets it sit beside the
|
|
870
|
+
* document it describes rather than inside a router's output directory.
|
|
871
|
+
*/
|
|
872
|
+
declare function openApiFetchOutDir(g: {
|
|
873
|
+
path?: string;
|
|
874
|
+
}, cfg: {
|
|
875
|
+
outDir: string;
|
|
876
|
+
}): string;
|
|
877
|
+
/** Where the form modules go. The same rule again: it writes a barrel of its own. */
|
|
878
|
+
declare function formsOutDir(g: {
|
|
879
|
+
path?: string;
|
|
880
|
+
}, cfg: {
|
|
881
|
+
outDir: string;
|
|
882
|
+
}): string;
|
|
836
883
|
/**
|
|
837
884
|
* Where the Elysia generator writes.
|
|
838
885
|
*
|
|
@@ -867,6 +914,18 @@ declare function fastCheckOutDir(g: {
|
|
|
867
914
|
}, cfg: {
|
|
868
915
|
outDir: string;
|
|
869
916
|
}): string;
|
|
917
|
+
/**
|
|
918
|
+
* Where the Pothos generator writes.
|
|
919
|
+
*
|
|
920
|
+
* The same rule as the routers, and for the same reason: it writes an `index.ts` barrel of its own,
|
|
921
|
+
* which is the assembled schema. Its own function rather than a call to one of the others, for the
|
|
922
|
+
* reason `honoOutDir` records.
|
|
923
|
+
*/
|
|
924
|
+
declare function pothosOutDir(g: {
|
|
925
|
+
path?: string;
|
|
926
|
+
}, cfg: {
|
|
927
|
+
outDir: string;
|
|
928
|
+
}): string;
|
|
870
929
|
/**
|
|
871
930
|
* Fill in cross-generator defaults and refuse configs whose generators would disagree.
|
|
872
931
|
*
|
|
@@ -964,4 +1023,4 @@ declare function tableFilterWarnings(tables: readonly {
|
|
|
964
1023
|
}): string[];
|
|
965
1024
|
declare function computeWatchTargets(cfg: DrzlConfig, cwd?: string, source?: ResolvedSchemaSource): string[];
|
|
966
1025
|
|
|
967
|
-
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, fastCheckOutDir, fastifyOutDir, filterTables, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
|
|
1026
|
+
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, fastCheckOutDir, fastifyOutDir, filterTables, formsOutDir, graphqlOutDir, h3OutDir, honoOutDir, importFreshConfigModule, loadConfig, mcpOutDir, nestjsOutDir, nextOutDir, openApiFetchOutDir, pothosOutDir, resolveConfig, resolveTemplateDirsSync, seedOutDir, tableFilterWarnings, tanstackStartOutDir, trpcOutDir, tsRestOutDir };
|
package/dist/config.js
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
fastCheckOutDir,
|
|
23
23
|
fastifyOutDir,
|
|
24
24
|
filterTables,
|
|
25
|
+
formsOutDir,
|
|
25
26
|
graphqlOutDir,
|
|
26
27
|
h3OutDir,
|
|
27
28
|
honoOutDir,
|
|
@@ -30,6 +31,8 @@ import {
|
|
|
30
31
|
mcpOutDir,
|
|
31
32
|
nestjsOutDir,
|
|
32
33
|
nextOutDir,
|
|
34
|
+
openApiFetchOutDir,
|
|
35
|
+
pothosOutDir,
|
|
33
36
|
resolveConfig,
|
|
34
37
|
resolveTemplateDirsSync,
|
|
35
38
|
seedOutDir,
|
|
@@ -37,7 +40,7 @@ import {
|
|
|
37
40
|
tanstackStartOutDir,
|
|
38
41
|
trpcOutDir,
|
|
39
42
|
tsRestOutDir
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VG6SD2GP.js";
|
|
41
44
|
export {
|
|
42
45
|
AffixSchema,
|
|
43
46
|
AnalyzerSchema,
|
|
@@ -62,6 +65,7 @@ export {
|
|
|
62
65
|
fastCheckOutDir,
|
|
63
66
|
fastifyOutDir,
|
|
64
67
|
filterTables,
|
|
68
|
+
formsOutDir,
|
|
65
69
|
graphqlOutDir,
|
|
66
70
|
h3OutDir,
|
|
67
71
|
honoOutDir,
|
|
@@ -70,6 +74,8 @@ export {
|
|
|
70
74
|
mcpOutDir,
|
|
71
75
|
nestjsOutDir,
|
|
72
76
|
nextOutDir,
|
|
77
|
+
openApiFetchOutDir,
|
|
78
|
+
pothosOutDir,
|
|
73
79
|
resolveConfig,
|
|
74
80
|
resolveTemplateDirsSync,
|
|
75
81
|
seedOutDir,
|
|
@@ -122,8 +122,11 @@
|
|
|
122
122
|
"next",
|
|
123
123
|
"tanstack-start",
|
|
124
124
|
"ts-rest",
|
|
125
|
+
"openapi-fetch",
|
|
126
|
+
"forms",
|
|
125
127
|
"seed",
|
|
126
128
|
"fast-check",
|
|
129
|
+
"pothos",
|
|
127
130
|
"service",
|
|
128
131
|
"zod",
|
|
129
132
|
"valibot",
|
|
@@ -163,6 +166,9 @@
|
|
|
163
166
|
"appName": {
|
|
164
167
|
"type": "string"
|
|
165
168
|
},
|
|
169
|
+
"clientName": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
166
172
|
"count": {
|
|
167
173
|
"type": "integer",
|
|
168
174
|
"exclusiveMinimum": 0,
|
|
@@ -252,6 +258,9 @@
|
|
|
252
258
|
},
|
|
253
259
|
"description": {
|
|
254
260
|
"type": "boolean"
|
|
261
|
+
},
|
|
262
|
+
"registryIds": {
|
|
263
|
+
"type": "boolean"
|
|
255
264
|
}
|
|
256
265
|
},
|
|
257
266
|
"additionalProperties": false
|
|
@@ -350,9 +359,23 @@
|
|
|
350
359
|
"enum": [
|
|
351
360
|
"draft-2020-12",
|
|
352
361
|
"openapi-3.1",
|
|
353
|
-
"openapi-3.0"
|
|
362
|
+
"openapi-3.0",
|
|
363
|
+
"react-hook-form",
|
|
364
|
+
"tanstack-form",
|
|
365
|
+
"both"
|
|
354
366
|
]
|
|
355
367
|
},
|
|
368
|
+
"modes": {
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"enum": [
|
|
373
|
+
"insert",
|
|
374
|
+
"update",
|
|
375
|
+
"select"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
356
379
|
"components": {
|
|
357
380
|
"type": "boolean"
|
|
358
381
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drzl/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.38.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -29,26 +29,32 @@
|
|
|
29
29
|
"jiti": "^2.7.0",
|
|
30
30
|
"ora": "^9.4.1",
|
|
31
31
|
"zod": "^4.4.3",
|
|
32
|
-
"@drzl/analyzer": "^1.
|
|
32
|
+
"@drzl/analyzer": "^1.22.0",
|
|
33
33
|
"@drzl/generator-ai": "^0.1.0",
|
|
34
34
|
"@drzl/generator-arktype": "^3.17.5",
|
|
35
35
|
"@drzl/generator-effect": "^0.5.4",
|
|
36
|
+
"@drzl/generator-effect-http": "^0.1.0",
|
|
37
|
+
"@drzl/generator-elysia": "^0.2.0",
|
|
36
38
|
"@drzl/generator-express": "^0.2.2",
|
|
39
|
+
"@drzl/generator-fast-check": "^0.2.0",
|
|
37
40
|
"@drzl/generator-fastify": "^0.2.2",
|
|
38
41
|
"@drzl/generator-graphql": "^0.2.1",
|
|
42
|
+
"@drzl/generator-h3": "^0.1.0",
|
|
39
43
|
"@drzl/generator-hono": "^0.2.2",
|
|
40
44
|
"@drzl/generator-json-schema": "^0.9.3",
|
|
41
45
|
"@drzl/generator-mcp": "^0.1.0",
|
|
42
46
|
"@drzl/generator-nestjs": "^0.2.3",
|
|
43
|
-
"@drzl/generator-next": "^0.1.
|
|
47
|
+
"@drzl/generator-next": "^0.1.1",
|
|
44
48
|
"@drzl/generator-orpc": "^2.9.2",
|
|
49
|
+
"@drzl/generator-seed": "^0.2.0",
|
|
45
50
|
"@drzl/generator-service": "^2.5.3",
|
|
46
51
|
"@drzl/generator-tanstack-start": "^0.1.0",
|
|
47
52
|
"@drzl/generator-trpc": "^0.3.2",
|
|
53
|
+
"@drzl/generator-ts-rest": "^0.2.0",
|
|
48
54
|
"@drzl/generator-typebox": "^0.14.6",
|
|
49
55
|
"@drzl/generator-valibot": "^3.20.5",
|
|
50
|
-
"@drzl/generator-zod": "^3.
|
|
51
|
-
"@drzl/validation-core": "^3.
|
|
56
|
+
"@drzl/generator-zod": "^3.22.0",
|
|
57
|
+
"@drzl/validation-core": "^3.23.0"
|
|
52
58
|
},
|
|
53
59
|
"devDependencies": {
|
|
54
60
|
"ajv": "^8.17.1",
|
|
@@ -75,12 +81,9 @@
|
|
|
75
81
|
"url": "https://github.com/sponsors/omar-dulaimi"
|
|
76
82
|
},
|
|
77
83
|
"optionalDependencies": {
|
|
78
|
-
"@drzl/generator-
|
|
79
|
-
"@drzl/generator-
|
|
80
|
-
"@drzl/generator-
|
|
81
|
-
"@drzl/generator-h3": "^0.1.0",
|
|
82
|
-
"@drzl/generator-seed": "^0.2.0",
|
|
83
|
-
"@drzl/generator-ts-rest": "^0.2.0"
|
|
84
|
+
"@drzl/generator-forms": "^0.2.0",
|
|
85
|
+
"@drzl/generator-openapi-fetch": "^0.2.0",
|
|
86
|
+
"@drzl/generator-pothos": "^0.2.0"
|
|
84
87
|
},
|
|
85
88
|
"scripts": {
|
|
86
89
|
"build": "tsup src/cli.ts src/config.ts --format esm,cjs --sourcemap --dts --clean && node scripts/gen-config-schema.mjs",
|