@pattern-stack/codegen 0.12.0 → 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/CHANGELOG.md +66 -3
- package/dist/src/cli/index.js +101 -59
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.d.ts +25 -15
- package/dist/src/index.js +43 -35
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/entity/new/clean-lite-ps/prompt-extension.js +2 -2
package/package.json
CHANGED
|
@@ -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.
|
|
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 =
|
|
1018
|
+
const entityContext = entity.context || null;
|
|
1019
1019
|
const moduleGroupDir = entityContext
|
|
1020
1020
|
? `${srcRoot}/modules/${entityContext}`
|
|
1021
1021
|
: `${srcRoot}/modules`;
|