@drzl/cli 4.32.0 → 4.34.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
@@ -13,6 +13,7 @@ import {
13
13
  effectHttpOutDir,
14
14
  elysiaOutDir,
15
15
  expressOutDir,
16
+ fastCheckOutDir,
16
17
  fastifyOutDir,
17
18
  filterTables,
18
19
  graphqlOutDir,
@@ -27,12 +28,13 @@ import {
27
28
  nearestKey,
28
29
  nestjsOutDir,
29
30
  nextOutDir,
31
+ seedOutDir,
30
32
  tableAliases,
31
33
  tableFilterWarnings,
32
34
  tanstackStartOutDir,
33
35
  trpcOutDir,
34
36
  tsRestOutDir
35
- } from "./chunk-BDIJ6WMG.js";
37
+ } from "./chunk-S5JWTWWU.js";
36
38
 
37
39
  // src/cli.ts
38
40
  import { qualifiedTableName as qualifiedTableName2, SchemaAnalyzer as SchemaAnalyzer2 } from "@drzl/analyzer";
@@ -443,6 +445,29 @@ function elysiaOptions(g, cfg) {
443
445
  };
444
446
  }
445
447
 
448
+ // src/seed-options.ts
449
+ function seedOptions(g, cfg) {
450
+ return {
451
+ outputDir: seedOutDir(g, cfg),
452
+ defaultCount: g.count,
453
+ naming: g.naming,
454
+ outputHeader: g.outputHeader,
455
+ format: g.format,
456
+ importExtension: g.importExtension
457
+ };
458
+ }
459
+
460
+ // src/fast-check-options.ts
461
+ function fastCheckOptions(g, cfg) {
462
+ return {
463
+ outputDir: fastCheckOutDir(g, cfg),
464
+ naming: g.naming,
465
+ outputHeader: g.outputHeader,
466
+ format: g.format,
467
+ importExtension: g.importExtension
468
+ };
469
+ }
470
+
446
471
  // src/h3-options.ts
447
472
  var VALIDATOR_DEFAULT_DIRS4 = {
448
473
  zod: "src/validators/zod",
@@ -768,6 +793,22 @@ var GENERATORS = [
768
793
  outputDir: (g, cfg) => elysiaOutDir(g, cfg),
769
794
  options: (g, cfg) => elysiaOptions(g, cfg)
770
795
  },
796
+ {
797
+ kind: "seed",
798
+ specifier: "@drzl/generator-seed",
799
+ load: () => import("@drzl/generator-seed"),
800
+ construct: (m, analysis) => new m.SeedGenerator(analysis),
801
+ outputDir: (g, cfg) => seedOutDir(g, cfg),
802
+ options: (g, cfg) => seedOptions(g, cfg)
803
+ },
804
+ {
805
+ kind: "fast-check",
806
+ specifier: "@drzl/generator-fast-check",
807
+ load: () => import("@drzl/generator-fast-check"),
808
+ construct: (m, analysis) => new m.FastCheckGenerator(analysis),
809
+ outputDir: (g, cfg) => fastCheckOutDir(g, cfg),
810
+ options: (g, cfg) => fastCheckOptions(g, cfg)
811
+ },
771
812
  {
772
813
  kind: "service",
773
814
  specifier: "@drzl/generator-service",