@pattern-stack/codegen 0.12.1 → 0.12.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattern-stack/codegen",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "Entity-driven code generation for full-stack TypeScript applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1008,14 +1008,14 @@ export function buildCleanLitePsLocals(definition, baseLocals) {
1008
1008
  const entityNamePlural = entity.plural || pluralize(entityName);
1009
1009
  const entityNamePluralPascal = pascalCase(entityNamePlural);
1010
1010
 
1011
- // #403: bounded-context folder grouping. A top-level `context:` nests this
1011
+ // #403: bounded-context folder grouping. `entity.context:` nests this
1012
1012
  // entity's module folder under that segment so same-context entities group
1013
1013
  // together (`<modules>/<context>/<plural>/`); no context → flat
1014
1014
  // (`<modules>/<plural>/`, byte-identical to pre-#403). Emit-folder-only —
1015
1015
  // every intra-module import is folder-relative and therefore unaffected, and
1016
1016
  // the generated barrel recomputes its import paths from the full file paths
1017
1017
  // below. The module-folder base used by every clpOutputPaths entry:
1018
- const entityContext = definition.context || null;
1018
+ const entityContext = entity.context || null;
1019
1019
  const moduleGroupDir = entityContext
1020
1020
  ? `${srcRoot}/modules/${entityContext}`
1021
1021
  : `${srcRoot}/modules`;