@drzl/cli 4.32.0 → 4.35.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.cjs CHANGED
@@ -51,6 +51,7 @@ __export(config_exports, {
51
51
  effectHttpOutDir: () => effectHttpOutDir,
52
52
  elysiaOutDir: () => elysiaOutDir,
53
53
  expressOutDir: () => expressOutDir,
54
+ fastCheckOutDir: () => fastCheckOutDir,
54
55
  fastifyOutDir: () => fastifyOutDir,
55
56
  filterTables: () => filterTables,
56
57
  graphqlOutDir: () => graphqlOutDir,
@@ -63,6 +64,7 @@ __export(config_exports, {
63
64
  nextOutDir: () => nextOutDir,
64
65
  resolveConfig: () => resolveConfig,
65
66
  resolveTemplateDirsSync: () => resolveTemplateDirsSync,
67
+ seedOutDir: () => seedOutDir,
66
68
  tableFilterWarnings: () => tableFilterWarnings,
67
69
  tanstackStartOutDir: () => tanstackStartOutDir,
68
70
  trpcOutDir: () => trpcOutDir,
@@ -367,6 +369,8 @@ var GeneratorKindSchema = import_zod.z.enum([
367
369
  "next",
368
370
  "tanstack-start",
369
371
  "ts-rest",
372
+ "seed",
373
+ "fast-check",
370
374
  "service",
371
375
  "zod",
372
376
  "valibot",
@@ -411,6 +415,8 @@ var GeneratorSchema = import_zod.z.object({
411
415
  contractName: import_zod.z.string().optional(),
412
416
  /** The identifier the assembled Elysia app is exported as. `elysia` only, defaults to `'app'`. */
413
417
  appName: import_zod.z.string().optional(),
418
+ /** How many rows each generated seed function returns by default. `seed` only, defaults to 10. */
419
+ count: import_zod.z.number().int().positive().optional(),
414
420
  /**
415
421
  * Prefixed to every table's mount point. `elysia` only.
416
422
  *
@@ -883,6 +889,12 @@ function tsRestOutDir(g, cfg) {
883
889
  function elysiaOutDir(g, cfg) {
884
890
  return g.path ?? cfg.outDir;
885
891
  }
892
+ function seedOutDir(g, cfg) {
893
+ return g.path ?? cfg.outDir;
894
+ }
895
+ function fastCheckOutDir(g, cfg) {
896
+ return g.path ?? cfg.outDir;
897
+ }
886
898
  function sharedSchemaNames(opts) {
887
899
  const resolved = (0, import_validation_core.resolveAffix)(opts);
888
900
  return import_validation_core.NAME_MODES.map((mode) => (0, import_validation_core.schemaName)(mode, import_validation_core.AFFIX_PROBE_TABLE, resolved));
@@ -1199,6 +1211,8 @@ function computeGeneratorOutputDirs(cfg, cwd = process.cwd()) {
1199
1211
  if (g.kind === "effect-http") dirs.add(abs(effectHttpOutDir(g, cfg)));
1200
1212
  if (g.kind === "ts-rest") dirs.add(abs(tsRestOutDir(g, cfg)));
1201
1213
  if (g.kind === "elysia") dirs.add(abs(elysiaOutDir(g, cfg)));
1214
+ if (g.kind === "seed") dirs.add(abs(seedOutDir(g, cfg)));
1215
+ if (g.kind === "fast-check") dirs.add(abs(fastCheckOutDir(g, cfg)));
1202
1216
  if (g.kind === "service") dirs.add(abs(g.path ?? "src/services"));
1203
1217
  if (g.kind === "zod") dirs.add(abs(g.path ?? "src/validators/zod"));
1204
1218
  if (g.kind === "valibot") dirs.add(abs(g.path ?? "src/validators/valibot"));
@@ -1280,6 +1294,7 @@ function computeWatchTargets(cfg, cwd = process.cwd(), source) {
1280
1294
  effectHttpOutDir,
1281
1295
  elysiaOutDir,
1282
1296
  expressOutDir,
1297
+ fastCheckOutDir,
1283
1298
  fastifyOutDir,
1284
1299
  filterTables,
1285
1300
  graphqlOutDir,
@@ -1292,6 +1307,7 @@ function computeWatchTargets(cfg, cwd = process.cwd(), source) {
1292
1307
  nextOutDir,
1293
1308
  resolveConfig,
1294
1309
  resolveTemplateDirsSync,
1310
+ seedOutDir,
1295
1311
  tableFilterWarnings,
1296
1312
  tanstackStartOutDir,
1297
1313
  trpcOutDir,