ddd-ts-kit 0.87.0 → 0.88.0
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 +23 -0
- package/README.fr.md +13 -13
- package/README.md +12 -12
- package/dist/check/canonical/earlier-context-file.d.ts +15 -0
- package/dist/check/canonical/earlier-context-file.d.ts.map +1 -0
- package/dist/check/canonical/earlier-context-file.js +33 -0
- package/dist/check/canonical/earlier-context-file.js.map +1 -0
- package/dist/check/canonical/stray-entry.d.ts.map +1 -1
- package/dist/check/canonical/stray-entry.js +11 -9
- package/dist/check/canonical/stray-entry.js.map +1 -1
- package/dist/check/configuration/module-problems.js +2 -2
- package/dist/check/configuration/module-problems.js.map +1 -1
- package/dist/check/errors/code-list.d.ts +1 -1
- package/dist/check/errors/code-list.d.ts.map +1 -1
- package/dist/check/errors/is-codes-file.d.ts +1 -1
- package/dist/check/errors/is-codes-file.d.ts.map +1 -1
- package/dist/check/errors/is-codes-file.js +1 -1
- package/dist/check/errors/is-codes-file.js.map +1 -1
- package/dist/check/explain/errors-docs.js +5 -5
- package/dist/check/explain/errors-docs.js.map +1 -1
- package/dist/check/explain/language-docs.js +1 -1
- package/dist/check/explain/language-docs.js.map +1 -1
- package/dist/check/explain/module-docs.d.ts.map +1 -1
- package/dist/check/explain/module-docs.js +16 -12
- package/dist/check/explain/module-docs.js.map +1 -1
- package/dist/check/fixtures/authz-granted-fixtures.js +2 -2
- package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
- package/dist/check/fixtures/authz-scope-narrows-fixtures.js +4 -4
- package/dist/check/fixtures/authz-scope-narrows-fixtures.js.map +1 -1
- package/dist/check/fixtures/context-file-fixtures.d.ts +4 -0
- package/dist/check/fixtures/context-file-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/context-file-fixtures.js +36 -0
- package/dist/check/fixtures/context-file-fixtures.js.map +1 -0
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +2 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/module-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/module-fixtures.js +50 -17
- package/dist/check/fixtures/module-fixtures.js.map +1 -1
- package/dist/check/fixtures/named-refusal-fixtures.js +5 -5
- package/dist/check/fixtures/named-refusal-fixtures.js.map +1 -1
- package/dist/check/fixtures/vocabulary-fixtures.js +2 -2
- package/dist/check/fixtures/vocabulary-fixtures.js.map +1 -1
- package/dist/check/project/locate.d.ts.map +1 -1
- package/dist/check/project/locate.js +18 -9
- package/dist/check/project/locate.js.map +1 -1
- package/dist/check/rules/errors-code-listed.js +6 -8
- package/dist/check/rules/errors-code-listed.js.map +1 -1
- package/dist/check/rules/errors-code-unique.js +2 -2
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.js +2 -2
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/language-glossary-term.js +1 -1
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +67 -13
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/naming-suffix.d.ts.map +1 -1
- package/dist/check/rules/naming-suffix.js +12 -9
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +8 -1
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/support/path-in-context.d.ts +5 -1
- package/dist/check/support/path-in-context.d.ts.map +1 -1
- package/dist/check/support/path-in-context.js +12 -3
- package/dist/check/support/path-in-context.js.map +1 -1
- package/dist/commands/context-layout.d.ts +4 -0
- package/dist/commands/context-layout.d.ts.map +1 -0
- package/dist/commands/context-layout.js +48 -0
- package/dist/commands/context-layout.js.map +1 -0
- package/dist/commands/generate.js +2 -2
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +2 -0
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/config/stack.d.ts +1 -1
- package/dist/context-files/context-file-at.d.ts +7 -0
- package/dist/context-files/context-file-at.d.ts.map +1 -0
- package/dist/context-files/context-file-at.js +9 -0
- package/dist/context-files/context-file-at.js.map +1 -0
- package/dist/context-files/context-file-placement.d.ts +8 -0
- package/dist/context-files/context-file-placement.d.ts.map +1 -0
- package/dist/context-files/context-file-placement.js +23 -0
- package/dist/context-files/context-file-placement.js.map +1 -0
- package/dist/context-files/context-file.d.ts +16 -0
- package/dist/context-files/context-file.d.ts.map +1 -0
- package/dist/context-files/context-file.js +12 -0
- package/dist/context-files/context-file.js.map +1 -0
- package/dist/context-files/earlier-place-of.d.ts +7 -0
- package/dist/context-files/earlier-place-of.d.ts.map +1 -0
- package/dist/context-files/earlier-place-of.js +10 -0
- package/dist/context-files/earlier-place-of.js.map +1 -0
- package/dist/context-files/index.d.ts +5 -0
- package/dist/context-files/index.d.ts.map +1 -0
- package/dist/context-files/index.js +5 -0
- package/dist/context-files/index.js.map +1 -0
- package/dist/context-layout/context-layout.d.ts +19 -0
- package/dist/context-layout/context-layout.d.ts.map +1 -0
- package/dist/context-layout/context-layout.js +55 -0
- package/dist/context-layout/context-layout.js.map +1 -0
- package/dist/context-layout/index.d.ts +2 -0
- package/dist/context-layout/index.d.ts.map +1 -0
- package/dist/context-layout/index.js +2 -0
- package/dist/context-layout/index.js.map +1 -0
- package/dist/context-layout/module-moves.d.ts +21 -0
- package/dist/context-layout/module-moves.d.ts.map +1 -0
- package/dist/context-layout/module-moves.js +146 -0
- package/dist/context-layout/module-moves.js.map +1 -0
- package/dist/controllers/migrate-context.js +20 -15
- package/dist/controllers/migrate-context.js.map +1 -1
- package/dist/controllers/plan-context.d.ts +5 -1
- package/dist/controllers/plan-context.d.ts.map +1 -1
- package/dist/controllers/plan-context.js +19 -5
- package/dist/controllers/plan-context.js.map +1 -1
- package/dist/depcruise/layer-rules.js +21 -7
- package/dist/depcruise/layer-rules.js.map +1 -1
- package/dist/describe/read-adapters.d.ts.map +1 -1
- package/dist/describe/read-adapters.js +6 -4
- package/dist/describe/read-adapters.js.map +1 -1
- package/dist/describe/read-controllers.d.ts.map +1 -1
- package/dist/describe/read-controllers.js +5 -3
- package/dist/describe/read-controllers.js.map +1 -1
- package/dist/describe/read-errors.d.ts +1 -1
- package/dist/describe/read-errors.d.ts.map +1 -1
- package/dist/describe/read-errors.js +5 -3
- package/dist/describe/read-errors.js.map +1 -1
- package/dist/describe/read-routes.d.ts.map +1 -1
- package/dist/describe/read-routes.js +5 -5
- package/dist/describe/read-routes.js.map +1 -1
- package/dist/docs/context-facts.d.ts +1 -1
- package/dist/docs/context-facts.d.ts.map +1 -1
- package/dist/docs/read-context.d.ts.map +1 -1
- package/dist/docs/read-context.js +2 -1
- package/dist/docs/read-context.js.map +1 -1
- package/dist/docs/refresh-context-doc.js +1 -1
- package/dist/docs/refresh-context-doc.js.map +1 -1
- package/dist/docs/state-machine-lines.d.ts +1 -1
- package/dist/docs/state-machine-lines.d.ts.map +1 -1
- package/dist/docs/state-machine-lines.js +6 -2
- package/dist/docs/state-machine-lines.js.map +1 -1
- package/dist/file-moves/file-move.d.ts +6 -0
- package/dist/file-moves/file-move.d.ts.map +1 -0
- package/dist/file-moves/file-move.js +2 -0
- package/dist/file-moves/file-move.js.map +1 -0
- package/dist/file-moves/index.d.ts +3 -0
- package/dist/file-moves/index.d.ts.map +1 -0
- package/dist/file-moves/index.js +2 -0
- package/dist/file-moves/index.js.map +1 -0
- package/dist/file-moves/move-files.d.ts +15 -0
- package/dist/file-moves/move-files.d.ts.map +1 -0
- package/dist/file-moves/move-files.js +37 -0
- package/dist/file-moves/move-files.js.map +1 -0
- package/dist/generate/errors/codes-list.d.ts +1 -1
- package/dist/generate/errors/codes-list.d.ts.map +1 -1
- package/dist/generate/errors/write-named-refusal.d.ts +1 -1
- package/dist/generate/errors/write-named-refusal.d.ts.map +1 -1
- package/dist/generate/errors/write-named-refusal.js +3 -2
- package/dist/generate/errors/write-named-refusal.js.map +1 -1
- package/dist/generate/kind.d.ts +1 -1
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +22 -2
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.js +1 -1
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.js +1 -1
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +3 -1
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts +1 -1
- package/dist/generate/kinds/presentation/controller-of.d.ts.map +1 -1
- package/dist/generate/kinds/presentation/controller-of.js +7 -5
- package/dist/generate/kinds/presentation/controller-of.js.map +1 -1
- package/dist/generate/permissions-file.d.ts +4 -1
- package/dist/generate/permissions-file.d.ts.map +1 -1
- package/dist/generate/permissions-file.js +6 -2
- package/dist/generate/permissions-file.js.map +1 -1
- package/dist/generate/place-context-files.d.ts +9 -0
- package/dist/generate/place-context-files.d.ts.map +1 -0
- package/dist/generate/place-context-files.js +14 -0
- package/dist/generate/place-context-files.js.map +1 -0
- package/dist/generate/place-generated-files.d.ts +18 -0
- package/dist/generate/place-generated-files.d.ts.map +1 -0
- package/dist/generate/{place-in-modules.js → place-generated-files.js} +42 -17
- package/dist/generate/place-generated-files.js.map +1 -0
- package/dist/generate/refresh-docs.d.ts.map +1 -1
- package/dist/generate/refresh-docs.js +3 -0
- package/dist/generate/refresh-docs.js.map +1 -1
- package/dist/generate/refuse-earlier-layout.d.ts +9 -0
- package/dist/generate/refuse-earlier-layout.d.ts.map +1 -0
- package/dist/generate/refuse-earlier-layout.js +15 -0
- package/dist/generate/refuse-earlier-layout.js.map +1 -0
- package/dist/help/notes.d.ts +1 -1
- package/dist/help/notes.d.ts.map +1 -1
- package/dist/help/notes.js +24 -9
- package/dist/help/notes.js.map +1 -1
- package/dist/help/usage.d.ts +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +1 -0
- package/dist/help/usage.js.map +1 -1
- package/dist/init/manifest/versions.js +24 -24
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +6 -0
- package/dist/init/run-init.js.map +1 -1
- package/dist/knip/ignore-code-types-where-they-are.d.ts +11 -0
- package/dist/knip/ignore-code-types-where-they-are.d.ts.map +1 -0
- package/dist/knip/ignore-code-types-where-they-are.js +56 -0
- package/dist/knip/ignore-code-types-where-they-are.js.map +1 -0
- package/dist/knip/index.d.ts +2 -0
- package/dist/knip/index.d.ts.map +1 -0
- package/dist/knip/index.js +2 -0
- package/dist/knip/index.js.map +1 -0
- package/dist/model-modules/index.d.ts +1 -1
- package/dist/model-modules/index.d.ts.map +1 -1
- package/dist/model-modules/index.js +1 -1
- package/dist/model-modules/index.js.map +1 -1
- package/dist/model-modules/into-module.d.ts +5 -1
- package/dist/model-modules/into-module.d.ts.map +1 -1
- package/dist/model-modules/into-module.js +12 -5
- package/dist/model-modules/into-module.js.map +1 -1
- package/dist/model-modules/is-context-level.d.ts +5 -3
- package/dist/model-modules/is-context-level.d.ts.map +1 -1
- package/dist/model-modules/is-context-level.js +17 -4
- package/dist/model-modules/is-context-level.js.map +1 -1
- package/dist/model-modules/module-layers.d.ts +7 -1
- package/dist/model-modules/module-layers.d.ts.map +1 -1
- package/dist/model-modules/module-layers.js +8 -2
- package/dist/model-modules/module-layers.js.map +1 -1
- package/dist/model-modules/module-name-flaw.d.ts +2 -2
- package/dist/model-modules/module-name-flaw.js +4 -4
- package/dist/model-modules/module-name-flaw.js.map +1 -1
- package/dist/model-modules/module-placement.d.ts +5 -1
- package/dist/model-modules/module-placement.d.ts.map +1 -1
- package/dist/model-modules/module-placement.js +47 -18
- package/dist/model-modules/module-placement.js.map +1 -1
- package/dist/model-modules/module-split.d.ts +9 -5
- package/dist/model-modules/module-split.d.ts.map +1 -1
- package/dist/model-modules/module-split.js +30 -13
- package/dist/model-modules/module-split.js.map +1 -1
- package/dist/model-modules/role-directories-of.d.ts.map +1 -1
- package/dist/model-modules/role-directories-of.js +6 -1
- package/dist/model-modules/role-directories-of.js.map +1 -1
- package/dist/model-modules/role-folders-of.d.ts +1 -1
- package/dist/model-modules/role-folders-of.d.ts.map +1 -1
- package/dist/model-modules/role-folders-of.js +15 -5
- package/dist/model-modules/role-folders-of.js.map +1 -1
- package/dist/model-modules/role-folders.d.ts +2 -2
- package/dist/model-modules/role-folders.js +2 -2
- package/dist/move-to-module/module-move.d.ts +2 -4
- package/dist/move-to-module/module-move.d.ts.map +1 -1
- package/dist/move-to-module/move-to-module.d.ts +2 -6
- package/dist/move-to-module/move-to-module.d.ts.map +1 -1
- package/dist/move-to-module/move-to-module.js +2 -31
- package/dist/move-to-module/move-to-module.js.map +1 -1
- package/dist/move-to-module/moves-into-module.d.ts +1 -1
- package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
- package/dist/move-to-module/moves-into-module.js +25 -6
- package/dist/move-to-module/moves-into-module.js.map +1 -1
- package/dist/refusals/code-types-pattern.d.ts +4 -0
- package/dist/refusals/code-types-pattern.d.ts.map +1 -0
- package/dist/refusals/code-types-pattern.js +6 -0
- package/dist/refusals/code-types-pattern.js.map +1 -0
- package/dist/refusals/ignore-code-types.d.ts +1 -1
- package/dist/refusals/ignore-code-types.d.ts.map +1 -1
- package/dist/refusals/ignore-code-types.js +3 -2
- package/dist/refusals/ignore-code-types.js.map +1 -1
- package/dist/refusals/path-from-contexts.d.ts +1 -1
- package/dist/refusals/path-from-contexts.js +2 -2
- package/dist/refusals/path-from-contexts.js.map +1 -1
- package/dist/refusals/with-codes.d.ts +1 -1
- package/dist/refusals/with-codes.d.ts.map +1 -1
- package/dist/refusals/with-codes.js +1 -1
- package/dist/refusals/with-codes.js.map +1 -1
- package/dist/refusals/write-refusal-classes.d.ts.map +1 -1
- package/dist/refusals/write-refusal-classes.js +4 -2
- package/dist/refusals/write-refusal-classes.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +2 -0
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/templates/command/handler.spec.buses.ts.tpl +1 -1
- package/templates/command/handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/context/permission-set.tpl +1 -1
- package/templates/context/permissions.spec.ts.tpl +1 -1
- package/templates/error/refusal.ts.tpl +1 -1
- package/templates/file-upload/handler.spec.ts.tpl +1 -1
- package/templates/init/rules/application.md.tpl +3 -2
- package/templates/init/rules/domain.md.tpl +3 -2
- package/templates/init/rules/infrastructure.md.tpl +1 -0
- package/templates/init/rules/presentation.md.tpl +2 -1
- package/templates/pipeline/knip.json.tpl +1 -1
- package/templates/pipeline/package-scripts.json +1 -1
- package/templates/policy/policy.declared.ts.tpl +1 -1
- package/templates/policy/policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/change-member-roles.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/grant-delegations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/invite-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/read-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/remove-members.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/revoke-delegations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/authorization/revoke-invitations.policy.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/accept-invitation/accept-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/change-member-role/change-member-role.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/deactivate-account/deactivate-account.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/decline-invitation/decline-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/grant-delegation/grant-delegation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/invite-member/invite-member.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/invite-member/invite-member.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/open-organisation/open-organisation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/provision-account/provision-account.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/remove-member/remove-member.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/remove-member/remove-member.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-delegation/revoke-delegation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.command.ts.tpl +1 -1
- package/templates/presets/identity/context/application/commands/revoke-invitation/revoke-invitation.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/queries/search-members/search-members.handler.ts.tpl +1 -1
- package/templates/presets/identity/context/application/queries/search-members/search-members.query.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/above-own-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/account-already-deactivated.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/already-member.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/deactivated-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-not-active.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-period-inverted.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-to-oneself.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-too-long.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/delegation-with-no-right.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/email-not-verified.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-display-name.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-email-address.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-organisation-name.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invalid-organisation-slug.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-expired.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-not-addressed-to-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/invitation-not-pending.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/last-owner.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/not-an-owner.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/organisation-slug-taken.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/own-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/right-not-in-role.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-account.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-delegation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-invitation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-member.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/domain/errors/unknown-organisation.error.named.ts.tpl +1 -1
- package/templates/presets/identity/context/test/worlds/__context__.world.ts.tpl +1 -1
- package/templates/query/handler.spec.buses.ts.tpl +1 -1
- package/templates/query/handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/query/search.handler.declared.ts.tpl +1 -1
- package/templates/query/search.handler.spec.buses.ts.tpl +1 -1
- package/templates/query/search.handler.spec.tsyringe.ts.tpl +1 -1
- package/templates/query/search.handler.ts.tpl +1 -1
- package/dist/generate/place-in-modules.d.ts +0 -16
- package/dist/generate/place-in-modules.d.ts.map +0 -1
- package/dist/generate/place-in-modules.js.map +0 -1
- /package/templates/presets/identity/context/{domain/errors/codes.named.ts.tpl → __context__.codes.named.ts.tpl} +0 -0
- /package/templates/presets/identity/context/{application/authorization/__context__.permissions.ts.tpl → __context__.permissions.ts.tpl} +0 -0
|
@@ -3,7 +3,7 @@ import type { ContextTree } from './context-tree.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Every folder of a context that plays one role, by its path from the project root: the folder
|
|
5
5
|
* of the context itself (`domain/aggregates`) and the same folder in each module of its model
|
|
6
|
-
* (`domain/calendars/aggregates`). A reader that lists a role goes through here, so a file moved
|
|
6
|
+
* (`calendars/domain/aggregates`, or `domain/calendars/aggregates` as 0.86 and 0.87 laid it out). A reader that lists a role goes through here, so a file moved
|
|
7
7
|
* into a module is never lost from what the kit writes about its context.
|
|
8
8
|
*/
|
|
9
9
|
export declare function roleFoldersOf(ws: Workspace, { directory, modules }: ContextTree, folder: string): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-folders-of.d.ts","sourceRoot":"","sources":["../../src/model-modules/role-folders-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"role-folders-of.d.ts","sourceRoot":"","sources":["../../src/model-modules/role-folders-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAY1G"}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { intoModule } from './into-module.js';
|
|
2
|
+
import { EARLIER_MODULE_LAYERS } from './module-layers.js';
|
|
2
3
|
/**
|
|
3
4
|
* Every folder of a context that plays one role, by its path from the project root: the folder
|
|
4
5
|
* of the context itself (`domain/aggregates`) and the same folder in each module of its model
|
|
5
|
-
* (`domain/calendars/aggregates`). A reader that lists a role goes through here, so a file moved
|
|
6
|
+
* (`calendars/domain/aggregates`, or `domain/calendars/aggregates` as 0.86 and 0.87 laid it out). A reader that lists a role goes through here, so a file moved
|
|
6
7
|
* into a module is never lost from what the kit writes about its context.
|
|
7
8
|
*/
|
|
8
9
|
export function roleFoldersOf(ws, { directory, modules }, folder) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.
|
|
12
|
-
.
|
|
10
|
+
// Where a module holds the folder today, and, for one minor version, where 0.86 and 0.87 put it.
|
|
11
|
+
const placed = modules
|
|
12
|
+
.flatMap((module) => [intoModule(module, folder), earlierPlace(module, folder)])
|
|
13
|
+
.filter((candidate) => candidate !== folder);
|
|
14
|
+
return ([folder, ...placed]
|
|
15
|
+
// A folder a move is filling is planned before it is on disk.
|
|
16
|
+
.filter((candidate) => ws.existsAsIs(`${directory}/${candidate}`) || candidate === folder)
|
|
17
|
+
.map((candidate) => `${directory}/${candidate}`));
|
|
18
|
+
}
|
|
19
|
+
/** A folder of `domain/` or `application/` in a module as 0.86 and 0.87 laid it out: `domain/<module>/aggregates`. */
|
|
20
|
+
function earlierPlace(module, folder) {
|
|
21
|
+
const [layer = '', ...rest] = folder.split('/');
|
|
22
|
+
return EARLIER_MODULE_LAYERS.includes(layer) ? [layer, module, ...rest].join('/') : folder;
|
|
13
23
|
}
|
|
14
24
|
//# sourceMappingURL=role-folders-of.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-folders-of.js","sourceRoot":"","sources":["../../src/model-modules/role-folders-of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"role-folders-of.js","sourceRoot":"","sources":["../../src/model-modules/role-folders-of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,EAAa,EAAE,EAAE,SAAS,EAAE,OAAO,EAAe,EAAE,MAAc;IAC9F,iGAAiG;IACjG,MAAM,MAAM,GAAG,OAAO;SACnB,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;SAC/E,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC;IAE/C,OAAO,CACL,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC;QACjB,8DAA8D;SAC7D,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC,IAAI,SAAS,KAAK,MAAM,CAAC;SACzF,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC,CACnD,CAAC;AACJ,CAAC;AAED,sHAAsH;AACtH,SAAS,YAAY,CAAC,MAAc,EAAE,MAAc;IAClD,MAAM,CAAC,KAAK,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEhD,OAAO,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC7F,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The folders a role owns directly under each layer a module
|
|
3
|
-
*
|
|
2
|
+
* The folders a role owns directly under each layer a module holds, read from the canonical tree:
|
|
3
|
+
* a folder of 0.86 and 0.87 directly under `domain/` or `application/` that none owns is a module.
|
|
4
4
|
*/
|
|
5
5
|
export declare const ROLE_FOLDERS: Readonly<Record<string, readonly string[]>>;
|
|
6
6
|
//# sourceMappingURL=role-folders.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ROLES } from '../check/canonical/roles.js';
|
|
2
2
|
import { MODULE_LAYERS } from './module-layers.js';
|
|
3
3
|
/**
|
|
4
|
-
* The folders a role owns directly under each layer a module
|
|
5
|
-
*
|
|
4
|
+
* The folders a role owns directly under each layer a module holds, read from the canonical tree:
|
|
5
|
+
* a folder of 0.86 and 0.87 directly under `domain/` or `application/` that none owns is a module.
|
|
6
6
|
*/
|
|
7
7
|
export const ROLE_FOLDERS = Object.fromEntries(MODULE_LAYERS.map((layer) => [
|
|
8
8
|
layer,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
+
import type { FileMove } from '../file-moves/index.js';
|
|
1
2
|
/** One file taken into a module of the model, both paths from the project root. */
|
|
2
|
-
export
|
|
3
|
-
readonly from: string;
|
|
4
|
-
readonly to: string;
|
|
5
|
-
}
|
|
3
|
+
export type ModuleMove = FileMove;
|
|
6
4
|
//# sourceMappingURL=module-move.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-move.d.ts","sourceRoot":"","sources":["../../src/move-to-module/module-move.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"module-move.d.ts","sourceRoot":"","sources":["../../src/move-to-module/module-move.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,mFAAmF;AACnF,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import type { Config } from '../config/index.js';
|
|
2
|
+
import { type FileMoves } from '../file-moves/index.js';
|
|
2
3
|
import type { Workspace } from '../workspace/index.js';
|
|
3
|
-
import type { ModuleMove } from './module-move.js';
|
|
4
4
|
import { type MoveRequest } from './moves-into-module.js';
|
|
5
5
|
/** What taking files into a module changed. */
|
|
6
|
-
export
|
|
7
|
-
readonly moved: readonly ModuleMove[];
|
|
8
|
-
/** The files whose imports now name the new paths, moved ones included. */
|
|
9
|
-
readonly rewritten: readonly string[];
|
|
10
|
-
}
|
|
6
|
+
export type ModuleMoves = FileMoves;
|
|
11
7
|
/**
|
|
12
8
|
* Takes files of the model and of the use cases of a context into one of its modules, and
|
|
13
9
|
* rewrites every import of them under the source root, `test/` and `scripts/`, by alias or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move-to-module.d.ts","sourceRoot":"","sources":["../../src/move-to-module/move-to-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"move-to-module.d.ts","sourceRoot":"","sources":["../../src/move-to-module/move-to-module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAExE,+CAA+C;AAC/C,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;AAEpC;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,WAAW,CAE7F"}
|
|
@@ -1,40 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { projectSources } from '../refusals/project-sources.js';
|
|
3
|
-
import { withMovedImports } from '../platform-folders/with-moved-imports.js';
|
|
1
|
+
import { moveFiles } from '../file-moves/index.js';
|
|
4
2
|
import { movesIntoModule } from './moves-into-module.js';
|
|
5
|
-
const EXTENSION = /\.(?:ts|tsx|mts)$/;
|
|
6
|
-
const SOURCE = /\.(?:ts|tsx|mts|js|mjs|cjs)$/;
|
|
7
3
|
/**
|
|
8
4
|
* Takes files of the model and of the use cases of a context into one of its modules, and
|
|
9
5
|
* rewrites every import of them under the source root, `test/` and `scripts/`, by alias or
|
|
10
6
|
* relative path, the extension kept as it was written.
|
|
11
7
|
*/
|
|
12
8
|
export function moveToModule(ws, config, request) {
|
|
13
|
-
|
|
14
|
-
const touched = new Set(moved.flatMap((move) => [move.from, move.to]));
|
|
15
|
-
const relocation = {
|
|
16
|
-
roots: aliasRoots(config),
|
|
17
|
-
moved: new Map(moved.map((move) => [move.from.replace(EXTENSION, ''), move.to.replace(EXTENSION, '')])),
|
|
18
|
-
};
|
|
19
|
-
// Every file named moves, whatever its kind; only a source has imports to follow.
|
|
20
|
-
const rewrittenMoved = moved.flatMap((move) => {
|
|
21
|
-
const content = ws.read(move.from) ?? '';
|
|
22
|
-
const next = SOURCE.test(move.from) ? withMovedImports(content, move.from, relocation) : content;
|
|
23
|
-
ws.delete(move.from);
|
|
24
|
-
ws.writeAsIs(move.to, next);
|
|
25
|
-
return next === content ? [] : [move.to];
|
|
26
|
-
});
|
|
27
|
-
const rewrittenOthers = projectSources(ws, config, ['scripts'])
|
|
28
|
-
.filter((file) => !touched.has(file))
|
|
29
|
-
.flatMap((file) => {
|
|
30
|
-
const source = ws.read(file) ?? '';
|
|
31
|
-
const next = withMovedImports(source, file, relocation);
|
|
32
|
-
if (next === source) {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
ws.writeAsIs(file, next);
|
|
36
|
-
return [file];
|
|
37
|
-
});
|
|
38
|
-
return { moved, rewritten: [...rewrittenMoved, ...rewrittenOthers] };
|
|
9
|
+
return moveFiles(ws, config, movesIntoModule(ws, config, request));
|
|
39
10
|
}
|
|
40
11
|
//# sourceMappingURL=move-to-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move-to-module.js","sourceRoot":"","sources":["../../src/move-to-module/move-to-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"move-to-module.js","sourceRoot":"","sources":["../../src/move-to-module/move-to-module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAoB,MAAM,qBAAqB,CAAC;AAKxE;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,EAAa,EAAE,MAAc,EAAE,OAAoB;IAC9E,OAAO,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -8,7 +8,7 @@ export interface MoveRequest {
|
|
|
8
8
|
readonly paths: readonly string[];
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* The files the paths name, a file or a folder of a role of
|
|
11
|
+
* The files the paths name, a file or a folder of a role of a layer or a spec, each with
|
|
12
12
|
* where it goes in the module: the files that stay one per context and the generated
|
|
13
13
|
* declarations stay where they are.
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moves-into-module.d.ts","sourceRoot":"","sources":["../../src/move-to-module/moves-into-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moves-into-module.d.ts","sourceRoot":"","sources":["../../src/move-to-module/moves-into-module.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAYxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,2FAA2F;AAC3F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,UAAU,EAAE,CA6BjG"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { posix } from 'node:path';
|
|
1
2
|
import { CliError } from '../cli-error.js';
|
|
2
3
|
import { isDeclarationsFile } from '../declared/index.js';
|
|
3
4
|
import { filesUnder } from '../generate/files-under.js';
|
|
4
|
-
import { declaredModules, intoModule, isContextLevel, isRoleFolder, moduleSplit } from '../model-modules/index.js';
|
|
5
|
+
import { declaredModules, intoModule, isContextLevel, isRoleFolder, MODULE_LAYERS, MODULE_TEST_FOLDERS, moduleSplit, } from '../model-modules/index.js';
|
|
5
6
|
/**
|
|
6
|
-
* The files the paths name, a file or a folder of a role of
|
|
7
|
+
* The files the paths name, a file or a folder of a role of a layer or a spec, each with
|
|
7
8
|
* where it goes in the module: the files that stay one per context and the generated
|
|
8
9
|
* declarations stay where they are.
|
|
9
10
|
*/
|
|
@@ -16,11 +17,13 @@ export function movesIntoModule(ws, config, request) {
|
|
|
16
17
|
? [relative]
|
|
17
18
|
: filesUnder(ws, `${directory}/${relative}`).map((file) => `${relative}/${file}`);
|
|
18
19
|
if (files.length === 0) {
|
|
19
|
-
throw new CliError(`${directory}/${relative} does not exist.`, 'Name a file or a folder of a role of
|
|
20
|
+
throw new CliError(`${directory}/${relative} does not exist.`, 'Name a file or a folder of a role of a layer, or a spec, relative to the context: domain/aggregates/waitlist.aggregate.ts, application/commands/join-waitlist.');
|
|
20
21
|
}
|
|
21
22
|
return files.flatMap((file) => moveOf(file, placement));
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
// The specs of a moved file go with it, into the module folder of their test folder.
|
|
25
|
+
const specs = specsOf(ws, moves, placement).flatMap((file) => moveOf(file, placement));
|
|
26
|
+
const unique = [...new Map([...moves, ...specs].map((move) => [move.from, move])).values()];
|
|
24
27
|
refuseLosses(ws, unique, placement);
|
|
25
28
|
return unique;
|
|
26
29
|
}
|
|
@@ -47,6 +50,21 @@ function refuseLosses(ws, moves, placement) {
|
|
|
47
50
|
throw new CliError(`Nothing was moved: ${binary.join(', ')} is not a text file.`, 'Move it by hand with git mv, then run the command again without it.');
|
|
48
51
|
}
|
|
49
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* The specs of the context named after a moved production file (`appointment.repository.contract.spec.ts`
|
|
55
|
+
* is of `appointment.repository.ts`), wherever they sit in `test/unit/` and `test/integration/`,
|
|
56
|
+
* relative to the context.
|
|
57
|
+
*/
|
|
58
|
+
function specsOf(ws, moves, { directory, modules }) {
|
|
59
|
+
const names = moves
|
|
60
|
+
.filter((move) => !move.from.slice(directory.length + 1).startsWith('test/'))
|
|
61
|
+
.map((move) => posix.basename(move.from).replace(/\.ts$/, ''));
|
|
62
|
+
return MODULE_TEST_FOLDERS.flatMap((folder) => filesUnder(ws, `${directory}/test/${folder}`).map((file) => `test/${folder}/${file}`)).filter((file) => {
|
|
63
|
+
const stem = posix.basename(file).replace(/\.spec\.ts$/, '');
|
|
64
|
+
const inPlace = moduleSplit(file, modules).module === undefined;
|
|
65
|
+
return inPlace && file.endsWith('.spec.ts') && names.some((name) => stem === name || stem.startsWith(`${name}.`));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
50
68
|
/** The same file of the role in another module, or at the level of the context, a move would make a twin of. */
|
|
51
69
|
function twinsOf(ws, move, { directory, modules, module }) {
|
|
52
70
|
const inContext = move.to.slice(directory.length + 1);
|
|
@@ -59,8 +77,9 @@ function twinsOf(ws, move, { directory, modules, module }) {
|
|
|
59
77
|
function moveOf(file, { context, directory, modules, module }) {
|
|
60
78
|
const { path } = moduleSplit(file, modules);
|
|
61
79
|
const [layer = '', folder = ''] = path.split('/');
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
const inLayer = MODULE_LAYERS.includes(layer) && isRoleFolder(layer, folder);
|
|
81
|
+
if (!inLayer && !(layer === 'test' && MODULE_TEST_FOLDERS.includes(folder))) {
|
|
82
|
+
throw new CliError(`${file} is in no role folder of a layer of "${context}", and in no test/unit/ nor test/integration/.`, 'A module holds the files of the layers of its concepts and their specs: published-language/, the fakes, the builders and the worlds stay at the level of the context.');
|
|
64
83
|
}
|
|
65
84
|
if (isContextLevel(context, path) || isDeclarationsFile(context, file, modules)) {
|
|
66
85
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moves-into-module.js","sourceRoot":"","sources":["../../src/move-to-module/moves-into-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"moves-into-module.js","sourceRoot":"","sources":["../../src/move-to-module/moves-into-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EACL,eAAe,EACf,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAW1B;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,EAAa,EAAE,MAAc,EAAE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AM,EAAE,GAAG,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEpC,OAAO,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,IAAI,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '../config/index.js';
|
|
2
|
+
/** The code lists of every context, as knip is told of them: `<context>.codes.ts` at the root of each. */
|
|
3
|
+
export declare function codeTypesPattern(config: Config): string;
|
|
4
|
+
//# sourceMappingURL=code-types-pattern.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-types-pattern.d.ts","sourceRoot":"","sources":["../../src/refusals/code-types-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,0GAA0G;AAC1G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CODES_FILE } from '../context-files/index.js';
|
|
2
|
+
/** The code lists of every context, as knip is told of them: `<context>.codes.ts` at the root of each. */
|
|
3
|
+
export function codeTypesPattern(config) {
|
|
4
|
+
return `${config.contextsDir}/*/${CODES_FILE.root('*')}`;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=code-types-pattern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-types-pattern.js","sourceRoot":"","sources":["../../src/refusals/code-types-pattern.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,0GAA0G;AAC1G,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC7C,OAAO,GAAG,MAAM,CAAC,WAAW,MAAM,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Config } from '../config/index.js';
|
|
2
2
|
import type { MigrationDraft } from './migration-draft.js';
|
|
3
3
|
/**
|
|
4
|
-
* knip reports the type `<Ctx>Code` of each
|
|
4
|
+
* knip reports the type `<Ctx>Code` of each `<context>.codes.ts` that nothing imports yet, though it is the
|
|
5
5
|
* contract a route or a client reads: `init` tells knip so under the named form, and the migration
|
|
6
6
|
* says it as `init` does. A knip config the migration cannot edit (another file, or not plain
|
|
7
7
|
* JSON) is left to a person.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignore-code-types.d.ts","sourceRoot":"","sources":["../../src/refusals/ignore-code-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ignore-code-types.d.ts","sourceRoot":"","sources":["../../src/refusals/ignore-code-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKxD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAkB3E"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { isRecord } from '../config/values/is-record.js';
|
|
2
2
|
import { formatJson } from '../json/format-json.js';
|
|
3
|
+
import { codeTypesPattern } from './code-types-pattern.js';
|
|
3
4
|
const KNIP_FILE = 'knip.json';
|
|
4
5
|
const ISSUES = 'ignoreIssues';
|
|
5
6
|
/**
|
|
6
|
-
* knip reports the type `<Ctx>Code` of each
|
|
7
|
+
* knip reports the type `<Ctx>Code` of each `<context>.codes.ts` that nothing imports yet, though it is the
|
|
7
8
|
* contract a route or a client reads: `init` tells knip so under the named form, and the migration
|
|
8
9
|
* says it as `init` does. A knip config the migration cannot edit (another file, or not plain
|
|
9
10
|
* JSON) is left to a person.
|
|
10
11
|
*/
|
|
11
12
|
export function ignoreCodeTypes(config, draft) {
|
|
12
|
-
const pattern =
|
|
13
|
+
const pattern = codeTypesPattern(config);
|
|
13
14
|
const text = draft.read(KNIP_FILE);
|
|
14
15
|
const knip = text === undefined ? undefined : parsed(text);
|
|
15
16
|
if (knip !== undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignore-code-types.js","sourceRoot":"","sources":["../../src/refusals/ignore-code-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ignore-code-types.js","sourceRoot":"","sources":["../../src/refusals/ignore-code-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,MAAM,SAAS,GAAG,WAAW,CAAC;AAC9B,MAAM,MAAM,GAAG,cAAc,CAAC;AAE9B;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,KAAqB;IACnE,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE3D,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,EAA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AAC,OAAO,CAAC,CAAC;IAC9B,MAAM,MAAM,GAAc,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,MAAM,OAAO,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAE/D,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC;QAC/B,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,yBAAyB,CAAC,CAAC;IAC9E,MAAM,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC;IAErD,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The path of a source of a context from the contexts directory, without its extension, the way
|
|
3
3
|
* an import of it is matched: `billing/domain/errors/invoice.error` or, in a module of the model,
|
|
4
|
-
* `billing/domain/
|
|
4
|
+
* `billing/invoices/domain/errors/invoice.error`.
|
|
5
5
|
*/
|
|
6
6
|
export declare function pathFromContexts(file: string, context: string): string;
|
|
7
7
|
//# sourceMappingURL=path-from-contexts.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The path of a source of a context from the contexts directory, without its extension, the way
|
|
3
3
|
* an import of it is matched: `billing/domain/errors/invoice.error` or, in a module of the model,
|
|
4
|
-
* `billing/domain/
|
|
4
|
+
* `billing/invoices/domain/errors/invoice.error`.
|
|
5
5
|
*/
|
|
6
6
|
export function pathFromContexts(file, context) {
|
|
7
|
-
return file.slice(file.
|
|
7
|
+
return file.slice(file.indexOf(`/${context}/`) + 1).replace(/\.ts$/, '');
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=path-from-contexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-from-contexts.js","sourceRoot":"","sources":["../../src/refusals/path-from-contexts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,OAAe;IAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"path-from-contexts.js","sourceRoot":"","sources":["../../src/refusals/path-from-contexts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,OAAe;IAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-codes.d.ts","sourceRoot":"","sources":["../../src/refusals/with-codes.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"with-codes.d.ts","sourceRoot":"","sources":["../../src/refusals/with-codes.ts"],"names":[],"mappings":"AAGA,2FAA2F;AAC3F,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAID;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAiB5G"}
|
|
@@ -22,7 +22,7 @@ function boundsOf(text, list, context) {
|
|
|
22
22
|
const opened = new RegExp(`export const ${list}\\s*=\\s*\\{`).exec(text);
|
|
23
23
|
const closed = opened === null ? -1 : text.indexOf('} as const', opened.index);
|
|
24
24
|
if (opened === null || closed === -1) {
|
|
25
|
-
throw new CliError(`The codes of ${context} are not written as \`export const ${list} = { .. } as const\`.`, 'Write
|
|
25
|
+
throw new CliError(`The codes of ${context} are not written as \`export const ${list} = { .. } as const\`.`, 'Write <context>.codes.ts in that form, then run `ddd-ts-kit error-factories --apply` again.');
|
|
26
26
|
}
|
|
27
27
|
return { opened: opened.index, closed };
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-codes.js","sourceRoot":"","sources":["../../src/refusals/with-codes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAQnC,MAAM,KAAK,GAAG,iDAAiD,CAAC;AAEhE;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,MAA0B,EAAE,OAAe,EAAE,OAA6B;IAClG,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC;IAC9C,MAAM,IAAI,GAAG,MAAM,IAAI,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/D,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACzD,MAAM,KAAK,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,MAAM,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"write-refusal-classes.d.ts","sourceRoot":"","sources":["../../src/refusals/write-refusal-classes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAoB5G"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { specifierOf } from '../alias/index.js';
|
|
3
|
+
import { CODES_FILE, contextFileAt } from '../context-files/index.js';
|
|
3
4
|
import { refusalClassFile } from './refusal-class-file.js';
|
|
4
5
|
import { withCodes } from './with-codes.js';
|
|
5
6
|
/**
|
|
@@ -9,12 +10,13 @@ import { withCodes } from './with-codes.js';
|
|
|
9
10
|
export function writeRefusalClasses(config, moves, draft) {
|
|
10
11
|
for (const context of [...new Set(moves.map((move) => move.context))]) {
|
|
11
12
|
// The code list stays one per context; each refusal class is written next to the error it comes from.
|
|
12
|
-
const
|
|
13
|
+
const directory = `${config.contextsDir}/${context}`;
|
|
14
|
+
const codesFile = `${directory}/${contextFileAt(CODES_FILE, context, (relative) => draft.read(`${directory}/${relative}`) !== undefined)}`;
|
|
13
15
|
const own = moves.filter((move) => move.context === context);
|
|
14
16
|
for (const className of [...new Set(own.map((move) => move.className))]) {
|
|
15
17
|
const ofClass = own.filter((move) => move.className === className);
|
|
16
18
|
const [first] = ofClass;
|
|
17
|
-
const file = `${path.posix.dirname(first
|
|
19
|
+
const file = `${first === undefined ? `${directory}/domain/errors` : path.posix.dirname(first.oldFile)}/${first?.classFile ?? ''}.ts`;
|
|
18
20
|
const refusal = { file, className, context, codesSpecifier: specifierOf(config, codesFile), moves: ofClass };
|
|
19
21
|
draft.write(file, refusalClassFile(draft.read(file), refusal));
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-refusal-classes.js","sourceRoot":"","sources":["../../src/refusals/write-refusal-classes.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"write-refusal-classes.js","sourceRoot":"","sources":["../../src/refusals/write-refusal-classes.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAc,EAAE,KAA2B,EAAE,KAAqB;IACpG,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,sGAAsG;QACtG,MAAM,SAAS,GAAG,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,EAAE,CAAC;QACrD,MAAM,SAAS,GAAG,GAAG,SAAS,IAAI,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,IAAI,QAAQ,EAAE,CAAC,KAAK,SAAS,CAAC,EAAE,CAAC;QAC3I,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM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AAC;AACH,CAAC"}
|
package/dist/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAwFxC,wBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,GAAE,EAAc,GAAG,MAAM,CAkCvE"}
|
package/dist/run.js
CHANGED
|
@@ -19,6 +19,7 @@ import { measuresCommand } from './commands/measures.js';
|
|
|
19
19
|
import { mergeTrunkCommand } from './commands/merge-trunk.js';
|
|
20
20
|
import { planWavesCommand } from './commands/plan-waves.js';
|
|
21
21
|
import { moveToModuleCommand } from './commands/move-to-module.js';
|
|
22
|
+
import { contextLayoutCommand } from './commands/context-layout.js';
|
|
22
23
|
import { platformFoldersCommand } from './commands/platform-folders.js';
|
|
23
24
|
import { sdkCommand } from './commands/sdk.js';
|
|
24
25
|
import { statusCommand } from './commands/status.js';
|
|
@@ -68,6 +69,7 @@ const COMMANDS = {
|
|
|
68
69
|
'error-factories': errorFactoriesCommand,
|
|
69
70
|
'value-objects': valueObjectsCommand,
|
|
70
71
|
'platform-folders': platformFoldersCommand,
|
|
72
|
+
'context-layout': contextLayoutCommand,
|
|
71
73
|
'move-to-module': moveToModuleCommand,
|
|
72
74
|
controllers: controllersCommand,
|
|
73
75
|
check: checksCommand,
|
package/dist/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,q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YACN,EAAE,CAAC,GAAG,CAAC,UAAU,KAAK,CAAC,OAAO,YAAY,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QACzD,CAAC;QAED,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAChC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,IAAI,QAAQ,CAAC,oBAAoB,IAAI,IAAI,EAAE,eAAe,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvG,CAAC;AAED,4GAA4G;AAC5G,SAAS,OAAO,CAAC,IAAuB;IACtC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErF,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/E,CAAC;AAED,SAAS,IAAI;IACX,OAAO,cAAc,OAAO;;EAE5B,aAAa,EAAE,EAAE,CAAC;AACpB,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.88.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.88.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ddd-ts-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.88.0",
|
|
4
4
|
"description": "Bootstrap, scaffold and verify Domain-Driven Design (DDD), Clean Architecture and hexagonal TypeScript backends on Node.js: project and code generators, architecture checks, OpenAPI and AsyncAPI documents, for developers and AI coding agents (Claude Code, Codex, GitHub Copilot).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
"clean:packages": "node dist/bin.js check --clean-only ../kernel/src ../validation/src ../http/src ../tracing/src ../di/src ../events/src ../testing/src ../s3/src ../drizzle/src ../knex/src ../prisma/src ../typeorm/src ../aspects/src ../rabbitmq/src ../auth/src ../audit/src ../redis/src ../scheduling/src ../pino/src ../winston/src ../sentry/src ../kafka/src ../nats/src ../eslint-plugin/src"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@ddd-ts-kit/kernel": "^0.
|
|
55
|
+
"@ddd-ts-kit/kernel": "^0.88.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -10,7 +10,7 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
|
|
|
10
10
|
{{/if}}
|
|
11
11
|
import { createTestBuses } from '@ddd-ts-kit/testing';
|
|
12
12
|
{{#if access.protected}}
|
|
13
|
-
import { {{context.camel}}Permissions } from '{{alias.context}}/
|
|
13
|
+
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
14
14
|
{{/if}}
|
|
15
15
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
16
16
|
import { {{name.pascal}}Handler } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.handler{{alias.ext}}';
|
|
@@ -13,7 +13,7 @@ import { anActor } from '@ddd-ts-kit/auth/testing';
|
|
|
13
13
|
{{spec.contextImports}}
|
|
14
14
|
import { platformTestModule } from '{{alias.platform}}/composition/platform-test.module{{alias.ext}}';
|
|
15
15
|
{{#if access.protected}}
|
|
16
|
-
import { {{context.camel}}Permissions } from '{{alias.context}}/
|
|
16
|
+
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
17
17
|
{{/if}}
|
|
18
18
|
import { {{name.pascal}}Command } from '{{alias.context}}/application/commands/{{name.kebab}}/{{name.kebab}}.command{{alias.ext}}';
|
|
19
19
|
{{#if command.hasAggregate}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
@@imports
|
|
2
|
-
import { {{context.camel}}Permissions } from '{{alias.context}}/
|
|
2
|
+
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
3
3
|
@@permission-sets
|
|
4
4
|
{{context.camel}}Permissions,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from '{{tests.module}}';
|
|
2
2
|
import type { Permission } from '@ddd-ts-kit/auth';
|
|
3
|
-
import { {{context.camel}}Permissions } from '{{alias.context}}/
|
|
3
|
+
import { {{context.camel}}Permissions } from '{{alias.context}}/{{context.kebab}}.permissions{{alias.ext}}';
|
|
4
4
|
|
|
5
5
|
describe('The permissions of {{context.kebab}}', () => {
|
|
6
6
|
it('belong to {{context.kebab}}, each under an identifier of its own and with a description', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DomainRefusal } from '@ddd-ts-kit/kernel';
|
|
2
|
-
import { {{codes.list}} } from '{{alias.context}}/
|
|
2
|
+
import { {{codes.list}} } from '{{alias.context}}/{{context.kebab}}.codes{{alias.ext}}';
|
|
3
3
|
|
|
4
4
|
export class {{name.pascal}} extends DomainRefusal {
|
|
5
5
|
readonly code = {{codes.list}}.{{name.pascal}};
|