@drzl/cli 4.23.0 → 4.24.1

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
@@ -429,14 +429,20 @@ var GENERATORS = [
429
429
  },
430
430
  {
431
431
  kind: "trpc",
432
- // An optional dependency, like seven others below. A package that has never been published
433
- // cannot publish through npm's trusted-publisher OIDC flow, so its first version has to go out
434
- // by hand, and naming it as a hard dependency of the CLI in the same release breaks
435
- // `npm i @drzl/cli` for everyone until it exists. A missing optional dependency is skipped by
436
- // the installer rather than failing it, which is why these really can be absent on an ordinary
437
- // install, and why `loadGenerator` tells absence apart from failure.
432
+ // This one and seven others were `optionalDependencies` until every one of them had been
433
+ // published: a package that has never existed cannot publish through npm's trusted-publisher
434
+ // OIDC flow, so its first version goes out by hand, and naming it as a hard dependency in the
435
+ // same release breaks `npm i @drzl/cli` for everyone until it does exist. An optional
436
+ // dependency is skipped by the installer instead, which made that release safe.
437
+ //
438
+ // The side effect was invisible and lasted longer than the reason: tsup externalises
439
+ // `dependencies` and `peerDependencies` and bundles everything else, so those eight travelled
440
+ // inside `dist` while the other six were resolved from `node_modules`. All fourteen are on the
441
+ // registry now and all fourteen are `dependencies`, which is what makes every one of them a
442
+ // package that can genuinely be absent, and `loadGenerator` tell absence apart from failure
443
+ // for every kind rather than for six of them.
438
444
  specifier: "@drzl/generator-trpc",
439
- load: () => import("./dist-ZIHNXQ7U.js"),
445
+ load: () => import("@drzl/generator-trpc"),
440
446
  construct: (m, analysis) => new m.TRPCGenerator(analysis),
441
447
  outputDir: (g, cfg) => trpcOutDir(g, cfg),
442
448
  options: (g, cfg, ctx) => trpcOptions(g, cfg, ctx.servicesDir)
@@ -444,7 +450,7 @@ var GENERATORS = [
444
450
  {
445
451
  kind: "hono",
446
452
  specifier: "@drzl/generator-hono",
447
- load: () => import("./dist-P24ILO5N.js"),
453
+ load: () => import("@drzl/generator-hono"),
448
454
  construct: (m, analysis) => new m.HonoGenerator(analysis),
449
455
  outputDir: (g, cfg) => honoOutDir(g, cfg),
450
456
  options: (g, cfg) => honoOptions(g, cfg)
@@ -452,7 +458,7 @@ var GENERATORS = [
452
458
  {
453
459
  kind: "express",
454
460
  specifier: "@drzl/generator-express",
455
- load: () => import("./dist-T5376MW7.js"),
461
+ load: () => import("@drzl/generator-express"),
456
462
  construct: (m, analysis) => new m.ExpressGenerator(analysis),
457
463
  outputDir: (g, cfg) => expressOutDir(g, cfg),
458
464
  options: (g, cfg) => expressOptions(g, cfg)
@@ -460,7 +466,7 @@ var GENERATORS = [
460
466
  {
461
467
  kind: "fastify",
462
468
  specifier: "@drzl/generator-fastify",
463
- load: () => import("./dist-KQMPKOFK.js"),
469
+ load: () => import("@drzl/generator-fastify"),
464
470
  construct: (m, analysis) => new m.FastifyGenerator(analysis),
465
471
  outputDir: (g, cfg) => fastifyOutDir(g, cfg),
466
472
  options: (g, cfg) => fastifyOptions(g, cfg)
@@ -468,7 +474,7 @@ var GENERATORS = [
468
474
  {
469
475
  kind: "nestjs",
470
476
  specifier: "@drzl/generator-nestjs",
471
- load: () => import("./dist-SGI2I53L.js"),
477
+ load: () => import("@drzl/generator-nestjs"),
472
478
  construct: (m, analysis) => new m.NestJSGenerator(analysis),
473
479
  outputDir: (g, cfg) => nestjsOutDir(g, cfg),
474
480
  options: (g, cfg) => nestjsOptions(g, cfg)
@@ -476,7 +482,7 @@ var GENERATORS = [
476
482
  {
477
483
  kind: "graphql",
478
484
  specifier: "@drzl/generator-graphql",
479
- load: () => import("./dist-UVP6B4XJ.js"),
485
+ load: () => import("@drzl/generator-graphql"),
480
486
  construct: (m, analysis) => new m.GraphQLGenerator(analysis),
481
487
  outputDir: (g, cfg) => graphqlOutDir(g, cfg),
482
488
  options: (g, cfg) => graphqlOptions(g, cfg)
@@ -530,7 +536,7 @@ var GENERATORS = [
530
536
  {
531
537
  kind: "effect",
532
538
  specifier: "@drzl/generator-effect",
533
- load: () => import("./dist-KX62ETKK.js"),
539
+ load: () => import("@drzl/generator-effect"),
534
540
  construct: (m, analysis) => new m.EffectGenerator(analysis),
535
541
  outputDir: (g) => g.path ?? VALIDATOR_DEFAULT_DIRS.effect,
536
542
  options: (g, cfg, ctx) => validationOptions(g, cfg, ctx.outDir, { schemaTypes: true })
@@ -538,7 +544,7 @@ var GENERATORS = [
538
544
  {
539
545
  kind: "json-schema",
540
546
  specifier: "@drzl/generator-json-schema",
541
- load: () => import("./dist-QYH7DRFY.js"),
547
+ load: () => import("@drzl/generator-json-schema"),
542
548
  construct: (m, analysis) => new m.JsonSchemaGenerator(analysis),
543
549
  outputDir: (g) => g.path ?? VALIDATOR_DEFAULT_DIRS["json-schema"],
544
550
  options: (g, cfg, ctx) => jsonSchemaOptions(g, cfg, ctx.outDir)
@@ -2444,7 +2450,7 @@ function normalizeGenerators(kinds) {
2444
2450
  for (const k of kinds) {
2445
2451
  if (!known.has(k)) {
2446
2452
  throw new Error(
2447
- `drzl init: "${k}" is not a generator init can scaffold. Choose from ${[...known].join(", ")}. Every other kind is documented in drzl.config; the route generators are optional dependencies and may not be installed.`
2453
+ `drzl init: "${k}" is not a generator init can scaffold. Choose from ${[...known].join(", ")}. Every other kind is installed and works; add it to drzl.config by hand, following the entry for it in the docs.`
2448
2454
  );
2449
2455
  }
2450
2456
  }