ddd-ts-kit 0.109.0 → 0.110.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.
Files changed (479) hide show
  1. package/CHANGELOG.md +142 -0
  2. package/README.fr.md +31 -13
  3. package/README.md +26 -13
  4. package/dist/affected/reach-of.d.ts.map +1 -1
  5. package/dist/affected/reach-of.js +4 -1
  6. package/dist/affected/reach-of.js.map +1 -1
  7. package/dist/check/canonical/holds-shared-files.d.ts +3 -0
  8. package/dist/check/canonical/holds-shared-files.d.ts.map +1 -0
  9. package/dist/check/canonical/holds-shared-files.js +7 -0
  10. package/dist/check/canonical/holds-shared-files.js.map +1 -0
  11. package/dist/check/canonical/is-shared-directory.d.ts +7 -0
  12. package/dist/check/canonical/is-shared-directory.d.ts.map +1 -0
  13. package/dist/check/canonical/is-shared-directory.js +13 -0
  14. package/dist/check/canonical/is-shared-directory.js.map +1 -0
  15. package/dist/check/canonical/role.d.ts +2 -0
  16. package/dist/check/canonical/role.d.ts.map +1 -1
  17. package/dist/check/canonical/roles.d.ts.map +1 -1
  18. package/dist/check/canonical/roles.js +10 -5
  19. package/dist/check/canonical/roles.js.map +1 -1
  20. package/dist/check/canonical/shared-directories.d.ts +3 -0
  21. package/dist/check/canonical/shared-directories.d.ts.map +1 -0
  22. package/dist/check/canonical/shared-directories.js +8 -0
  23. package/dist/check/canonical/shared-directories.js.map +1 -0
  24. package/dist/check/canonical/stray-entry.d.ts.map +1 -1
  25. package/dist/check/canonical/stray-entry.js +43 -4
  26. package/dist/check/canonical/stray-entry.js.map +1 -1
  27. package/dist/check/configuration/module-problems.js +20 -16
  28. package/dist/check/configuration/module-problems.js.map +1 -1
  29. package/dist/check/errors/code-reference.d.ts +7 -0
  30. package/dist/check/errors/code-reference.d.ts.map +1 -0
  31. package/dist/check/errors/code-reference.js +2 -0
  32. package/dist/check/errors/code-reference.js.map +1 -0
  33. package/dist/check/errors/code-references.d.ts +7 -0
  34. package/dist/check/errors/code-references.d.ts.map +1 -0
  35. package/dist/check/errors/code-references.js +13 -0
  36. package/dist/check/errors/code-references.js.map +1 -0
  37. package/dist/check/errors/kit-code-keys.d.ts +3 -0
  38. package/dist/check/errors/kit-code-keys.d.ts.map +1 -0
  39. package/dist/check/errors/kit-code-keys.js +5 -0
  40. package/dist/check/errors/kit-code-keys.js.map +1 -0
  41. package/dist/check/errors/kit-codes-list.d.ts +3 -0
  42. package/dist/check/errors/kit-codes-list.d.ts.map +1 -0
  43. package/dist/check/errors/kit-codes-list.js +3 -0
  44. package/dist/check/errors/kit-codes-list.js.map +1 -0
  45. package/dist/check/explain/errors-docs.d.ts.map +1 -1
  46. package/dist/check/explain/errors-docs.js +5 -2
  47. package/dist/check/explain/errors-docs.js.map +1 -1
  48. package/dist/check/explain/module-docs.d.ts.map +1 -1
  49. package/dist/check/explain/module-docs.js +9 -6
  50. package/dist/check/explain/module-docs.js.map +1 -1
  51. package/dist/check/explain/tree-docs.d.ts.map +1 -1
  52. package/dist/check/explain/tree-docs.js +3 -1
  53. package/dist/check/explain/tree-docs.js.map +1 -1
  54. package/dist/check/fixtures/errors-route.d.ts +1 -1
  55. package/dist/check/fixtures/errors-route.d.ts.map +1 -1
  56. package/dist/check/fixtures/errors-route.js +2 -2
  57. package/dist/check/fixtures/errors-route.js.map +1 -1
  58. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  59. package/dist/check/fixtures/fixtures.js +2 -0
  60. package/dist/check/fixtures/fixtures.js.map +1 -1
  61. package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
  62. package/dist/check/fixtures/module-fixtures.js +27 -31
  63. package/dist/check/fixtures/module-fixtures.js.map +1 -1
  64. package/dist/check/fixtures/named-refusal-fixtures.d.ts.map +1 -1
  65. package/dist/check/fixtures/named-refusal-fixtures.js +40 -0
  66. package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
  67. package/dist/check/fixtures/shared-folder-fixtures.d.ts +7 -0
  68. package/dist/check/fixtures/shared-folder-fixtures.d.ts.map +1 -0
  69. package/dist/check/fixtures/shared-folder-fixtures.js +176 -0
  70. package/dist/check/fixtures/shared-folder-fixtures.js.map +1 -0
  71. package/dist/check/fixtures/shared-kernel-fixtures.d.ts.map +1 -1
  72. package/dist/check/fixtures/shared-kernel-fixtures.js +11 -0
  73. package/dist/check/fixtures/shared-kernel-fixtures.js.map +1 -1
  74. package/dist/check/fixtures/with-modules.d.ts +4 -0
  75. package/dist/check/fixtures/with-modules.d.ts.map +1 -0
  76. package/dist/check/fixtures/with-modules.js +22 -0
  77. package/dist/check/fixtures/with-modules.js.map +1 -0
  78. package/dist/check/model/context-location.d.ts +5 -0
  79. package/dist/check/model/context-location.d.ts.map +1 -1
  80. package/dist/check/project/locate.js +12 -5
  81. package/dist/check/project/locate.js.map +1 -1
  82. package/dist/check/rules/errors-known-code.d.ts.map +1 -1
  83. package/dist/check/rules/errors-known-code.js +60 -9
  84. package/dist/check/rules/errors-known-code.js.map +1 -1
  85. package/dist/check/rules/module-complete.d.ts.map +1 -1
  86. package/dist/check/rules/module-complete.js +19 -20
  87. package/dist/check/rules/module-complete.js.map +1 -1
  88. package/dist/check/rules/module-declared.js +5 -1
  89. package/dist/check/rules/module-declared.js.map +1 -1
  90. package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
  91. package/dist/check/rules/test-acceptance-black-box.js +6 -7
  92. package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
  93. package/dist/check/rules/test-builder-required.d.ts.map +1 -1
  94. package/dist/check/rules/test-builder-required.js +15 -12
  95. package/dist/check/rules/test-builder-required.js.map +1 -1
  96. package/dist/check/rules/test-spec-required.d.ts.map +1 -1
  97. package/dist/check/rules/test-spec-required.js +12 -11
  98. package/dist/check/rules/test-spec-required.js.map +1 -1
  99. package/dist/check/rules/tree-closed.js +1 -1
  100. package/dist/check/rules/tree-closed.js.map +1 -1
  101. package/dist/check/support/path-in-context.d.ts +1 -1
  102. package/dist/check/support/path-in-context.d.ts.map +1 -1
  103. package/dist/check/support/path-in-context.js +6 -3
  104. package/dist/check/support/path-in-context.js.map +1 -1
  105. package/dist/check/support/test-folder-of.d.ts +11 -0
  106. package/dist/check/support/test-folder-of.d.ts.map +1 -0
  107. package/dist/check/support/test-folder-of.js +12 -0
  108. package/dist/check/support/test-folder-of.js.map +1 -0
  109. package/dist/commands/drizzle-generate.d.ts.map +1 -1
  110. package/dist/commands/drizzle-generate.js +9 -0
  111. package/dist/commands/drizzle-generate.js.map +1 -1
  112. package/dist/commands/generate.js +9 -1
  113. package/dist/commands/generate.js.map +1 -1
  114. package/dist/commands/lint.d.ts +2 -1
  115. package/dist/commands/lint.d.ts.map +1 -1
  116. package/dist/commands/lint.js +4 -1
  117. package/dist/commands/lint.js.map +1 -1
  118. package/dist/commands/move-to-module.d.ts.map +1 -1
  119. package/dist/commands/move-to-module.js +0 -2
  120. package/dist/commands/move-to-module.js.map +1 -1
  121. package/dist/context-layout/context-layout.d.ts +3 -2
  122. package/dist/context-layout/context-layout.d.ts.map +1 -1
  123. package/dist/context-layout/context-layout.js +18 -8
  124. package/dist/context-layout/context-layout.js.map +1 -1
  125. package/dist/context-layout/imports-of.d.ts +11 -0
  126. package/dist/context-layout/imports-of.d.ts.map +1 -0
  127. package/dist/context-layout/imports-of.js +20 -0
  128. package/dist/context-layout/imports-of.js.map +1 -0
  129. package/dist/context-layout/module-moves.d.ts +10 -7
  130. package/dist/context-layout/module-moves.d.ts.map +1 -1
  131. package/dist/context-layout/module-moves.js +65 -122
  132. package/dist/context-layout/module-moves.js.map +1 -1
  133. package/dist/context-layout/runner-configs-by-hand.d.ts +11 -0
  134. package/dist/context-layout/runner-configs-by-hand.d.ts.map +1 -0
  135. package/dist/context-layout/runner-configs-by-hand.js +23 -0
  136. package/dist/context-layout/runner-configs-by-hand.js.map +1 -0
  137. package/dist/context-layout/settle.d.ts +20 -0
  138. package/dist/context-layout/settle.d.ts.map +1 -0
  139. package/dist/context-layout/settle.js +58 -0
  140. package/dist/context-layout/settle.js.map +1 -0
  141. package/dist/controllers/declared-code.d.ts +3 -0
  142. package/dist/controllers/declared-code.d.ts.map +1 -0
  143. package/dist/controllers/declared-code.js +8 -0
  144. package/dist/controllers/declared-code.js.map +1 -0
  145. package/dist/controllers/finish-migration.d.ts.map +1 -1
  146. package/dist/controllers/finish-migration.js +5 -3
  147. package/dist/controllers/finish-migration.js.map +1 -1
  148. package/dist/controllers/migrate-context.js +3 -2
  149. package/dist/controllers/migrate-context.js.map +1 -1
  150. package/dist/controllers/plan-context.d.ts +1 -1
  151. package/dist/controllers/plan-context.d.ts.map +1 -1
  152. package/dist/controllers/plan-context.js +11 -6
  153. package/dist/controllers/plan-context.js.map +1 -1
  154. package/dist/controllers/render-controller.d.ts.map +1 -1
  155. package/dist/controllers/render-controller.js +20 -4
  156. package/dist/controllers/render-controller.js.map +1 -1
  157. package/dist/depcruise/hygiene-rules.js +2 -2
  158. package/dist/depcruise/hygiene-rules.js.map +1 -1
  159. package/dist/depcruise/test-files.d.ts +4 -1
  160. package/dist/depcruise/test-files.d.ts.map +1 -1
  161. package/dist/depcruise/test-files.js +5 -2
  162. package/dist/depcruise/test-files.js.map +1 -1
  163. package/dist/describe/codes-named-in.d.ts +8 -0
  164. package/dist/describe/codes-named-in.d.ts.map +1 -0
  165. package/dist/describe/codes-named-in.js +33 -0
  166. package/dist/describe/codes-named-in.js.map +1 -0
  167. package/dist/describe/read-controllers.js +2 -2
  168. package/dist/describe/read-controllers.js.map +1 -1
  169. package/dist/describe/read-route-groups.d.ts +6 -2
  170. package/dist/describe/read-route-groups.d.ts.map +1 -1
  171. package/dist/describe/read-route-groups.js +8 -4
  172. package/dist/describe/read-route-groups.js.map +1 -1
  173. package/dist/describe/read-routes.d.ts.map +1 -1
  174. package/dist/describe/read-routes.js +7 -2
  175. package/dist/describe/read-routes.js.map +1 -1
  176. package/dist/docs/spec-heading.d.ts +5 -4
  177. package/dist/docs/spec-heading.d.ts.map +1 -1
  178. package/dist/docs/spec-heading.js +4 -6
  179. package/dist/docs/spec-heading.js.map +1 -1
  180. package/dist/docs/spec-of-page.d.ts +7 -2
  181. package/dist/docs/spec-of-page.d.ts.map +1 -1
  182. package/dist/docs/spec-of-page.js +8 -3
  183. package/dist/docs/spec-of-page.js.map +1 -1
  184. package/dist/docs/specs-by-directory.d.ts +2 -2
  185. package/dist/docs/specs-by-directory.d.ts.map +1 -1
  186. package/dist/docs/specs-by-directory.js +4 -5
  187. package/dist/docs/specs-by-directory.js.map +1 -1
  188. package/dist/docs/write-behaviour.d.ts +1 -1
  189. package/dist/docs/write-behaviour.d.ts.map +1 -1
  190. package/dist/docs/write-behaviour.js +17 -2
  191. package/dist/docs/write-behaviour.js.map +1 -1
  192. package/dist/file-moves/follow-in-migrations.d.ts +10 -0
  193. package/dist/file-moves/follow-in-migrations.d.ts.map +1 -0
  194. package/dist/file-moves/follow-in-migrations.js +30 -0
  195. package/dist/file-moves/follow-in-migrations.js.map +1 -0
  196. package/dist/file-moves/move-files.d.ts +2 -1
  197. package/dist/file-moves/move-files.d.ts.map +1 -1
  198. package/dist/file-moves/move-files.js +4 -2
  199. package/dist/file-moves/move-files.js.map +1 -1
  200. package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
  201. package/dist/generate/errors/write-named-refusal.js +6 -2
  202. package/dist/generate/errors/write-named-refusal.js.map +1 -1
  203. package/dist/generate/kinds/builder-kind.js +1 -1
  204. package/dist/generate/kinds/builder-kind.js.map +1 -1
  205. package/dist/generate/kinds/declarations-of.js +1 -1
  206. package/dist/generate/kinds/declarations-of.js.map +1 -1
  207. package/dist/generate/kinds/declare-storage.d.ts +2 -1
  208. package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
  209. package/dist/generate/kinds/declare-storage.js +19 -5
  210. package/dist/generate/kinds/declare-storage.js.map +1 -1
  211. package/dist/generate/kinds/e2e/acting-role.d.ts +15 -0
  212. package/dist/generate/kinds/e2e/acting-role.d.ts.map +1 -0
  213. package/dist/generate/kinds/e2e/acting-role.js +19 -0
  214. package/dist/generate/kinds/e2e/acting-role.js.map +1 -0
  215. package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
  216. package/dist/generate/kinds/e2e-kind.js +5 -1
  217. package/dist/generate/kinds/e2e-kind.js.map +1 -1
  218. package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
  219. package/dist/generate/kinds/gateway-kind.js +14 -2
  220. package/dist/generate/kinds/gateway-kind.js.map +1 -1
  221. package/dist/generate/kinds/generate-repository.js +1 -1
  222. package/dist/generate/kinds/generate-repository.js.map +1 -1
  223. package/dist/generate/kinds/module-kind.d.ts.map +1 -1
  224. package/dist/generate/kinds/module-kind.js +9 -1
  225. package/dist/generate/kinds/module-kind.js.map +1 -1
  226. package/dist/generate/kinds/route/group-vars.d.ts.map +1 -1
  227. package/dist/generate/kinds/route/group-vars.js +5 -3
  228. package/dist/generate/kinds/route/group-vars.js.map +1 -1
  229. package/dist/generate/kinds/route/route-vars.js +1 -1
  230. package/dist/generate/kinds/route/route-vars.js.map +1 -1
  231. package/dist/generate/kinds/world/context-fakes.d.ts +1 -1
  232. package/dist/generate/kinds/world/context-fakes.d.ts.map +1 -1
  233. package/dist/generate/kinds/world/context-fakes.js +8 -7
  234. package/dist/generate/kinds/world/context-fakes.js.map +1 -1
  235. package/dist/generate/kinds/world/context-world.d.ts +1 -1
  236. package/dist/generate/kinds/world/context-world.d.ts.map +1 -1
  237. package/dist/generate/kinds/world/context-world.js +3 -1
  238. package/dist/generate/kinds/world/context-world.js.map +1 -1
  239. package/dist/generate/place-generated-files.d.ts +2 -0
  240. package/dist/generate/place-generated-files.d.ts.map +1 -1
  241. package/dist/generate/place-generated-files.js +13 -13
  242. package/dist/generate/place-generated-files.js.map +1 -1
  243. package/dist/generate/refresh-docs.d.ts +1 -1
  244. package/dist/generate/refresh-docs.d.ts.map +1 -1
  245. package/dist/generate/refresh-docs.js +3 -1
  246. package/dist/generate/refresh-docs.js.map +1 -1
  247. package/dist/generate/refuse-earlier-layout.d.ts +4 -3
  248. package/dist/generate/refuse-earlier-layout.d.ts.map +1 -1
  249. package/dist/generate/refuse-earlier-layout.js +9 -6
  250. package/dist/generate/refuse-earlier-layout.js.map +1 -1
  251. package/dist/help/flag-notes.d.ts.map +1 -1
  252. package/dist/help/flag-notes.js +8 -7
  253. package/dist/help/flag-notes.js.map +1 -1
  254. package/dist/help/tool-notes.d.ts.map +1 -1
  255. package/dist/help/tool-notes.js +23 -17
  256. package/dist/help/tool-notes.js.map +1 -1
  257. package/dist/help/usage.js +1 -1
  258. package/dist/help/work-notes.d.ts.map +1 -1
  259. package/dist/help/work-notes.js +4 -3
  260. package/dist/help/work-notes.js.map +1 -1
  261. package/dist/init/manifest/versions.js +25 -25
  262. package/dist/init/rewire-personal-data.d.ts.map +1 -1
  263. package/dist/init/rewire-personal-data.js +4 -2
  264. package/dist/init/rewire-personal-data.js.map +1 -1
  265. package/dist/init/rewire-tables.d.ts.map +1 -1
  266. package/dist/init/rewire-tables.js +4 -2
  267. package/dist/init/rewire-tables.js.map +1 -1
  268. package/dist/init/with-held-imports.d.ts +9 -0
  269. package/dist/init/with-held-imports.d.ts.map +1 -0
  270. package/dist/init/with-held-imports.js +15 -0
  271. package/dist/init/with-held-imports.js.map +1 -0
  272. package/dist/knip/enter-module-test-folders.d.ts +10 -0
  273. package/dist/knip/enter-module-test-folders.d.ts.map +1 -0
  274. package/dist/knip/enter-module-test-folders.js +42 -0
  275. package/dist/knip/enter-module-test-folders.js.map +1 -0
  276. package/dist/knip/index.d.ts +1 -0
  277. package/dist/knip/index.d.ts.map +1 -1
  278. package/dist/knip/index.js +1 -0
  279. package/dist/knip/index.js.map +1 -1
  280. package/dist/lint/eslint-in-project.d.ts +1 -1
  281. package/dist/lint/eslint-in-project.d.ts.map +1 -1
  282. package/dist/lint/eslint-in-project.js +3 -2
  283. package/dist/lint/eslint-in-project.js.map +1 -1
  284. package/dist/lint/lint-run.d.ts +2 -0
  285. package/dist/lint/lint-run.d.ts.map +1 -1
  286. package/dist/merge/landed-commit.js +14 -2
  287. package/dist/merge/landed-commit.js.map +1 -1
  288. package/dist/merge/landed-point.js +3 -0
  289. package/dist/merge/landed-point.js.map +1 -1
  290. package/dist/merge/lost/dropped-additions.d.ts +20 -0
  291. package/dist/merge/lost/dropped-additions.d.ts.map +1 -0
  292. package/dist/merge/lost/dropped-additions.js +42 -0
  293. package/dist/merge/lost/dropped-additions.js.map +1 -0
  294. package/dist/merge/lost/expected-over.d.ts +13 -0
  295. package/dist/merge/lost/expected-over.d.ts.map +1 -0
  296. package/dist/merge/lost/expected-over.js +16 -0
  297. package/dist/merge/lost/expected-over.js.map +1 -0
  298. package/dist/merge/lost/kept-rows.d.ts +4 -2
  299. package/dist/merge/lost/kept-rows.d.ts.map +1 -1
  300. package/dist/merge/lost/kept-rows.js +10 -7
  301. package/dist/merge/lost/kept-rows.js.map +1 -1
  302. package/dist/merge/lost/lost-lines.d.ts +2 -2
  303. package/dist/merge/lost/lost-lines.d.ts.map +1 -1
  304. package/dist/merge/lost/lost-lines.js +5 -3
  305. package/dist/merge/lost/lost-lines.js.map +1 -1
  306. package/dist/merge/lost/lost-tests.d.ts +2 -2
  307. package/dist/merge/lost/lost-tests.d.ts.map +1 -1
  308. package/dist/merge/lost/lost-tests.js +5 -3
  309. package/dist/merge/lost/lost-tests.js.map +1 -1
  310. package/dist/merge/lost/verify-merge.d.ts.map +1 -1
  311. package/dist/merge/lost/verify-merge.js +12 -5
  312. package/dist/merge/lost/verify-merge.js.map +1 -1
  313. package/dist/merge/merge-trunk.d.ts.map +1 -1
  314. package/dist/merge/merge-trunk.js +35 -7
  315. package/dist/merge/merge-trunk.js.map +1 -1
  316. package/dist/merge/slices-from-fork.d.ts +20 -0
  317. package/dist/merge/slices-from-fork.d.ts.map +1 -0
  318. package/dist/merge/slices-from-fork.js +27 -0
  319. package/dist/merge/slices-from-fork.js.map +1 -0
  320. package/dist/merge/trunk-of.d.ts +4 -2
  321. package/dist/merge/trunk-of.d.ts.map +1 -1
  322. package/dist/merge/trunk-of.js +4 -2
  323. package/dist/merge/trunk-of.js.map +1 -1
  324. package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -1
  325. package/dist/migration/warn-dropped-context-tables.js +6 -4
  326. package/dist/migration/warn-dropped-context-tables.js.map +1 -1
  327. package/dist/model-modules/context-level-folder-of.d.ts +9 -0
  328. package/dist/model-modules/context-level-folder-of.d.ts.map +1 -0
  329. package/dist/model-modules/context-level-folder-of.js +11 -0
  330. package/dist/model-modules/context-level-folder-of.js.map +1 -0
  331. package/dist/model-modules/earlier-folders.d.ts +10 -0
  332. package/dist/model-modules/earlier-folders.d.ts.map +1 -0
  333. package/dist/model-modules/earlier-folders.js +20 -0
  334. package/dist/model-modules/earlier-folders.js.map +1 -0
  335. package/dist/model-modules/folders-of-context.d.ts +8 -0
  336. package/dist/model-modules/folders-of-context.d.ts.map +1 -0
  337. package/dist/model-modules/folders-of-context.js +11 -0
  338. package/dist/model-modules/folders-of-context.js.map +1 -0
  339. package/dist/model-modules/held-file-of.d.ts +10 -0
  340. package/dist/model-modules/held-file-of.d.ts.map +1 -0
  341. package/dist/model-modules/held-file-of.js +18 -0
  342. package/dist/model-modules/held-file-of.js.map +1 -0
  343. package/dist/model-modules/index.d.ts +8 -1
  344. package/dist/model-modules/index.d.ts.map +1 -1
  345. package/dist/model-modules/index.js +8 -1
  346. package/dist/model-modules/index.js.map +1 -1
  347. package/dist/model-modules/into-module.d.ts +3 -3
  348. package/dist/model-modules/into-module.d.ts.map +1 -1
  349. package/dist/model-modules/into-module.js +9 -12
  350. package/dist/model-modules/into-module.js.map +1 -1
  351. package/dist/model-modules/is-context-level.d.ts +4 -5
  352. package/dist/model-modules/is-context-level.d.ts.map +1 -1
  353. package/dist/model-modules/is-context-level.js +6 -16
  354. package/dist/model-modules/is-context-level.js.map +1 -1
  355. package/dist/model-modules/is-held-by-shared.d.ts +8 -0
  356. package/dist/model-modules/is-held-by-shared.d.ts.map +1 -0
  357. package/dist/model-modules/is-held-by-shared.js +20 -0
  358. package/dist/model-modules/is-held-by-shared.js.map +1 -0
  359. package/dist/model-modules/module-layers.d.ts +9 -2
  360. package/dist/model-modules/module-layers.d.ts.map +1 -1
  361. package/dist/model-modules/module-layers.js +10 -3
  362. package/dist/model-modules/module-layers.js.map +1 -1
  363. package/dist/model-modules/module-name-flaw.d.ts +4 -1
  364. package/dist/model-modules/module-name-flaw.d.ts.map +1 -1
  365. package/dist/model-modules/module-name-flaw.js +6 -2
  366. package/dist/model-modules/module-name-flaw.js.map +1 -1
  367. package/dist/model-modules/module-placement.d.ts +8 -6
  368. package/dist/model-modules/module-placement.d.ts.map +1 -1
  369. package/dist/model-modules/module-placement.js +32 -30
  370. package/dist/model-modules/module-placement.js.map +1 -1
  371. package/dist/model-modules/module-split.d.ts +7 -5
  372. package/dist/model-modules/module-split.d.ts.map +1 -1
  373. package/dist/model-modules/module-split.js +18 -17
  374. package/dist/model-modules/module-split.js.map +1 -1
  375. package/dist/model-modules/module-test-folder-of.d.ts +8 -0
  376. package/dist/model-modules/module-test-folder-of.d.ts.map +1 -0
  377. package/dist/model-modules/module-test-folder-of.js +11 -0
  378. package/dist/model-modules/module-test-folder-of.js.map +1 -0
  379. package/dist/model-modules/role-folders-of.d.ts +5 -3
  380. package/dist/model-modules/role-folders-of.d.ts.map +1 -1
  381. package/dist/model-modules/role-folders-of.js +19 -11
  382. package/dist/model-modules/role-folders-of.js.map +1 -1
  383. package/dist/model-modules/role-folders.d.ts +1 -1
  384. package/dist/model-modules/role-folders.js +1 -1
  385. package/dist/model-modules/subject-module.d.ts +13 -0
  386. package/dist/model-modules/subject-module.d.ts.map +1 -0
  387. package/dist/model-modules/subject-module.js +34 -0
  388. package/dist/model-modules/subject-module.js.map +1 -0
  389. package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
  390. package/dist/move-to-module/moves-into-module.js +29 -16
  391. package/dist/move-to-module/moves-into-module.js.map +1 -1
  392. package/dist/naming/plural.d.ts.map +1 -1
  393. package/dist/naming/plural.js +5 -0
  394. package/dist/naming/plural.js.map +1 -1
  395. package/dist/plan/format-plan.js +1 -1
  396. package/dist/plan/format-plan.js.map +1 -1
  397. package/dist/progress/build-next-of.d.ts.map +1 -1
  398. package/dist/progress/build-next-of.js +8 -3
  399. package/dist/progress/build-next-of.js.map +1 -1
  400. package/dist/refusals/apply-plan.d.ts.map +1 -1
  401. package/dist/refusals/apply-plan.js +8 -4
  402. package/dist/refusals/apply-plan.js.map +1 -1
  403. package/dist/refusals/move-named-specs.d.ts.map +1 -1
  404. package/dist/refusals/move-named-specs.js +7 -4
  405. package/dist/refusals/move-named-specs.js.map +1 -1
  406. package/dist/refusals/unit-folder-of.d.ts +9 -0
  407. package/dist/refusals/unit-folder-of.d.ts.map +1 -0
  408. package/dist/refusals/unit-folder-of.js +15 -0
  409. package/dist/refusals/unit-folder-of.js.map +1 -0
  410. package/dist/slice/plan-staging.d.ts +2 -1
  411. package/dist/slice/plan-staging.d.ts.map +1 -1
  412. package/dist/slice/plan-staging.js +3 -1
  413. package/dist/slice/plan-staging.js.map +1 -1
  414. package/dist/stack/declares-roles.d.ts +8 -0
  415. package/dist/stack/declares-roles.d.ts.map +1 -0
  416. package/dist/stack/declares-roles.js +11 -0
  417. package/dist/stack/declares-roles.js.map +1 -0
  418. package/dist/stack/stack-vars.d.ts.map +1 -1
  419. package/dist/stack/stack-vars.js +2 -1
  420. package/dist/stack/stack-vars.js.map +1 -1
  421. package/dist/version.d.ts +1 -1
  422. package/dist/version.js +1 -1
  423. package/dist/worker/progress-of.js +12 -1
  424. package/dist/worker/progress-of.js.map +1 -1
  425. package/dist/worker/row-commits.js +7 -1
  426. package/dist/worker/row-commits.js.map +1 -1
  427. package/package.json +6 -6
  428. package/templates/command/handler.spec.buses.ts.tpl +4 -1
  429. package/templates/command/handler.spec.container.ts.tpl +6 -1
  430. package/templates/controller/controller.spec.ts.tpl +4 -1
  431. package/templates/controller/guard.spec.ts.tpl +2 -2
  432. package/templates/controller/guard.ts.tpl +2 -1
  433. package/templates/e2e/e2e.spec.ts.tpl +5 -2
  434. package/templates/error/codes-import.ts.tpl +1 -0
  435. package/templates/error/refusal-case.spec.ts.tpl +1 -1
  436. package/templates/error/refusal.spec.ts.tpl +1 -0
  437. package/templates/file-upload/handler.spec.ts.tpl +4 -1
  438. package/templates/init/e2e/create-credentials.jwt.ts.tpl +13 -0
  439. package/templates/init/e2e/create-credentials.keycloak.ts.tpl +13 -0
  440. package/templates/init/e2e/create-credentials.none.ts.tpl +13 -0
  441. package/templates/init/e2e/create-credentials.passport.ts.tpl +13 -0
  442. package/templates/init/platform/audit/search-audit-entries/search-audit-entries.controller.ts.tpl +2 -2
  443. package/templates/init/platform/audit/search-audit-entries/search-audit-entries.route.ts.tpl +2 -2
  444. package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -4
  445. package/templates/init/platform/http/start-http-server.fastify.ts.tpl +8 -2
  446. package/templates/init/rules/presentation.md.tpl +2 -2
  447. package/templates/init/rules/tests.md.tpl +1 -0
  448. package/templates/nest-controller/controller.spec.ts.tpl +4 -1
  449. package/templates/pipeline/biome.json.tpl +1 -1
  450. package/templates/pipeline/jest.mutation.config.js.tpl +1 -1
  451. package/templates/pipeline/knip.json.tpl +2 -0
  452. package/templates/pipeline/package-scripts.json +2 -2
  453. package/templates/pipeline/vitest.config.ts.tpl +11 -6
  454. package/templates/pipeline/vitest.mutation.config.ts.tpl +1 -1
  455. package/templates/presets/identity/context/presentation/http/accounts.routes.ts.tpl +2 -1
  456. package/templates/presets/identity/context/presentation/http/invitations.routes.ts.tpl +2 -1
  457. package/templates/presets/identity/context/presentation/http/organisations.routes.ts.tpl +2 -1
  458. package/templates/presets/identity/context/test/unit/change-member-role.handler.spec.ts.tpl +2 -1
  459. package/templates/presets/identity/context/test/unit/deactivate-account.handler.spec.ts.tpl +4 -4
  460. package/templates/presets/identity/context/test/unit/grant-delegation.handler.spec.ts.tpl +2 -1
  461. package/templates/presets/identity/context/test/unit/invite-member.handler.spec.ts.tpl +3 -3
  462. package/templates/presets/identity/context/test/unit/provision-account.handler.spec.ts.tpl +2 -1
  463. package/templates/presets/identity/context/test/unit/remove-member.handler.spec.ts.tpl +2 -1
  464. package/templates/presets/identity/context/test/unit/revoke-delegation.handler.spec.ts.tpl +2 -1
  465. package/templates/presets/identity/context/test/unit/revoke-invitation.handler.spec.ts.tpl +2 -1
  466. package/templates/presets/identity/context/test/unit/search-members.handler.spec.ts.tpl +2 -2
  467. package/templates/query/handler.spec.buses.ts.tpl +4 -1
  468. package/templates/query/handler.spec.container.ts.tpl +6 -1
  469. package/templates/query/search.handler.spec.buses.ts.tpl +2 -2
  470. package/templates/query/search.handler.spec.container.ts.tpl +2 -2
  471. package/templates/query/search.reader.spec.ts.tpl +2 -2
  472. package/templates/route/route.class-validator.ts.tpl +5 -0
  473. package/templates/route/route.none.ts.tpl +6 -1
  474. package/templates/route/route.search.ts.tpl +3 -3
  475. package/templates/route/route.spec.ts.tpl +4 -1
  476. package/templates/route/route.standard-schema.ts.tpl +5 -0
  477. package/templates/route/route.typebox.ts.tpl +5 -0
  478. package/templates/route/route.zod.ts.tpl +5 -0
  479. package/templates/value-object/value-object.spec.ts.tpl +6 -3
