@pattern-stack/codegen 0.6.3 → 0.6.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.6.4] — 2026-04-27
8
+
9
+ Two consumer-DX fixes surfaced by a fresh `cdp project init` run.
10
+
11
+ ### Fixed
12
+
13
+ - **`fix(init)` #277** — typed the empty `GENERATED_MODULES` barrel emitted by `cdp project init`. The scaffold previously emitted `export const GENERATED_MODULES: unknown[] = []`, which fails `tsc --noEmit` against the scaffolded `app.module.ts` (`...GENERATED_MODULES` spread doesn't satisfy NestJS's `imports:` type) on day one of any new consumer project. Now typed as `Array<Type | DynamicModule | Promise<DynamicModule> | ForwardReference>`. Entity-populated barrels remain unaffected — class refs already satisfy `Type`.
14
+
15
+ ### Changed
16
+
17
+ - **`fix(bin)` #277** — added `codegen` as the primary bin name in `package.json`. The previous bin name `cdp` collides with an unrelated published npm package, so `bunx cdp ...` (without a local install) silently fetches and runs the wrong package. The CLI banner, README, and downstream docs all already refer to the binary as `codegen`. `cdp` is preserved as an alias for backwards compatibility.
18
+
7
19
  ## [0.6.3] — 2026-04-26
8
20
 
9
21
  ### Fixed
@@ -9523,7 +9523,10 @@ function emptyModulesBarrel() {
9523
9523
  return `// AUTO-GENERATED \u2014 DO NOT EDIT.
9524
9524
  // Regenerated on every \`codegen entity new\` / \`codegen entity new --all\`.
9525
9525
  // See ADR-017.
9526
- export const GENERATED_MODULES: unknown[] = [];
9526
+ import type { DynamicModule, ForwardReference, Type } from '@nestjs/common';
9527
+ export const GENERATED_MODULES: Array<
9528
+ Type | DynamicModule | Promise<DynamicModule> | ForwardReference
9529
+ > = [];
9527
9530
  `;
9528
9531
  }
9529
9532
  function emptySchemaBarrel() {