@drzl/cli 4.37.0 → 4.39.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-EQ4OSVMJ.js → chunk-VG6SD2GP.js} +7 -1
- package/dist/chunk-VG6SD2GP.js.map +1 -0
- package/dist/cli.cjs +278 -43
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +268 -37
- package/dist/cli.js.map +1 -1
- package/dist/config.cjs +7 -0
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +16 -1
- package/dist/config.d.ts +16 -1
- package/dist/config.js +3 -1
- package/dist/drzl.config.schema.json +1 -0
- package/package.json +4 -3
- package/dist/chunk-EQ4OSVMJ.js.map +0 -1
package/dist/config.cjs
CHANGED
|
@@ -64,6 +64,7 @@ __export(config_exports, {
|
|
|
64
64
|
nestjsOutDir: () => nestjsOutDir,
|
|
65
65
|
nextOutDir: () => nextOutDir,
|
|
66
66
|
openApiFetchOutDir: () => openApiFetchOutDir,
|
|
67
|
+
pothosOutDir: () => pothosOutDir,
|
|
67
68
|
resolveConfig: () => resolveConfig,
|
|
68
69
|
resolveTemplateDirsSync: () => resolveTemplateDirsSync,
|
|
69
70
|
seedOutDir: () => seedOutDir,
|
|
@@ -375,6 +376,7 @@ var GeneratorKindSchema = import_zod.z.enum([
|
|
|
375
376
|
"forms",
|
|
376
377
|
"seed",
|
|
377
378
|
"fast-check",
|
|
379
|
+
"pothos",
|
|
378
380
|
"service",
|
|
379
381
|
"zod",
|
|
380
382
|
"valibot",
|
|
@@ -957,6 +959,9 @@ function seedOutDir(g, cfg) {
|
|
|
957
959
|
function fastCheckOutDir(g, cfg) {
|
|
958
960
|
return g.path ?? cfg.outDir;
|
|
959
961
|
}
|
|
962
|
+
function pothosOutDir(g, cfg) {
|
|
963
|
+
return g.path ?? cfg.outDir;
|
|
964
|
+
}
|
|
960
965
|
function sharedSchemaNames(opts) {
|
|
961
966
|
const resolved = (0, import_validation_core.resolveAffix)(opts);
|
|
962
967
|
return import_validation_core.NAME_MODES.map((mode) => (0, import_validation_core.schemaName)(mode, import_validation_core.AFFIX_PROBE_TABLE, resolved));
|
|
@@ -1277,6 +1282,7 @@ function computeGeneratorOutputDirs(cfg, cwd = process.cwd()) {
|
|
|
1277
1282
|
if (g.kind === "forms") dirs.add(abs(formsOutDir(g, cfg)));
|
|
1278
1283
|
if (g.kind === "seed") dirs.add(abs(seedOutDir(g, cfg)));
|
|
1279
1284
|
if (g.kind === "fast-check") dirs.add(abs(fastCheckOutDir(g, cfg)));
|
|
1285
|
+
if (g.kind === "pothos") dirs.add(abs(pothosOutDir(g, cfg)));
|
|
1280
1286
|
if (g.kind === "service") dirs.add(abs(g.path ?? "src/services"));
|
|
1281
1287
|
if (g.kind === "zod") dirs.add(abs(g.path ?? "src/validators/zod"));
|
|
1282
1288
|
if (g.kind === "valibot") dirs.add(abs(g.path ?? "src/validators/valibot"));
|
|
@@ -1371,6 +1377,7 @@ function computeWatchTargets(cfg, cwd = process.cwd(), source) {
|
|
|
1371
1377
|
nestjsOutDir,
|
|
1372
1378
|
nextOutDir,
|
|
1373
1379
|
openApiFetchOutDir,
|
|
1380
|
+
pothosOutDir,
|
|
1374
1381
|
resolveConfig,
|
|
1375
1382
|
resolveTemplateDirsSync,
|
|
1376
1383
|
seedOutDir,
|