@@ -1 +1 @@
1
- {"version":3,"file":"warn-dropped-context-tables.js","sourceRoot":"","sources":["../../src/migration/warn-dropped-context-tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAe,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,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AAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,SAAS,MAAM,CAAC,IAAwB;IACtC,IAAI,CAAC;QACH,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,OAAO,CAAC,SAAiB;IAChC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"warn-dropped-context-tables.js","sourceRoot":"","sources":["../../src/migration/warn-dropped-context-tables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAe,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAsB,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAm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AC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEnE,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,SAAS,MAAM,CAAC,IAAwB;IACtC,IAAI,CAAC;QACH,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,OAAO,CAAC,SAAiB;IAChC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Workspace } from '../workspace/index.js';
2
+ import type { ContextTree } from './context-tree.js';
3
+ /**
4
+ * Where a context keeps a folder of what belongs to none of its modules (`presentation/http`,
5
+ * `infrastructure/persistence`, `test/worlds`), from the project root: in `shared/` once a context
6
+ * divided into modules holds the folder there, at its own level otherwise.
7
+ */
8
+ export declare function contextLevelFolderOf(ws: Workspace, { directory, modules }: ContextTree, folder: string): string;
9
+ //# sourceMappingURL=context-level-folder-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-level-folder-of.d.ts","sourceRoot":"","sources":["../../src/model-modules/context-level-folder-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAI/G"}
@@ -0,0 +1,11 @@
1
+ import { SHARED_FOLDER } from './module-layers.js';
2
+ /**
3
+ * Where a context keeps a folder of what belongs to none of its modules (`presentation/http`,
4
+ * `infrastructure/persistence`, `test/worlds`), from the project root: in `shared/` once a context
5
+ * divided into modules holds the folder there, at its own level otherwise.
6
+ */
7
+ export function contextLevelFolderOf(ws, { directory, modules }, folder) {
8
+ const shared = `${directory}/${SHARED_FOLDER}/${folder}`;
9
+ return modules.length > 0 && ws.existsAsIs(shared) ? shared : `${directory}/${folder}`;
10
+ }
11
+ //# sourceMappingURL=context-level-folder-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-level-folder-of.js","sourceRoot":"","sources":["../../src/model-modules/context-level-folder-of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,EAAa,EAAE,EAAE,SAAS,EAAE,OAAO,EAAe,EAAE,MAAc;IACrG,MAAM,MAAM,GAAG,GAAG,SAAS,IAAI,aAAa,IAAI,MAAM,EAAE,CAAC;IAEzD,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,MAAM,EAAE,CAAC;AACzF,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The folders at the level of a context divided into modules that are laid out as before its
3
+ * modules held their tests and `shared/` what belongs to none, from the files of the context
4
+ * given relative to it: its `test/` folder, and a layer folder that holds nothing but what
5
+ * `shared/` holds now (its schema, its route groups). `ddd-ts-kit context-layout` moves them. A
6
+ * layer that still holds a file of a module is a context in the middle of its move, which
7
+ * `move-to-module` goes on with: it is none of them.
8
+ */
9
+ export declare function earlierFolders(files: readonly string[], modules: readonly string[]): string[];
10
+ //# sourceMappingURL=earlier-folders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earlier-folders.d.ts","sourceRoot":"","sources":["../../src/model-modules/earlier-folders.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAU7F"}
@@ -0,0 +1,20 @@
1
+ import { isHeldByShared } from './is-held-by-shared.js';
2
+ import { SHARED_FOLDERS, TEST_FOLDER } from './module-layers.js';
3
+ /**
4
+ * The folders at the level of a context divided into modules that are laid out as before its
5
+ * modules held their tests and `shared/` what belongs to none, from the files of the context
6
+ * given relative to it: its `test/` folder, and a layer folder that holds nothing but what
7
+ * `shared/` holds now (its schema, its route groups). `ddd-ts-kit context-layout` moves them. A
8
+ * layer that still holds a file of a module is a context in the middle of its move, which
9
+ * `move-to-module` goes on with: it is none of them.
10
+ */
11
+ export function earlierFolders(files, modules) {
12
+ if (modules.length === 0) {
13
+ return [];
14
+ }
15
+ return SHARED_FOLDERS.filter((folder) => {
16
+ const held = files.filter((file) => file.startsWith(`${folder}/`));
17
+ return held.length > 0 && (folder === TEST_FOLDER || held.every((file) => isHeldByShared(file)));
18
+ });
19
+ }
20
+ //# sourceMappingURL=earlier-folders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"earlier-folders.js","sourceRoot":"","sources":["../../src/model-modules/earlier-folders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,KAAwB,EAAE,OAA0B;IACjF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;QAEnE,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Every folder at the root of a context that holds files of its layers besides the layers
3
+ * themselves: the modules of its model, then `shared/` for what belongs to none of them. A
4
+ * context that declares no module has neither. A reader of paths goes through here;
5
+ * `declaredModules` stays the modules of the model, which `shared` is not.
6
+ */
7
+ export declare function foldersOfContext(modules: readonly string[]): string[];
8
+ //# sourceMappingURL=folders-of-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folders-of-context.d.ts","sourceRoot":"","sources":["../../src/model-modules/folders-of-context.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAErE"}
@@ -0,0 +1,11 @@
1
+ import { SHARED_FOLDER } from './module-layers.js';
2
+ /**
3
+ * Every folder at the root of a context that holds files of its layers besides the layers
4
+ * themselves: the modules of its model, then `shared/` for what belongs to none of them. A
5
+ * context that declares no module has neither. A reader of paths goes through here;
6
+ * `declaredModules` stays the modules of the model, which `shared` is not.
7
+ */
8
+ export function foldersOfContext(modules) {
9
+ return modules.length === 0 ? [] : [...modules, SHARED_FOLDER];
10
+ }
11
+ //# sourceMappingURL=folders-of-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folders-of-context.js","sourceRoot":"","sources":["../../src/model-modules/folders-of-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAA0B;IACzD,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,aAAa,CAAC,CAAC;AACjE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Workspace } from '../workspace/index.js';
2
+ import type { ContextTree } from './context-tree.js';
3
+ /**
4
+ * Where a file of a context is, from the project root, given as it is named without modules
5
+ * (`presentation/http/billing.routes.ts`, `test/worlds/billing.world.ts`): at the level of the
6
+ * context, in one of its modules or in `shared/`, the first that holds it. A file that is nowhere
7
+ * yet is answered at the level of the context, where a reader finds nothing.
8
+ */
9
+ export declare function heldFileOf(ws: Workspace, tree: ContextTree, file: string): string;
10
+ //# sourceMappingURL=held-file-of.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"held-file-of.d.ts","sourceRoot":"","sources":["../../src/model-modules/held-file-of.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAWjF"}
@@ -0,0 +1,18 @@
1
+ import { posix } from 'node:path';
2
+ import { roleFoldersOf } from './role-folders-of.js';
3
+ /**
4
+ * Where a file of a context is, from the project root, given as it is named without modules
5
+ * (`presentation/http/billing.routes.ts`, `test/worlds/billing.world.ts`): at the level of the
6
+ * context, in one of its modules or in `shared/`, the first that holds it. A file that is nowhere
7
+ * yet is answered at the level of the context, where a reader finds nothing.
8
+ */
9
+ export function heldFileOf(ws, tree, file) {
10
+ const name = posix.basename(file);
11
+ const [atTheContext, ...placed] = roleFoldersOf(ws, tree, posix.dirname(file));
12
+ // A context divided into modules holds the file in a module or in shared/: one left at its level is read last.
13
+ const held = [...placed, ...(atTheContext === undefined ? [] : [atTheContext])]
14
+ .map((folder) => `${folder}/${name}`)
15
+ .find((candidate) => ws.existsAsIs(candidate));
16
+ return held ?? `${tree.directory}/${file}`;
17
+ }
18
+ //# sourceMappingURL=held-file-of.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"held-file-of.js","sourceRoot":"","sources":["../../src/model-modules/held-file-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGlC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,EAAa,EAAE,IAAiB,EAAE,IAAY;IACvE,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAElC,MAAM,CAAC,YAAY,EAAE,GAAG,MAAM,CAAC,GAAG,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/E,+GAA+G;IAC/G,MAAM,IAAI,GAAG,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;SAC5E,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;SACpC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IAEjD,OAAO,IAAI,IAAI,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE,CAAC;AAC7C,CAAC"}
@@ -2,7 +2,8 @@ export { declaredModules } from './declared-modules.js';
2
2
  export { intoModule } from './into-module.js';
3
3
  export { isContextLevel } from './is-context-level.js';
4
4
  export { isRoleFolder } from './is-role-folder.js';
5
- export { EARLIER_MODULE_LAYERS, MODULE_LAYERS, MODULE_TEST_FOLDERS } from './module-layers.js';
5
+ export { foldersOfContext } from './folders-of-context.js';
6
+ export { MODULE_LAYERS, MODULE_TEST_FOLDERS, SHARED_FOLDER, SHARED_FOLDERS, TEST_FOLDER, } from './module-layers.js';
6
7
  export { modulePlacement } from './module-placement.js';
7
8
  export { moduleSplit } from './module-split.js';
8
9
  export { placedImports } from './placed-imports.js';
@@ -20,4 +21,10 @@ export { moduleFileOf } from './module-file-of.js';
20
21
  export { moduleOfModuleFile } from './module-of-module-file.js';
21
22
  export { wiringFilesOf } from './wiring-files-of.js';
22
23
  export { wiringTextOf } from './wiring-text-of.js';
24
+ export { heldFileOf } from './held-file-of.js';
25
+ export { contextLevelFolderOf } from './context-level-folder-of.js';
26
+ export { moduleTestFolderOf } from './module-test-folder-of.js';
27
+ export { subjectModule, type ModuleFile } from './subject-module.js';
28
+ export { isHeldByShared } from './is-held-by-shared.js';
29
+ export { earlierFolders } from './earlier-folders.js';
23
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model-modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAA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,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -2,7 +2,8 @@ export { declaredModules } from './declared-modules.js';
2
2
  export { intoModule } from './into-module.js';
3
3
  export { isContextLevel } from './is-context-level.js';
4
4
  export { isRoleFolder } from './is-role-folder.js';
5
- export { EARLIER_MODULE_LAYERS, MODULE_LAYERS, MODULE_TEST_FOLDERS } from './module-layers.js';
5
+ export { foldersOfContext } from './folders-of-context.js';
6
+ export { MODULE_LAYERS, MODULE_TEST_FOLDERS, SHARED_FOLDER, SHARED_FOLDERS, TEST_FOLDER, } from './module-layers.js';
6
7
  export { modulePlacement } from './module-placement.js';
7
8
  export { moduleSplit } from './module-split.js';
8
9
  export { placedImports } from './placed-imports.js';
@@ -19,4 +20,10 @@ export { moduleFileOf } from './module-file-of.js';
19
20
  export { moduleOfModuleFile } from './module-of-module-file.js';
20
21
  export { wiringFilesOf } from './wiring-files-of.js';
21
22
  export { wiringTextOf } from './wiring-text-of.js';
23
+ export { heldFileOf } from './held-file-of.js';
24
+ export { contextLevelFolderOf } from './context-level-folder-of.js';
25
+ export { moduleTestFolderOf } from './module-test-folder-of.js';
26
+ export { subjectModule } from './subject-module.js';
27
+ export { isHeldByShared } from './is-held-by-shared.js';
28
+ export { earlierFolders } from './earlier-folders.js';
22
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model-modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,o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AM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Puts a path relative to its context, written without modules, back in its module: a file of a
3
- * layer under the folder of the module (`<module>/domain/...`), a spec under the module folder of
4
- * its test folder (`test/unit/<module>/...`). Any other path stays at the level of the context.
2
+ * Puts a path relative to its context, written without modules, in its module: a file of a layer
3
+ * under the folder of the module (`<module>/domain/...`), a spec, a fake or a builder in its test
4
+ * folder (`<module>/test/unit/...`). Any other path stays as it is written.
5
5
  */
6
6
  export declare function intoModule(module: string | undefined, file: string): string;
7
7
  //# sourceMappingURL=into-module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"into-module.d.ts","sourceRoot":"","sources":["../../src/model-modules/into-module.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAY3E"}
1
+ {"version":3,"file":"into-module.d.ts","sourceRoot":"","sources":["../../src/model-modules/into-module.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAK3E"}
@@ -1,17 +1,14 @@
1
- import { MODULE_LAYERS, MODULE_TEST_FOLDERS } from './module-layers.js';
1
+ import { MODULE_LAYERS, TEST_FOLDER } from './module-layers.js';
2
+ /** The folders of the tests a module holds for itself: its specs, its fakes and its builders. */
3
+ const MODULE_TESTS = ['unit', 'integration', 'fakes', 'builders'];
2
4
  /**
3
- * Puts a path relative to its context, written without modules, back in its module: a file of a
4
- * layer under the folder of the module (`<module>/domain/...`), a spec under the module folder of
5
- * its test folder (`test/unit/<module>/...`). Any other path stays at the level of the context.
5
+ * Puts a path relative to its context, written without modules, in its module: a file of a layer
6
+ * under the folder of the module (`<module>/domain/...`), a spec, a fake or a builder in its test
7
+ * folder (`<module>/test/unit/...`). Any other path stays as it is written.
6
8
  */
7
9
  export function intoModule(module, file) {
8
- const [first = '', second = '', ...rest] = file.split('/');
9
- if (module === undefined) {
10
- return file;
11
- }
12
- if (MODULE_LAYERS.includes(first)) {
13
- return `${module}/${file}`;
14
- }
15
- return first === 'test' && MODULE_TEST_FOLDERS.includes(second) ? ['test', second, module, ...rest].join('/') : file;
10
+ const [first = '', second = ''] = file.split('/');
11
+ const held = MODULE_LAYERS.includes(first) || (first === TEST_FOLDER && MODULE_TESTS.includes(second));
12
+ return module !== undefined && held ? `${module}/${file}` : file;
16
13
  }
17
14
  //# sourceMappingURL=into-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"into-module.js","sourceRoot":"","sources":["../../src/model-modules/into-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,MAA0B,EAAE,IAAY;IACjE,MAAM,CAAC,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE3D,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED,OAAO,KAAK,KAAK,MAAM,IAAI,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvH,CAAC"}
1
+ {"version":3,"file":"into-module.js","sourceRoot":"","sources":["../../src/model-modules/into-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,iGAAiG;AACjG,MAAM,YAAY,GAAsB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AAErF;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,MAA0B,EAAE,IAAY;IACjE,MAAM,CAAC,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,WAAW,IAAI,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAEvG,OAAO,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACnE,CAAC"}
@@ -1,9 +1,8 @@
1
1
  /**
2
- * The files a context keeps at its own level once it is divided into modules, by their path
3
- * relative to the context written without modules: the closed list of its error codes and its
4
- * permission set (`perContext` of the canonical tree, at the root of the context), the schema,
5
- * tables and migrations of its database, its route groups with their guards and shared shapes,
6
- * and the fakes, builders and worlds of its specs. Every other file of a layer belongs to a module.
2
+ * The files a context divided into modules keeps outside every module, by their path relative to
3
+ * the context written without modules: the closed list of its error codes and its permission set
4
+ * (`perContext` of the canonical tree, at the root of the context), and what its `shared/` folder
5
+ * holds (`isHeldByShared`). Every other file of a layer belongs to a module.
7
6
  */
8
7
  export declare function isContextLevel(context: string, file: string): boolean;
9
8
  //# sourceMappingURL=is-context-level.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-context-level.d.ts","sourceRoot":"","sources":["../../src/model-modules/is-context-level.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAOrE"}
1
+ {"version":3,"file":"is-context-level.d.ts","sourceRoot":"","sources":["../../src/model-modules/is-context-level.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAOrE"}
@@ -1,23 +1,13 @@
1
1
  import { ROLES } from '../check/canonical/roles.js';
2
- /** What a context divided into modules keeps at its own level, read without modules, besides the files of `perContext`. */
3
- const SHARED_BY_THE_MODULES = [
4
- // The database of the context: its schema, its tables and its migrations; a row schema is of a module.
5
- /^infrastructure\/persistence\/(?![^/]*-row\.schema\.ts$)[^/]+\.schema\.ts$/,
6
- // The route groups, their guards and the shapes several routes answer with.
7
- /^presentation\/http\/[^/]+\.routes\.ts$/,
8
- /^presentation\/http\/(?:shared|guards)\//,
9
- // What the specs of several modules share.
10
- /^test\/(?:fakes|builders|worlds)\//,
11
- ];
2
+ import { isHeldByShared } from './is-held-by-shared.js';
12
3
  /**
13
- * The files a context keeps at its own level once it is divided into modules, by their path
14
- * relative to the context written without modules: the closed list of its error codes and its
15
- * permission set (`perContext` of the canonical tree, at the root of the context), the schema,
16
- * tables and migrations of its database, its route groups with their guards and shared shapes,
17
- * and the fakes, builders and worlds of its specs. Every other file of a layer belongs to a module.
4
+ * The files a context divided into modules keeps outside every module, by their path relative to
5
+ * the context written without modules: the closed list of its error codes and its permission set
6
+ * (`perContext` of the canonical tree, at the root of the context), and what its `shared/` folder
7
+ * holds (`isHeldByShared`). Every other file of a layer belongs to a module.
18
8
  */
19
9
  export function isContextLevel(context, file) {
20
- return (SHARED_BY_THE_MODULES.some((pattern) => pattern.test(file)) ||
10
+ return (isHeldByShared(file) ||
21
11
  ROLES.some((role) => (role.perContext ?? []).some((name) => file === `${role.directory}/${name.replace('<context>', context)}`)));
22
12
  }
23
13
  //# sourceMappingURL=is-context-level.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-context-level.js","sourceRoot":"","sources":["../../src/model-modules/is-context-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,2HAA2H;AAC3H,MAAM,qBAAqB,GAAsB;IAC/C,uGAAuG;IACvG,4EAA4E;IAC5E,4EAA4E;IAC5E,yCAAyC;IACzC,0CAA0C;IAC1C,2CAA2C;IAC3C,oCAAoC;CACrC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,IAAY;IAC1D,OAAO,CACL,qBAAqB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3D,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClB,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAC3G,CACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"is-context-level.js","sourceRoot":"","sources":["../../src/model-modules/is-context-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,IAAY;IAC1D,OAAO,CACL,cAAc,CAAC,IAAI,CAAC;QACpB,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClB,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAC3G,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * True for a file that belongs to no module of a context divided into modules, and sits in its
3
+ * `shared/` folder: the schema and tables of its database, its route groups with their guards and
4
+ * shared shapes, and its worlds. A fake or a builder follows its subject into a module; one that
5
+ * has none, and a spec of what `shared/` holds, sit in `shared/test/` too, told by no path.
6
+ */
7
+ export declare function isHeldByShared(file: string): boolean;
8
+ //# sourceMappingURL=is-held-by-shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-held-by-shared.d.ts","sourceRoot":"","sources":["../../src/model-modules/is-held-by-shared.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD"}
@@ -0,0 +1,20 @@
1
+ /** What `shared/` of a context divided into modules holds, by its path relative to the context written without `shared/`. */
2
+ const HELD_BY_SHARED = [
3
+ // The database of the context: its schema, its tables and its migrations; a row schema is of a module.
4
+ /^infrastructure\/persistence\/(?![^/]*-row\.schema\.ts$)[^/]+\.schema\.ts$/,
5
+ // The route groups, their guards and the shapes several routes answer with.
6
+ /^presentation\/http\/[^/]+\.routes\.ts$/,
7
+ /^presentation\/http\/(?:shared|guards)\//,
8
+ // The arrangements the specs of several modules share.
9
+ /^test\/worlds\//,
10
+ ];
11
+ /**
12
+ * True for a file that belongs to no module of a context divided into modules, and sits in its
13
+ * `shared/` folder: the schema and tables of its database, its route groups with their guards and
14
+ * shared shapes, and its worlds. A fake or a builder follows its subject into a module; one that
15
+ * has none, and a spec of what `shared/` holds, sit in `shared/test/` too, told by no path.
16
+ */
17
+ export function isHeldByShared(file) {
18
+ return HELD_BY_SHARED.some((pattern) => pattern.test(file));
19
+ }
20
+ //# sourceMappingURL=is-held-by-shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-held-by-shared.js","sourceRoot":"","sources":["../../src/model-modules/is-held-by-shared.ts"],"names":[],"mappings":"AAAA,6HAA6H;AAC7H,MAAM,cAAc,GAAsB;IACxC,uGAAuG;IACvG,4EAA4E;IAC5E,4EAA4E;IAC5E,yCAAyC;IACzC,0CAA0C;IAC1C,uDAAuD;IACvD,iBAAiB;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC"}
@@ -1,9 +1,16 @@
1
1
  /** The four layers a module of the model holds, each with its role folders unchanged below it. */
2
2
  export declare const MODULE_LAYERS: readonly string[];
3
- /** The layers 0.86 and 0.87 put a module under (`domain/<module>/`), still read so that context-layout moves them. */
4
- export declare const EARLIER_MODULE_LAYERS: readonly string[];
5
3
  /** The folders of `test/` whose specs follow the module of their subject: `test/unit/<module>/`. */
6
4
  export declare const MODULE_TEST_FOLDERS: readonly string[];
5
+ /** The folder of the tests of a context, and of a module that holds its own: `<module>/test/`. */
6
+ export declare const TEST_FOLDER = "test";
7
+ /**
8
+ * The folder where a context divided into modules keeps what belongs to none of them: never a
9
+ * module, never declared, read only in a context that declares modules.
10
+ */
11
+ export declare const SHARED_FOLDER = "shared";
12
+ /** What `shared/` holds: the database of the context, its route groups, what its specs share. No domain, no application. */
13
+ export declare const SHARED_FOLDERS: readonly string[];
7
14
  /** What a module can never be named: a layer, a folder of the root of a context. */
8
15
  export declare const CONTEXT_FOLDERS: readonly string[];
9
16
  //# sourceMappingURL=module-layers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-layers.d.ts","sourceRoot":"","sources":["../../src/model-modules/module-layers.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAAgE,CAAC;AAE5G,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAA8B,CAAC;AAElF,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAA4B,CAAC;AAE9E,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAAqD,CAAC"}
1
+ {"version":3,"file":"module-layers.d.ts","sourceRoot":"","sources":["../../src/model-modules/module-layers.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,eAAO,MAAM,aAAa,EAAE,SAAS,MAAM,EAAgE,CAAC;AAE5G,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAA4B,CAAC;AAE9E,kGAAkG;AAClG,eAAO,MAAM,WAAW,SAAS,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC,4HAA4H;AAC5H,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAAoD,CAAC;AAEjG,oFAAoF;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAA0D,CAAC"}
@@ -1,9 +1,16 @@
1
1
  /** The four layers a module of the model holds, each with its role folders unchanged below it. */
2
2
  export const MODULE_LAYERS = ['domain', 'application', 'infrastructure', 'presentation'];
3
- /** The layers 0.86 and 0.87 put a module under (`domain/<module>/`), still read so that context-layout moves them. */
4
- export const EARLIER_MODULE_LAYERS = ['domain', 'application'];
5
3
  /** The folders of `test/` whose specs follow the module of their subject: `test/unit/<module>/`. */
6
4
  export const MODULE_TEST_FOLDERS = ['unit', 'integration'];
5
+ /** The folder of the tests of a context, and of a module that holds its own: `<module>/test/`. */
6
+ export const TEST_FOLDER = 'test';
7
+ /**
8
+ * The folder where a context divided into modules keeps what belongs to none of them: never a
9
+ * module, never declared, read only in a context that declares modules.
10
+ */
11
+ export const SHARED_FOLDER = 'shared';
12
+ /** What `shared/` holds: the database of the context, its route groups, what its specs share. No domain, no application. */
13
+ export const SHARED_FOLDERS = ['infrastructure', 'presentation', TEST_FOLDER];
7
14
  /** What a module can never be named: a layer, a folder of the root of a context. */
8
- export const CONTEXT_FOLDERS = [...MODULE_LAYERS, 'published-language', 'test'];
15
+ export const CONTEXT_FOLDERS = [...MODULE_LAYERS, 'published-language', TEST_FOLDER];
9
16
  //# sourceMappingURL=module-layers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-layers.js","sourceRoot":"","sources":["../../src/model-modules/module-layers.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,CAAC,MAAM,aAAa,GAAsB,CAAC,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAE5G,sHAAsH;AACtH,MAAM,CAAC,MAAM,qBAAqB,GAAsB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAElF,oGAAoG;AACpG,MAAM,CAAC,MAAM,mBAAmB,GAAsB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE9E,oFAAoF;AACpF,MAAM,CAAC,MAAM,eAAe,GAAsB,CAAC,GAAG,aAAa,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"module-layers.js","sourceRoot":"","sources":["../../src/model-modules/module-layers.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,MAAM,CAAC,MAAM,aAAa,GAAsB,CAAC,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAE5G,oGAAoG;AACpG,MAAM,CAAC,MAAM,mBAAmB,GAAsB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE9E,kGAAkG;AAClG,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAEtC,4HAA4H;AAC5H,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;AAEjG,oFAAoF;AACpF,MAAM,CAAC,MAAM,eAAe,GAAsB,CAAC,GAAG,aAAa,EAAE,oBAAoB,EAAE,WAAW,CAAC,CAAC"}
@@ -3,6 +3,8 @@ export type ModuleNameFlaw = {
3
3
  readonly reason: 'format';
4
4
  } | {
5
5
  readonly reason: 'role-folder';
6
+ } | {
7
+ readonly reason: 'shared-folder';
6
8
  } | {
7
9
  readonly reason: 'technical';
8
10
  readonly word: string;
@@ -10,7 +12,8 @@ export type ModuleNameFlaw = {
10
12
  /**
11
13
  * The one judgement of a module name that the config check, the rule module/declared and
12
14
  * `generate module` share: a folder name in kebab-case, never the name of a layer, of a folder of the
13
- * root of a context or of a role folder, never a technical grouping. Whether its words are terms of the glossary depends on the context.
15
+ * root of a context or of a role folder, never `shared`, the folder of what belongs to no module,
16
+ * never a technical grouping. Whether its words are terms of the glossary depends on the context.
14
17
  */
15
18
  export declare function moduleNameFlaw(name: string): ModuleNameFlaw | undefined;
16
19
  //# sourceMappingURL=module-name-flaw.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-name-flaw.d.ts","sourceRoot":"","sources":["../../src/model-modules/module-name-flaw.ts"],"names":[],"mappings":"AAyBA,iGAAiG;AACjG,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GAClC;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAYvE"}
1
+ {"version":3,"file":"module-name-flaw.d.ts","sourceRoot":"","sources":["../../src/model-modules/module-name-flaw.ts"],"names":[],"mappings":"AAyBA,iGAAiG;AACjG,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GAClC;IAAE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAA;CAAE,GACpC;IAAE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAgBvE"}
@@ -1,7 +1,7 @@
1
1
  import { TECHNICAL_WORDS } from '../check/language/technical-words.js';
2
2
  import { splitWords } from '../naming/index.js';
3
3
  import { isRoleFolder } from './is-role-folder.js';
4
- import { CONTEXT_FOLDERS, MODULE_LAYERS } from './module-layers.js';
4
+ import { CONTEXT_FOLDERS, MODULE_LAYERS, SHARED_FOLDER } from './module-layers.js';
5
5
  /**
6
6
  * Words that name a bag, not a part of the model: a module called `shared`, `common` or `core`
7
7
  * becomes the place where everything else goes, which is what modules are there to avoid.
@@ -23,7 +23,8 @@ const KEBAB = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
23
23
  /**
24
24
  * The one judgement of a module name that the config check, the rule module/declared and
25
25
  * `generate module` share: a folder name in kebab-case, never the name of a layer, of a folder of the
26
- * root of a context or of a role folder, never a technical grouping. Whether its words are terms of the glossary depends on the context.
26
+ * root of a context or of a role folder, never `shared`, the folder of what belongs to no module,
27
+ * never a technical grouping. Whether its words are terms of the glossary depends on the context.
27
28
  */
28
29
  export function moduleNameFlaw(name) {
29
30
  if (!KEBAB.test(name)) {
@@ -32,6 +33,9 @@ export function moduleNameFlaw(name) {
32
33
  if (CONTEXT_FOLDERS.includes(name) || MODULE_LAYERS.some((layer) => isRoleFolder(layer, name))) {
33
34
  return { reason: 'role-folder' };
34
35
  }
36
+ if (name === SHARED_FOLDER) {
37
+ return { reason: 'shared-folder' };
38
+ }
35
39
  const word = splitWords(name).find((candidate) => MODULE_TECHNICAL_WORDS.includes(candidate));
36
40
  return word === undefined ? undefined : { reason: 'technical', word };
37
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"module-name-flaw.js","sourceRoot":"","sources":["../../src/model-modules/module-name-flaw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEjE;;;GAGG;AACH,MAAM,sBAAsB,GAAsB;IAChD,GAAG,eAAe;IAClB,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,MAAM;IACN,SAAS;IACT,OAAO;IACP,MAAM;IACN,SAAS;IACT,KAAK;IACL,OAAO;CACR,CAAC;AAEF,MAAM,KAAK,GAAG,iCAAiC,CAAC;AAQhD;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;IAED,IAAI,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC;QAC/F,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;IACnC,CAAC;IAED,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,sBAAsB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IAE9F,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SA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Q,CAAC,SAAS,CAAC,CAAC,CAAC;IAE9F,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;AACxE,CAAC"}
@@ -15,15 +15,17 @@ export interface PlacementSources {
15
15
  readonly unplaced: (context: string, relative: string) => never;
16
16
  /** Called when `--module` names another module than the one that holds the use case of the file: it throws. */
17
17
  readonly split: (context: string, relative: string, holder: string) => never;
18
- /** The module whose production file a spec of a context is named after (`<subject>.spec.ts`), if one is. */
18
+ /** The module whose production file a spec, a fake or a builder of a context is named after, if one is. */
19
19
  readonly subjectModule: (context: string, spec: string) => string | undefined;
20
20
  }
21
21
  /**
22
- * Where a path of a context, written as it would be without modules of its model, is: as written
23
- * when the file is there or stays one per context; else in the module that holds it, the asked
24
- * one first; else, for a file being written, in the asked module. A spec goes with its subject,
25
- * in the module that holds the file it is named after, and stays at the level of the context
26
- * when no module does.
22
+ * Where a path of a context divided into modules, written as it would be without them, is. What
23
+ * belongs to no module is in `shared/` (`isHeldByShared`); the code list and the permission set
24
+ * stay as written, at the root. A file of a layer is in the module that holds it, the asked one
25
+ * first, or, for a file being written, in the asked module; one still at the level of the
26
+ * context, which `move-to-module` has not moved yet, is read there. A spec, a fake or a builder
27
+ * goes with its subject, in the test folder of the module that holds the file it is named after,
28
+ * and in `shared/test/` when no module does. A path of a context without modules is as written.
27
29
  */
28
30
  export declare function modulePlacement(sources: PlacementSources): (file: string, writing: boolean) => string;
29
31
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"module-placement.d.ts","sourceRoot":"","sources":["../../src/model-modules/module-placement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOxC,qGAAqG;AACrG,UAAU,WAAW;IACnB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACz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