ddd-ts-kit 0.114.1 → 0.115.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 +360 -0
- package/README.fr.md +40 -29
- package/README.md +38 -27
- package/dist/build/specifier-literals.d.ts.map +1 -1
- package/dist/build/specifier-literals.js +6 -6
- package/dist/build/specifier-literals.js.map +1 -1
- package/dist/check/catalogue/default-severity.d.ts +3 -0
- package/dist/check/catalogue/default-severity.d.ts.map +1 -0
- package/dist/check/catalogue/default-severity.js +8 -0
- package/dist/check/catalogue/default-severity.js.map +1 -0
- package/dist/check/catalogue/delegated-rules.d.ts +2 -0
- package/dist/check/catalogue/delegated-rules.d.ts.map +1 -1
- package/dist/check/catalogue/delegated-rules.js.map +1 -1
- package/dist/check/catalogue/eslint-judged-rules.d.ts +7 -0
- package/dist/check/catalogue/eslint-judged-rules.d.ts.map +1 -0
- package/dist/check/catalogue/eslint-judged-rules.js +64 -0
- package/dist/check/catalogue/eslint-judged-rules.js.map +1 -0
- package/dist/check/catalogue/eslint-only-rules.d.ts +8 -4
- package/dist/check/catalogue/eslint-only-rules.d.ts.map +1 -1
- package/dist/check/catalogue/eslint-only-rules.js +23 -1
- package/dist/check/catalogue/eslint-only-rules.js.map +1 -1
- package/dist/check/catalogue/formatter-rule.d.ts +1 -0
- package/dist/check/catalogue/formatter-rule.d.ts.map +1 -1
- package/dist/check/catalogue/formatter-rule.js +1 -0
- package/dist/check/catalogue/formatter-rule.js.map +1 -1
- package/dist/check/catalogue/rule-ids.d.ts.map +1 -1
- package/dist/check/catalogue/rule-ids.js +2 -2
- package/dist/check/catalogue/rule-ids.js.map +1 -1
- package/dist/check/catalogue/rules.d.ts +1 -0
- package/dist/check/catalogue/rules.d.ts.map +1 -1
- package/dist/check/catalogue/rules.js +9 -1
- package/dist/check/catalogue/rules.js.map +1 -1
- package/dist/check/catalogue/severity-of.d.ts +7 -0
- package/dist/check/catalogue/severity-of.d.ts.map +1 -0
- package/dist/check/catalogue/severity-of.js +7 -0
- package/dist/check/catalogue/severity-of.js.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts +3 -0
- package/dist/check/catalogue/standalone-rule-ids.d.ts.map +1 -0
- package/dist/check/catalogue/standalone-rule-ids.js +4 -0
- package/dist/check/catalogue/standalone-rule-ids.js.map +1 -0
- package/dist/check/commands/baseline-command.d.ts +6 -0
- package/dist/check/commands/baseline-command.d.ts.map +1 -0
- package/dist/check/commands/baseline-command.js +43 -0
- package/dist/check/commands/baseline-command.js.map +1 -0
- package/dist/check/commands/changed-since.d.ts +6 -0
- package/dist/check/commands/changed-since.d.ts.map +1 -0
- package/dist/check/commands/changed-since.js +14 -0
- package/dist/check/commands/changed-since.js.map +1 -0
- package/dist/check/commands/check-command.d.ts +2 -2
- package/dist/check/commands/check-command.d.ts.map +1 -1
- package/dist/check/commands/check-command.js +24 -91
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/commands/check-file-command.d.ts +1 -2
- package/dist/check/commands/check-file-command.d.ts.map +1 -1
- package/dist/check/commands/check-file-command.js +29 -26
- package/dist/check/commands/check-file-command.js.map +1 -1
- package/dist/check/commands/check-formats.d.ts +4 -0
- package/dist/check/commands/check-formats.d.ts.map +1 -0
- package/dist/check/commands/check-formats.js +3 -0
- package/dist/check/commands/check-formats.js.map +1 -0
- package/dist/check/commands/clean-only-command.d.ts +6 -0
- package/dist/check/commands/clean-only-command.d.ts.map +1 -0
- package/dist/check/commands/clean-only-command.js +51 -0
- package/dist/check/commands/clean-only-command.js.map +1 -0
- package/dist/check/commands/explain-command.d.ts +1 -2
- package/dist/check/commands/explain-command.d.ts.map +1 -1
- package/dist/check/commands/explain-command.js +26 -18
- package/dist/check/commands/explain-command.js.map +1 -1
- package/dist/check/commands/print-check.d.ts +12 -0
- package/dist/check/commands/print-check.d.ts.map +1 -0
- package/dist/check/commands/print-check.js +8 -0
- package/dist/check/commands/print-check.js.map +1 -0
- package/dist/check/commands/refuse-missing-paths.d.ts +4 -0
- package/dist/check/commands/refuse-missing-paths.d.ts.map +1 -0
- package/dist/check/commands/refuse-missing-paths.js +11 -0
- package/dist/check/commands/refuse-missing-paths.js.map +1 -0
- package/dist/check/commands/rules-command.d.ts +1 -2
- package/dist/check/commands/rules-command.d.ts.map +1 -1
- package/dist/check/commands/rules-command.js +17 -20
- package/dist/check/commands/rules-command.js.map +1 -1
- package/dist/check/commands/self-check.d.ts +1 -3
- package/dist/check/commands/self-check.d.ts.map +1 -1
- package/dist/check/commands/self-check.js +25 -19
- package/dist/check/commands/self-check.js.map +1 -1
- package/dist/check/domain-events/event-handlers-of.d.ts +2 -2
- package/dist/check/domain-events/event-handlers-of.d.ts.map +1 -1
- package/dist/check/domain-events/event-handlers-of.js +1 -2
- package/dist/check/domain-events/event-handlers-of.js.map +1 -1
- package/dist/check/engine/run-check.d.ts.map +1 -1
- package/dist/check/engine/run-check.js +17 -11
- package/dist/check/engine/run-check.js.map +1 -1
- package/dist/check/errors/builds-through-factories.d.ts +2 -2
- package/dist/check/errors/builds-through-factories.d.ts.map +1 -1
- package/dist/check/errors/builds-through-factories.js.map +1 -1
- package/dist/check/errors/kit-error-codes.d.ts.map +1 -1
- package/dist/check/errors/kit-error-codes.js +2 -0
- package/dist/check/errors/kit-error-codes.js.map +1 -1
- package/dist/check/explain/documented-rule.d.ts +1 -1
- package/dist/check/explain/documented-rule.d.ts.map +1 -1
- package/dist/check/explain/documented-rule.js +4 -7
- package/dist/check/explain/documented-rule.js.map +1 -1
- package/dist/check/fixtures/alias-declarations.js +2 -2
- package/dist/check/fixtures/alias-declarations.js.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/config-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/config-fixtures.js +29 -0
- package/dist/check/fixtures/config-fixtures.js.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/declarations-fixtures.js +4 -0
- package/dist/check/fixtures/declarations-fixtures.js.map +1 -1
- package/dist/check/fixtures/domain-events-fixtures.js +5 -5
- package/dist/check/fixtures/domain-events-fixtures.js.map +1 -1
- package/dist/check/fixtures/purity-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/purity-fixtures.js +25 -0
- package/dist/check/fixtures/purity-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-prisma-fixtures.js +5 -0
- package/dist/check/fixtures/tenancy-prisma-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js +1 -0
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
- package/dist/check/governance/records-of.d.ts +4 -0
- package/dist/check/governance/records-of.d.ts.map +1 -0
- package/dist/check/governance/records-of.js +5 -0
- package/dist/check/governance/records-of.js.map +1 -0
- package/dist/check/language/glossaries-of.d.ts +4 -0
- package/dist/check/language/glossaries-of.d.ts.map +1 -0
- package/dist/check/language/glossaries-of.js +5 -0
- package/dist/check/language/glossaries-of.js.map +1 -0
- package/dist/check/language/glossaries.d.ts +0 -3
- package/dist/check/language/glossaries.d.ts.map +1 -1
- package/dist/check/language/glossaries.js +0 -9
- package/dist/check/language/glossaries.js.map +1 -1
- package/dist/check/migrations/drizzle-migration-folder.d.ts +4 -0
- package/dist/check/migrations/drizzle-migration-folder.d.ts.map +1 -0
- package/dist/check/migrations/drizzle-migration-folder.js +7 -0
- package/dist/check/migrations/drizzle-migration-folder.js.map +1 -0
- package/dist/check/migrations/migrations-in.d.ts +6 -0
- package/dist/check/migrations/migrations-in.d.ts.map +1 -0
- package/dist/check/migrations/migrations-in.js +28 -0
- package/dist/check/migrations/migrations-in.js.map +1 -0
- package/dist/check/migrations/read-migration-folder.d.ts.map +1 -1
- package/dist/check/migrations/read-migration-folder.js +2 -34
- package/dist/check/migrations/read-migration-folder.js.map +1 -1
- package/dist/check/model/finding.d.ts +7 -0
- package/dist/check/model/finding.d.ts.map +1 -1
- package/dist/check/model/project.d.ts +17 -6
- package/dist/check/model/project.d.ts.map +1 -1
- package/dist/check/model/resolved-import.d.ts +3 -7
- package/dist/check/model/resolved-import.d.ts.map +1 -1
- package/dist/check/model/rule.d.ts +36 -7
- package/dist/check/model/rule.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.d.ts +2 -2
- package/dist/check/ports/class-declaring.d.ts.map +1 -1
- package/dist/check/ports/class-declaring.js +1 -2
- package/dist/check/ports/class-declaring.js.map +1 -1
- package/dist/check/privacy/judged-only-when-on.d.ts +3 -0
- package/dist/check/privacy/judged-only-when-on.d.ts.map +1 -0
- package/dist/check/privacy/judged-only-when-on.js +3 -0
- package/dist/check/privacy/judged-only-when-on.js.map +1 -0
- package/dist/check/project/assemble-project.d.ts +7 -2
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +10 -8
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/project/load-source-file.d.ts.map +1 -1
- package/dist/check/project/load-source-file.js +1 -7
- package/dist/check/project/load-source-file.js.map +1 -1
- package/dist/check/project/source-reader.d.ts +7 -0
- package/dist/check/project/source-reader.d.ts.map +1 -0
- package/dist/check/project/source-reader.js +29 -0
- package/dist/check/project/source-reader.js.map +1 -0
- package/dist/check/purity/ambient-mentions.d.ts +8 -0
- package/dist/check/purity/ambient-mentions.d.ts.map +1 -0
- package/dist/check/purity/ambient-mentions.js +81 -0
- package/dist/check/purity/ambient-mentions.js.map +1 -0
- package/dist/check/purity/define-purity-rule.d.ts +9 -4
- package/dist/check/purity/define-purity-rule.d.ts.map +1 -1
- package/dist/check/purity/define-purity-rule.js +23 -16
- package/dist/check/purity/define-purity-rule.js.map +1 -1
- package/dist/check/purity/forbidden-named-imports.d.ts +6 -0
- package/dist/check/purity/forbidden-named-imports.d.ts.map +1 -0
- package/dist/check/purity/forbidden-named-imports.js +17 -0
- package/dist/check/purity/forbidden-named-imports.js.map +1 -0
- package/dist/check/purity/forbidden-use.d.ts +6 -0
- package/dist/check/purity/forbidden-use.d.ts.map +1 -0
- package/dist/check/purity/forbidden-use.js +2 -0
- package/dist/check/purity/forbidden-use.js.map +1 -0
- package/dist/check/purity/forbidden-uses.d.ts +6 -0
- package/dist/check/purity/forbidden-uses.d.ts.map +1 -0
- package/dist/check/purity/forbidden-uses.js +57 -0
- package/dist/check/purity/forbidden-uses.js.map +1 -0
- package/dist/check/purity/is-member-declaration.d.ts +8 -0
- package/dist/check/purity/is-member-declaration.d.ts.map +1 -0
- package/dist/check/purity/is-member-declaration.js +32 -0
- package/dist/check/purity/is-member-declaration.js.map +1 -0
- package/dist/check/purity/keys-taken-from.d.ts +9 -0
- package/dist/check/purity/keys-taken-from.d.ts.map +1 -0
- package/dist/check/purity/keys-taken-from.js +26 -0
- package/dist/check/purity/keys-taken-from.js.map +1 -0
- package/dist/check/purity/local-scopes.d.ts +9 -0
- package/dist/check/purity/local-scopes.d.ts.map +1 -0
- package/dist/check/purity/local-scopes.js +66 -0
- package/dist/check/purity/local-scopes.js.map +1 -0
- package/dist/check/purity/member-after.d.ts +4 -0
- package/dist/check/purity/member-after.d.ts.map +1 -0
- package/dist/check/purity/member-after.js +14 -0
- package/dist/check/purity/member-after.js.map +1 -0
- package/dist/check/purity/mention.d.ts +7 -0
- package/dist/check/purity/mention.d.ts.map +1 -0
- package/dist/check/purity/mention.js +2 -0
- package/dist/check/purity/mention.js.map +1 -0
- package/dist/check/purity/reference/forbidden-call.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-call.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-call.js +5 -0
- package/dist/check/purity/reference/forbidden-call.js.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-construction.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-construction.js +8 -0
- package/dist/check/purity/reference/forbidden-construction.js.map +1 -0
- package/dist/check/purity/reference/forbidden-member.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-member.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-member.js +9 -0
- package/dist/check/purity/reference/forbidden-member.js.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts +4 -0
- package/dist/check/purity/reference/forbidden-named-import.d.ts.map +1 -0
- package/dist/check/purity/reference/forbidden-named-import.js +7 -0
- package/dist/check/purity/reference/forbidden-named-import.js.map +1 -0
- package/dist/check/purity/reference/global-objects.d.ts +3 -0
- package/dist/check/purity/reference/global-objects.d.ts.map +1 -0
- package/dist/check/purity/reference/global-objects.js +3 -0
- package/dist/check/purity/reference/global-objects.js.map +1 -0
- package/dist/check/purity/reference/purity-table.d.ts +21 -0
- package/dist/check/purity/reference/purity-table.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-table.js +2 -0
- package/dist/check/purity/reference/purity-table.js.map +1 -0
- package/dist/check/purity/reference/purity-tables.d.ts +48 -0
- package/dist/check/purity/reference/purity-tables.d.ts.map +1 -0
- package/dist/check/purity/reference/purity-tables.js +68 -0
- package/dist/check/purity/reference/purity-tables.js.map +1 -0
- package/dist/check/purity/taken-key.d.ts +6 -0
- package/dist/check/purity/taken-key.d.ts.map +1 -0
- package/dist/check/purity/taken-key.js +2 -0
- package/dist/check/purity/taken-key.js.map +1 -0
- package/dist/check/purity/text/body-after.d.ts +7 -0
- package/dist/check/purity/text/body-after.d.ts.map +1 -0
- package/dist/check/purity/text/body-after.js +49 -0
- package/dist/check/purity/text/body-after.js.map +1 -0
- package/dist/check/purity/text/holder-of.d.ts +4 -0
- package/dist/check/purity/text/holder-of.d.ts.map +1 -0
- package/dist/check/purity/text/holder-of.js +17 -0
- package/dist/check/purity/text/holder-of.js.map +1 -0
- package/dist/check/purity/text/significant-after.d.ts +3 -0
- package/dist/check/purity/text/significant-after.d.ts.map +1 -0
- package/dist/check/purity/text/significant-after.js +9 -0
- package/dist/check/purity/text/significant-after.js.map +1 -0
- package/dist/check/purity/text/significant-before.d.ts +3 -0
- package/dist/check/purity/text/significant-before.d.ts.map +1 -0
- package/dist/check/purity/text/significant-before.js +9 -0
- package/dist/check/purity/text/significant-before.js.map +1 -0
- package/dist/check/purity/text/span.d.ts +6 -0
- package/dist/check/purity/text/span.d.ts.map +1 -0
- package/dist/check/purity/text/span.js +2 -0
- package/dist/check/purity/text/span.js.map +1 -0
- package/dist/check/purity/text/word-before.d.ts +3 -0
- package/dist/check/purity/text/word-before.d.ts.map +1 -0
- package/dist/check/purity/text/word-before.js +6 -0
- package/dist/check/purity/text/word-before.js.map +1 -0
- package/dist/check/read-models/list-findings.d.ts.map +1 -1
- package/dist/check/read-models/list-findings.js +3 -4
- package/dist/check/read-models/list-findings.js.map +1 -1
- package/dist/check/rules/aspects-outside-in.d.ts +2 -2
- package/dist/check/rules/aspects-outside-in.d.ts.map +1 -1
- package/dist/check/rules/aspects-outside-in.js +21 -14
- package/dist/check/rules/aspects-outside-in.js.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +2 -2
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js +18 -1
- package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -1
- package/dist/check/rules/authz-actor-explicit.d.ts +2 -2
- package/dist/check/rules/authz-actor-explicit.d.ts.map +1 -1
- package/dist/check/rules/authz-actor-explicit.js +16 -4
- package/dist/check/rules/authz-actor-explicit.js.map +1 -1
- package/dist/check/rules/authz-declared.d.ts +2 -2
- package/dist/check/rules/authz-declared.d.ts.map +1 -1
- package/dist/check/rules/authz-declared.js +17 -3
- package/dist/check/rules/authz-declared.js.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.d.ts +2 -2
- package/dist/check/rules/authz-fields-by-schema.d.ts.map +1 -1
- package/dist/check/rules/authz-fields-by-schema.js +14 -4
- package/dist/check/rules/authz-fields-by-schema.js.map +1 -1
- package/dist/check/rules/authz-granted.d.ts +2 -2
- package/dist/check/rules/authz-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-granted.js +17 -1
- package/dist/check/rules/authz-granted.js.map +1 -1
- package/dist/check/rules/authz-in-application.d.ts +2 -2
- package/dist/check/rules/authz-in-application.d.ts.map +1 -1
- package/dist/check/rules/authz-in-application.js +19 -3
- package/dist/check/rules/authz-in-application.js.map +1 -1
- package/dist/check/rules/authz-policy-asked.d.ts +2 -2
- package/dist/check/rules/authz-policy-asked.d.ts.map +1 -1
- package/dist/check/rules/authz-policy-asked.js +15 -1
- package/dist/check/rules/authz-policy-asked.js.map +1 -1
- package/dist/check/rules/authz-resource-modelled.d.ts +2 -2
- package/dist/check/rules/authz-resource-modelled.d.ts.map +1 -1
- package/dist/check/rules/authz-resource-modelled.js +19 -1
- package/dist/check/rules/authz-resource-modelled.js.map +1 -1
- package/dist/check/rules/authz-scope-narrows.d.ts +2 -2
- package/dist/check/rules/authz-scope-narrows.d.ts.map +1 -1
- package/dist/check/rules/authz-scope-narrows.js +15 -1
- package/dist/check/rules/authz-scope-narrows.js.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.d.ts +2 -2
- package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -1
- package/dist/check/rules/authz-system-actor-granted.js +13 -1
- package/dist/check/rules/authz-system-actor-granted.js.map +1 -1
- package/dist/check/rules/clean-blank-lines.d.ts +2 -2
- package/dist/check/rules/clean-blank-lines.d.ts.map +1 -1
- package/dist/check/rules/clean-blank-lines.js +18 -6
- package/dist/check/rules/clean-blank-lines.js.map +1 -1
- package/dist/check/rules/clean-braces.d.ts +2 -2
- package/dist/check/rules/clean-braces.d.ts.map +1 -1
- package/dist/check/rules/clean-braces.js +26 -8
- package/dist/check/rules/clean-braces.js.map +1 -1
- package/dist/check/rules/clean-file-size.d.ts +2 -2
- package/dist/check/rules/clean-file-size.d.ts.map +1 -1
- package/dist/check/rules/clean-file-size.js +10 -4
- package/dist/check/rules/clean-file-size.js.map +1 -1
- package/dist/check/rules/clean-function-size.d.ts +2 -2
- package/dist/check/rules/clean-function-size.d.ts.map +1 -1
- package/dist/check/rules/clean-function-size.js +19 -20
- package/dist/check/rules/clean-function-size.js.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.d.ts +2 -2
- package/dist/check/rules/clean-no-commented-out-code.d.ts.map +1 -1
- package/dist/check/rules/clean-no-commented-out-code.js +18 -14
- package/dist/check/rules/clean-no-commented-out-code.js.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.d.ts +2 -2
- package/dist/check/rules/clean-no-escape-hatch.d.ts.map +1 -1
- package/dist/check/rules/clean-no-escape-hatch.js +24 -17
- package/dist/check/rules/clean-no-escape-hatch.js.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.d.ts +2 -2
- package/dist/check/rules/clean-no-flag-argument.d.ts.map +1 -1
- package/dist/check/rules/clean-no-flag-argument.js +10 -4
- package/dist/check/rules/clean-no-flag-argument.js.map +1 -1
- package/dist/check/rules/clean-no-hash-private.d.ts +2 -2
- package/dist/check/rules/clean-no-hash-private.d.ts.map +1 -1
- package/dist/check/rules/clean-no-hash-private.js +22 -4
- package/dist/check/rules/clean-no-hash-private.js.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.d.ts +2 -2
- package/dist/check/rules/clean-no-noise-comment.d.ts.map +1 -1
- package/dist/check/rules/clean-no-noise-comment.js +12 -3
- package/dist/check/rules/clean-no-noise-comment.js.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.d.ts +2 -2
- package/dist/check/rules/clean-one-export-per-file.d.ts.map +1 -1
- package/dist/check/rules/clean-one-export-per-file.js +24 -11
- package/dist/check/rules/clean-one-export-per-file.js.map +1 -1
- package/dist/check/rules/clean-stepdown.d.ts +2 -2
- package/dist/check/rules/clean-stepdown.d.ts.map +1 -1
- package/dist/check/rules/clean-stepdown.js +16 -10
- package/dist/check/rules/clean-stepdown.js.map +1 -1
- package/dist/check/rules/composition-only-in-module.d.ts +2 -2
- package/dist/check/rules/composition-only-in-module.d.ts.map +1 -1
- package/dist/check/rules/composition-only-in-module.js +18 -4
- package/dist/check/rules/composition-only-in-module.js.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.d.ts +2 -2
- package/dist/check/rules/config-rule-off-everywhere.d.ts.map +1 -1
- package/dist/check/rules/config-rule-off-everywhere.js +9 -1
- package/dist/check/rules/config-rule-off-everywhere.js.map +1 -1
- package/dist/check/rules/config-suppression-needs-reason.d.ts +4 -0
- package/dist/check/rules/config-suppression-needs-reason.d.ts.map +1 -0
- package/dist/check/rules/config-suppression-needs-reason.js +26 -0
- package/dist/check/rules/config-suppression-needs-reason.js.map +1 -0
- package/dist/check/rules/config-unused-suppression.d.ts +3 -0
- package/dist/check/rules/config-unused-suppression.d.ts.map +1 -0
- package/dist/check/rules/config-unused-suppression.js +48 -0
- package/dist/check/rules/config-unused-suppression.js.map +1 -0
- package/dist/check/rules/config-valid.d.ts +2 -2
- package/dist/check/rules/config-valid.d.ts.map +1 -1
- package/dist/check/rules/config-valid.js +11 -1
- package/dist/check/rules/config-valid.js.map +1 -1
- package/dist/check/rules/context-declared-relationship.d.ts +2 -2
- package/dist/check/rules/context-declared-relationship.d.ts.map +1 -1
- package/dist/check/rules/context-declared-relationship.js +20 -16
- package/dist/check/rules/context-declared-relationship.js.map +1 -1
- package/dist/check/rules/context-extractable.d.ts +2 -2
- package/dist/check/rules/context-extractable.d.ts.map +1 -1
- package/dist/check/rules/context-extractable.js +23 -12
- package/dist/check/rules/context-extractable.js.map +1 -1
- package/dist/check/rules/context-no-cycle.d.ts +2 -2
- package/dist/check/rules/context-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/context-no-cycle.js +9 -1
- package/dist/check/rules/context-no-cycle.js.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.d.ts +2 -2
- package/dist/check/rules/context-published-language-is-a-contract.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-is-a-contract.js +19 -14
- package/dist/check/rules/context-published-language-is-a-contract.js.map +1 -1
- package/dist/check/rules/context-published-language-only.d.ts +2 -2
- package/dist/check/rules/context-published-language-only.d.ts.map +1 -1
- package/dist/check/rules/context-published-language-only.js +23 -18
- package/dist/check/rules/context-published-language-only.js.map +1 -1
- package/dist/check/rules/declarations-barrel-current.d.ts +2 -2
- package/dist/check/rules/declarations-barrel-current.d.ts.map +1 -1
- package/dist/check/rules/declarations-barrel-current.js +29 -3
- package/dist/check/rules/declarations-barrel-current.js.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.d.ts +2 -2
- package/dist/check/rules/declarations-constructor-injection.d.ts.map +1 -1
- package/dist/check/rules/declarations-constructor-injection.js +28 -12
- package/dist/check/rules/declarations-constructor-injection.js.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.d.ts +2 -2
- package/dist/check/rules/declarations-port-adapter-wired.d.ts.map +1 -1
- package/dist/check/rules/declarations-port-adapter-wired.js +15 -1
- package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
- package/dist/check/rules/declarations-role-declared.d.ts +2 -2
- package/dist/check/rules/declarations-role-declared.d.ts.map +1 -1
- package/dist/check/rules/declarations-role-declared.js +20 -9
- package/dist/check/rules/declarations-role-declared.js.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts +2 -2
- package/dist/check/rules/domain-events-dispatched-on-save.d.ts.map +1 -1
- package/dist/check/rules/domain-events-dispatched-on-save.js +30 -17
- package/dist/check/rules/domain-events-dispatched-on-save.js.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts +2 -2
- package/dist/check/rules/domain-events-transactional-before-commit.d.ts.map +1 -1
- package/dist/check/rules/domain-events-transactional-before-commit.js +40 -2
- package/dist/check/rules/domain-events-transactional-before-commit.js.map +1 -1
- package/dist/check/rules/domain-value-object-class.d.ts +2 -2
- package/dist/check/rules/domain-value-object-class.d.ts.map +1 -1
- package/dist/check/rules/domain-value-object-class.js +37 -10
- package/dist/check/rules/domain-value-object-class.js.map +1 -1
- package/dist/check/rules/errors-code-listed.d.ts +2 -2
- package/dist/check/rules/errors-code-listed.d.ts.map +1 -1
- package/dist/check/rules/errors-code-listed.js +30 -1
- package/dist/check/rules/errors-code-listed.js.map +1 -1
- package/dist/check/rules/errors-code-unique.d.ts +2 -2
- package/dist/check/rules/errors-code-unique.d.ts.map +1 -1
- package/dist/check/rules/errors-code-unique.js +15 -1
- package/dist/check/rules/errors-code-unique.js.map +1 -1
- package/dist/check/rules/errors-known-code.d.ts +2 -2
- package/dist/check/rules/errors-known-code.d.ts.map +1 -1
- package/dist/check/rules/errors-known-code.js +11 -1
- package/dist/check/rules/errors-known-code.js.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.d.ts +2 -2
- package/dist/check/rules/event-sourcing-past-tense.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-past-tense.js +11 -6
- package/dist/check/rules/event-sourcing-past-tense.js.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts +2 -2
- package/dist/check/rules/event-sourcing-projection-never-appends.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-projection-never-appends.js +16 -3
- package/dist/check/rules/event-sourcing-projection-never-appends.js.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts +2 -2
- package/dist/check/rules/event-sourcing-state-in-apply.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-state-in-apply.js +19 -3
- package/dist/check/rules/event-sourcing-state-in-apply.js.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts +2 -2
- package/dist/check/rules/event-sourcing-store-behind-repository.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-store-behind-repository.js +22 -15
- package/dist/check/rules/event-sourcing-store-behind-repository.js.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts +2 -2
- package/dist/check/rules/event-sourcing-upcaster-required.d.ts.map +1 -1
- package/dist/check/rules/event-sourcing-upcaster-required.js +32 -6
- package/dist/check/rules/event-sourcing-upcaster-required.js.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.d.ts +2 -2
- package/dist/check/rules/events-consumer-idempotent.d.ts.map +1 -1
- package/dist/check/rules/events-consumer-idempotent.js +19 -2
- package/dist/check/rules/events-consumer-idempotent.js.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.d.ts +2 -2
- package/dist/check/rules/events-defined-in-published-language.d.ts.map +1 -1
- package/dist/check/rules/events-defined-in-published-language.js +38 -12
- package/dist/check/rules/events-defined-in-published-language.js.map +1 -1
- package/dist/check/rules/events-name-declared-once.d.ts +2 -2
- package/dist/check/rules/events-name-declared-once.d.ts.map +1 -1
- package/dist/check/rules/events-name-declared-once.js +19 -14
- package/dist/check/rules/events-name-declared-once.js.map +1 -1
- package/dist/check/rules/events-name-format.d.ts +2 -2
- package/dist/check/rules/events-name-format.d.ts.map +1 -1
- package/dist/check/rules/events-name-format.js +18 -15
- package/dist/check/rules/events-name-format.js.map +1 -1
- package/dist/check/rules/events-outbox-required.d.ts +2 -2
- package/dist/check/rules/events-outbox-required.d.ts.map +1 -1
- package/dist/check/rules/events-outbox-required.js +15 -4
- package/dist/check/rules/events-outbox-required.js.map +1 -1
- package/dist/check/rules/files-port-not-connector.d.ts +2 -2
- package/dist/check/rules/files-port-not-connector.d.ts.map +1 -1
- package/dist/check/rules/files-port-not-connector.js +17 -6
- package/dist/check/rules/files-port-not-connector.js.map +1 -1
- package/dist/check/rules/files-upload-content-rule.d.ts +2 -2
- package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -1
- package/dist/check/rules/files-upload-content-rule.js +24 -3
- package/dist/check/rules/files-upload-content-rule.js.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.d.ts +2 -2
- package/dist/check/rules/governance-recorded-deviation.d.ts.map +1 -1
- package/dist/check/rules/governance-recorded-deviation.js +22 -14
- package/dist/check/rules/governance-recorded-deviation.js.map +1 -1
- package/dist/check/rules/imports-alias-declared.d.ts +2 -2
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +21 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts +2 -2
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +16 -4
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/imports-extension.d.ts +2 -2
- package/dist/check/rules/imports-extension.d.ts.map +1 -1
- package/dist/check/rules/imports-extension.js +16 -3
- package/dist/check/rules/imports-extension.js.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.d.ts +2 -2
- package/dist/check/rules/language-declared-vocabulary.d.ts.map +1 -1
- package/dist/check/rules/language-declared-vocabulary.js +12 -1
- package/dist/check/rules/language-declared-vocabulary.js.map +1 -1
- package/dist/check/rules/language-glossary-term.d.ts +2 -2
- package/dist/check/rules/language-glossary-term.d.ts.map +1 -1
- package/dist/check/rules/language-glossary-term.js +28 -26
- package/dist/check/rules/language-glossary-term.js.map +1 -1
- package/dist/check/rules/language-no-technical-name.d.ts +2 -2
- package/dist/check/rules/language-no-technical-name.d.ts.map +1 -1
- package/dist/check/rules/language-no-technical-name.js +25 -22
- package/dist/check/rules/language-no-technical-name.js.map +1 -1
- package/dist/check/rules/layer-application-inward.d.ts +2 -2
- package/dist/check/rules/layer-application-inward.d.ts.map +1 -1
- package/dist/check/rules/layer-application-inward.js +25 -15
- package/dist/check/rules/layer-application-inward.js.map +1 -1
- package/dist/check/rules/layer-domain-purity.d.ts +2 -2
- package/dist/check/rules/layer-domain-purity.d.ts.map +1 -1
- package/dist/check/rules/layer-domain-purity.js +19 -9
- package/dist/check/rules/layer-domain-purity.js.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts +2 -2
- package/dist/check/rules/layer-infrastructure-no-presentation.d.ts.map +1 -1
- package/dist/check/rules/layer-infrastructure-no-presentation.js +19 -14
- package/dist/check/rules/layer-infrastructure-no-presentation.js.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts +2 -2
- package/dist/check/rules/layer-presentation-no-infrastructure.d.ts.map +1 -1
- package/dist/check/rules/layer-presentation-no-infrastructure.js +20 -15
- package/dist/check/rules/layer-presentation-no-infrastructure.js.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.d.ts +2 -2
- package/dist/check/rules/lifecycle-status-through-machine.d.ts.map +1 -1
- package/dist/check/rules/lifecycle-status-through-machine.js +18 -2
- package/dist/check/rules/lifecycle-status-through-machine.js.map +1 -1
- package/dist/check/rules/module-complete.d.ts +2 -2
- package/dist/check/rules/module-complete.d.ts.map +1 -1
- package/dist/check/rules/module-complete.js +17 -1
- package/dist/check/rules/module-complete.js.map +1 -1
- package/dist/check/rules/module-declared.d.ts +2 -2
- package/dist/check/rules/module-declared.d.ts.map +1 -1
- package/dist/check/rules/module-declared.js +14 -1
- package/dist/check/rules/module-declared.js.map +1 -1
- package/dist/check/rules/module-no-cycle.d.ts +2 -2
- package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/module-no-cycle.js +12 -1
- package/dist/check/rules/module-no-cycle.js.map +1 -1
- package/dist/check/rules/naming-business-name.d.ts +2 -2
- package/dist/check/rules/naming-business-name.d.ts.map +1 -1
- package/dist/check/rules/naming-business-name.js +19 -10
- package/dist/check/rules/naming-business-name.js.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.d.ts +2 -2
- package/dist/check/rules/naming-one-concept-per-file.d.ts.map +1 -1
- package/dist/check/rules/naming-one-concept-per-file.js +22 -9
- package/dist/check/rules/naming-one-concept-per-file.js.map +1 -1
- package/dist/check/rules/naming-search-not-list.d.ts +2 -2
- package/dist/check/rules/naming-search-not-list.d.ts.map +1 -1
- package/dist/check/rules/naming-search-not-list.js +20 -8
- package/dist/check/rules/naming-search-not-list.js.map +1 -1
- package/dist/check/rules/naming-suffix.d.ts +2 -2
- package/dist/check/rules/naming-suffix.d.ts.map +1 -1
- package/dist/check/rules/naming-suffix.js +21 -14
- package/dist/check/rules/naming-suffix.js.map +1 -1
- package/dist/check/rules/nest-controllers-current.d.ts +2 -2
- package/dist/check/rules/nest-controllers-current.d.ts.map +1 -1
- package/dist/check/rules/nest-controllers-current.js +12 -1
- package/dist/check/rules/nest-controllers-current.js.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts +2 -2
- package/dist/check/rules/nest-no-parallel-pipeline.d.ts.map +1 -1
- package/dist/check/rules/nest-no-parallel-pipeline.js +27 -11
- package/dist/check/rules/nest-no-parallel-pipeline.js.map +1 -1
- package/dist/check/rules/persistence-migration-history.d.ts +2 -2
- package/dist/check/rules/persistence-migration-history.d.ts.map +1 -1
- package/dist/check/rules/persistence-migration-history.js +13 -1
- package/dist/check/rules/persistence-migration-history.js.map +1 -1
- package/dist/check/rules/persistence-no-file-content.d.ts +2 -2
- package/dist/check/rules/persistence-no-file-content.d.ts.map +1 -1
- package/dist/check/rules/persistence-no-file-content.js +15 -1
- package/dist/check/rules/persistence-no-file-content.js.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.d.ts +2 -2
- package/dist/check/rules/persistence-primary-key-order.d.ts.map +1 -1
- package/dist/check/rules/persistence-primary-key-order.js +9 -1
- package/dist/check/rules/persistence-primary-key-order.js.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.d.ts +2 -2
- package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.js +20 -3
- package/dist/check/rules/persistence-read-model-listed.js.map +1 -1
- package/dist/check/rules/ports-abstract-class.d.ts +2 -2
- package/dist/check/rules/ports-abstract-class.d.ts.map +1 -1
- package/dist/check/rules/ports-abstract-class.js +33 -20
- package/dist/check/rules/ports-abstract-class.js.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.d.ts +2 -2
- package/dist/check/rules/ports-implements-never-extends.d.ts.map +1 -1
- package/dist/check/rules/ports-implements-never-extends.js +25 -14
- package/dist/check/rules/ports-implements-never-extends.js.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.d.ts +2 -2
- package/dist/check/rules/ports-no-concrete-dependency.d.ts.map +1 -1
- package/dist/check/rules/ports-no-concrete-dependency.js +23 -5
- package/dist/check/rules/ports-no-concrete-dependency.js.map +1 -1
- package/dist/check/rules/ports-no-token-constant.d.ts +2 -2
- package/dist/check/rules/ports-no-token-constant.d.ts.map +1 -1
- package/dist/check/rules/ports-no-token-constant.js +20 -3
- package/dist/check/rules/ports-no-token-constant.js.map +1 -1
- package/dist/check/rules/ports-value-import.d.ts +2 -2
- package/dist/check/rules/ports-value-import.d.ts.map +1 -1
- package/dist/check/rules/ports-value-import.js +23 -12
- package/dist/check/rules/ports-value-import.js.map +1 -1
- package/dist/check/rules/privacy-declared-field.d.ts +2 -2
- package/dist/check/rules/privacy-declared-field.d.ts.map +1 -1
- package/dist/check/rules/privacy-declared-field.js +18 -1
- package/dist/check/rules/privacy-declared-field.js.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts +2 -2
- package/dist/check/rules/privacy-erasure-reaches-copies.d.ts.map +1 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js +12 -1
- package/dist/check/rules/privacy-erasure-reaches-copies.js.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.d.ts +2 -2
- package/dist/check/rules/privacy-event-payload-declared.d.ts.map +1 -1
- package/dist/check/rules/privacy-event-payload-declared.js +17 -1
- package/dist/check/rules/privacy-event-payload-declared.js.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts +2 -2
- package/dist/check/rules/privacy-no-personal-data-in-logs.d.ts.map +1 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js +8 -1
- package/dist/check/rules/privacy-no-personal-data-in-logs.js.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.d.ts +2 -2
- package/dist/check/rules/privacy-snapshot-sealed.d.ts.map +1 -1
- package/dist/check/rules/privacy-snapshot-sealed.js +16 -1
- package/dist/check/rules/privacy-snapshot-sealed.js.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.d.ts +2 -2
- package/dist/check/rules/privacy-subject-is-opaque.d.ts.map +1 -1
- package/dist/check/rules/privacy-subject-is-opaque.js +8 -1
- package/dist/check/rules/privacy-subject-is-opaque.js.map +1 -1
- package/dist/check/rules/process-sends-commands-only.d.ts +2 -2
- package/dist/check/rules/process-sends-commands-only.d.ts.map +1 -1
- package/dist/check/rules/process-sends-commands-only.js +18 -3
- package/dist/check/rules/process-sends-commands-only.js.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.d.ts.map +1 -1
- package/dist/check/rules/purity-no-ambient-randomness.js +5 -29
- package/dist/check/rules/purity-no-ambient-randomness.js.map +1 -1
- package/dist/check/rules/purity-no-environment.d.ts +1 -1
- package/dist/check/rules/purity-no-environment.d.ts.map +1 -1
- package/dist/check/rules/purity-no-environment.js +5 -37
- package/dist/check/rules/purity-no-environment.js.map +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts +1 -1
- package/dist/check/rules/purity-no-system-clock.d.ts.map +1 -1
- package/dist/check/rules/purity-no-system-clock.js +5 -14
- package/dist/check/rules/purity-no-system-clock.js.map +1 -1
- package/dist/check/rules/scheduling-job-name.d.ts +2 -2
- package/dist/check/rules/scheduling-job-name.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-name.js +18 -8
- package/dist/check/rules/scheduling-job-name.js.map +1 -1
- package/dist/check/rules/scheduling-job-registered.d.ts +2 -2
- package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-registered.js +24 -1
- package/dist/check/rules/scheduling-job-registered.js.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts +2 -2
- package/dist/check/rules/scheduling-job-triggers-use-case.d.ts.map +1 -1
- package/dist/check/rules/scheduling-job-triggers-use-case.js +36 -10
- package/dist/check/rules/scheduling-job-triggers-use-case.js.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.d.ts +2 -2
- package/dist/check/rules/scheduling-tenancy-declared.d.ts.map +1 -1
- package/dist/check/rules/scheduling-tenancy-declared.js +10 -6
- package/dist/check/rules/scheduling-tenancy-declared.js.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.d.ts +2 -2
- package/dist/check/rules/schema-no-duplicate-shape.d.ts.map +1 -1
- package/dist/check/rules/schema-no-duplicate-shape.js +14 -1
- package/dist/check/rules/schema-no-duplicate-shape.js.map +1 -1
- package/dist/check/rules/schema-presentation-only.d.ts +2 -2
- package/dist/check/rules/schema-presentation-only.d.ts.map +1 -1
- package/dist/check/rules/schema-presentation-only.js +17 -4
- package/dist/check/rules/schema-presentation-only.js.map +1 -1
- package/dist/check/rules/search-store-from-platform.d.ts +2 -2
- package/dist/check/rules/search-store-from-platform.d.ts.map +1 -1
- package/dist/check/rules/search-store-from-platform.js +23 -3
- package/dist/check/rules/search-store-from-platform.js.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.d.ts +2 -2
- package/dist/check/rules/standard-no-parallel-interface.d.ts.map +1 -1
- package/dist/check/rules/standard-no-parallel-interface.js +19 -4
- package/dist/check/rules/standard-no-parallel-interface.js.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.d.ts +2 -2
- package/dist/check/rules/tenancy-scoped-statement.d.ts.map +1 -1
- package/dist/check/rules/tenancy-scoped-statement.js +45 -6
- package/dist/check/rules/tenancy-scoped-statement.js.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.d.ts +2 -2
- package/dist/check/rules/test-acceptance-black-box.d.ts.map +1 -1
- package/dist/check/rules/test-acceptance-black-box.js +11 -1
- package/dist/check/rules/test-acceptance-black-box.js.map +1 -1
- package/dist/check/rules/test-builder-required.d.ts +2 -2
- package/dist/check/rules/test-builder-required.d.ts.map +1 -1
- package/dist/check/rules/test-builder-required.js +8 -1
- package/dist/check/rules/test-builder-required.js.map +1 -1
- package/dist/check/rules/test-coverage-governed.d.ts +2 -2
- package/dist/check/rules/test-coverage-governed.d.ts.map +1 -1
- package/dist/check/rules/test-coverage-governed.js +20 -5
- package/dist/check/rules/test-coverage-governed.js.map +1 -1
- package/dist/check/rules/test-helper-placed.d.ts +2 -2
- package/dist/check/rules/test-helper-placed.d.ts.map +1 -1
- package/dist/check/rules/test-helper-placed.js +20 -16
- package/dist/check/rules/test-helper-placed.js.map +1 -1
- package/dist/check/rules/test-mutation-governed.d.ts +2 -2
- package/dist/check/rules/test-mutation-governed.d.ts.map +1 -1
- package/dist/check/rules/test-mutation-governed.js +13 -1
- package/dist/check/rules/test-mutation-governed.js.map +1 -1
- package/dist/check/rules/test-no-mocks.d.ts +2 -2
- package/dist/check/rules/test-no-mocks.d.ts.map +1 -1
- package/dist/check/rules/test-no-mocks.js +23 -18
- package/dist/check/rules/test-no-mocks.js.map +1 -1
- package/dist/check/rules/test-spec-required.d.ts +2 -2
- package/dist/check/rules/test-spec-required.d.ts.map +1 -1
- package/dist/check/rules/test-spec-required.js +7 -1
- package/dist/check/rules/test-spec-required.js.map +1 -1
- package/dist/check/rules/tracing-platform-only.d.ts +2 -2
- package/dist/check/rules/tracing-platform-only.d.ts.map +1 -1
- package/dist/check/rules/tracing-platform-only.js +20 -14
- package/dist/check/rules/tracing-platform-only.js.map +1 -1
- package/dist/check/rules/tree-closed.d.ts +2 -2
- package/dist/check/rules/tree-closed.d.ts.map +1 -1
- package/dist/check/rules/tree-closed.js +12 -1
- package/dist/check/rules/tree-closed.js.map +1 -1
- package/dist/check/rules/tree-context-doc.d.ts +2 -2
- package/dist/check/rules/tree-context-doc.d.ts.map +1 -1
- package/dist/check/rules/tree-context-doc.js +7 -1
- package/dist/check/rules/tree-context-doc.js.map +1 -1
- package/dist/check/rules/tree-documented-paths.d.ts +2 -2
- package/dist/check/rules/tree-documented-paths.d.ts.map +1 -1
- package/dist/check/rules/tree-documented-paths.js +7 -1
- package/dist/check/rules/tree-documented-paths.js.map +1 -1
- package/dist/check/scan/find-imports.js +6 -5
- package/dist/check/scan/find-imports.js.map +1 -1
- package/dist/check/scan/found-statement.d.ts +4 -1
- package/dist/check/scan/found-statement.d.ts.map +1 -1
- package/dist/check/scan/lexer.d.ts +1 -0
- package/dist/check/scan/lexer.d.ts.map +1 -1
- package/dist/check/scan/lexer.js +20 -5
- package/dist/check/scan/lexer.js.map +1 -1
- package/dist/check/scan/statements-of.d.ts +9 -0
- package/dist/check/scan/statements-of.d.ts.map +1 -0
- package/dist/check/scan/statements-of.js +61 -0
- package/dist/check/scan/statements-of.js.map +1 -0
- package/dist/check/schemas/holds-schemas.d.ts +2 -2
- package/dist/check/schemas/holds-schemas.d.ts.map +1 -1
- package/dist/check/schemas/holds-schemas.js.map +1 -1
- package/dist/check/schemas/shares-schemas.d.ts +2 -2
- package/dist/check/schemas/shares-schemas.d.ts.map +1 -1
- package/dist/check/schemas/shares-schemas.js.map +1 -1
- package/dist/check/support/binding-place.d.ts +2 -2
- package/dist/check/support/binding-place.d.ts.map +1 -1
- package/dist/check/support/binding-place.js.map +1 -1
- package/dist/check/support/is-declared-style.d.ts +2 -2
- package/dist/check/support/is-declared-style.d.ts.map +1 -1
- package/dist/check/support/is-declared-style.js.map +1 -1
- package/dist/check/support/once-per-project.d.ts +8 -0
- package/dist/check/support/once-per-project.d.ts.map +1 -0
- package/dist/check/support/once-per-project.js +18 -0
- package/dist/check/support/once-per-project.js.map +1 -0
- package/dist/check/support/path-in-context.d.ts +2 -2
- package/dist/check/support/path-in-context.d.ts.map +1 -1
- package/dist/check/support/path-in-context.js.map +1 -1
- package/dist/check/support/per-file.d.ts +4 -1
- package/dist/check/support/per-file.d.ts.map +1 -1
- package/dist/check/support/per-file.js +21 -2
- package/dist/check/support/per-file.js.map +1 -1
- package/dist/check/support/reporter.d.ts +2 -2
- package/dist/check/support/reporter.d.ts.map +1 -1
- package/dist/check/support/reporter.js.map +1 -1
- package/dist/check/support/source-declaring.d.ts +2 -2
- package/dist/check/support/source-declaring.d.ts.map +1 -1
- package/dist/check/support/source-declaring.js +1 -2
- package/dist/check/support/source-declaring.js.map +1 -1
- package/dist/check/support/to-violations.d.ts +1 -0
- package/dist/check/support/to-violations.d.ts.map +1 -1
- package/dist/check/support/to-violations.js +5 -1
- package/dist/check/support/to-violations.js.map +1 -1
- package/dist/check/suppressions/find-suppressions.d.ts +9 -2
- package/dist/check/suppressions/find-suppressions.d.ts.map +1 -1
- package/dist/check/suppressions/find-suppressions.js +30 -7
- package/dist/check/suppressions/find-suppressions.js.map +1 -1
- package/dist/check/suppressions/idle-suppression.d.ts +7 -0
- package/dist/check/suppressions/idle-suppression.d.ts.map +1 -0
- package/dist/check/suppressions/idle-suppression.js +2 -0
- package/dist/check/suppressions/idle-suppression.js.map +1 -0
- package/dist/check/suppressions/silencing.d.ts +19 -0
- package/dist/check/suppressions/silencing.d.ts.map +1 -0
- package/dist/check/suppressions/silencing.js +32 -0
- package/dist/check/suppressions/silencing.js.map +1 -0
- package/dist/check/tenancy/prisma-unscoped.d.ts.map +1 -1
- package/dist/check/tenancy/prisma-unscoped.js +3 -1
- package/dist/check/tenancy/prisma-unscoped.js.map +1 -1
- package/dist/check/tenancy/saves-without-tenant.d.ts +4 -0
- package/dist/check/tenancy/saves-without-tenant.d.ts.map +1 -0
- package/dist/check/tenancy/saves-without-tenant.js +6 -0
- package/dist/check/tenancy/saves-without-tenant.js.map +1 -0
- package/dist/commands/acceptance.d.ts +1 -2
- package/dist/commands/acceptance.d.ts.map +1 -1
- package/dist/commands/acceptance.js +25 -30
- package/dist/commands/acceptance.js.map +1 -1
- package/dist/commands/affected.d.ts +1 -2
- package/dist/commands/affected.d.ts.map +1 -1
- package/dist/commands/affected.js +23 -19
- package/dist/commands/affected.js.map +1 -1
- package/dist/commands/arguments-error.d.ts +11 -1
- package/dist/commands/arguments-error.d.ts.map +1 -1
- package/dist/commands/arguments-error.js +15 -1
- package/dist/commands/arguments-error.js.map +1 -1
- package/dist/commands/arguments.d.ts +87 -10
- package/dist/commands/arguments.d.ts.map +1 -1
- package/dist/commands/arguments.js +95 -18
- package/dist/commands/arguments.js.map +1 -1
- package/dist/commands/build-aliases.d.ts +1 -2
- package/dist/commands/build-aliases.d.ts.map +1 -1
- package/dist/commands/build-aliases.js +16 -14
- package/dist/commands/build-aliases.js.map +1 -1
- package/dist/commands/checks.d.ts +7 -3
- package/dist/commands/checks.d.ts.map +1 -1
- package/dist/commands/checks.js +16 -2
- package/dist/commands/checks.js.map +1 -1
- package/dist/commands/cited.d.ts +1 -2
- package/dist/commands/cited.d.ts.map +1 -1
- package/dist/commands/cited.js +32 -28
- package/dist/commands/cited.js.map +1 -1
- package/dist/commands/command.d.ts +81 -1
- package/dist/commands/command.d.ts.map +1 -1
- package/dist/commands/command.js +31 -1
- package/dist/commands/command.js.map +1 -1
- package/dist/commands/commit-size.d.ts +1 -2
- package/dist/commands/commit-size.d.ts.map +1 -1
- package/dist/commands/commit-size.js +16 -12
- package/dist/commands/commit-size.js.map +1 -1
- package/dist/commands/context-layout.d.ts +1 -2
- package/dist/commands/context-layout.d.ts.map +1 -1
- package/dist/commands/context-layout.js +30 -25
- package/dist/commands/context-layout.js.map +1 -1
- package/dist/commands/controllers.d.ts +1 -2
- package/dist/commands/controllers.d.ts.map +1 -1
- package/dist/commands/controllers.js +34 -29
- package/dist/commands/controllers.js.map +1 -1
- package/dist/commands/define-tool-command.d.ts +18 -0
- package/dist/commands/define-tool-command.d.ts.map +1 -0
- package/dist/commands/define-tool-command.js +19 -0
- package/dist/commands/define-tool-command.js.map +1 -0
- package/dist/commands/depcruise-config.d.ts +1 -2
- package/dist/commands/depcruise-config.d.ts.map +1 -1
- package/dist/commands/depcruise-config.js +34 -30
- package/dist/commands/depcruise-config.js.map +1 -1
- package/dist/commands/describe.d.ts +1 -2
- package/dist/commands/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +14 -10
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/digest.d.ts +1 -2
- package/dist/commands/digest.d.ts.map +1 -1
- package/dist/commands/digest.js +17 -13
- package/dist/commands/digest.js.map +1 -1
- package/dist/commands/docs.d.ts +1 -2
- package/dist/commands/docs.d.ts.map +1 -1
- package/dist/commands/docs.js +29 -25
- package/dist/commands/docs.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -2
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +18 -13
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/drizzle-generate.d.ts +1 -2
- package/dist/commands/drizzle-generate.d.ts.map +1 -1
- package/dist/commands/drizzle-generate.js +19 -10
- package/dist/commands/drizzle-generate.js.map +1 -1
- package/dist/commands/error-factories.d.ts +1 -2
- package/dist/commands/error-factories.d.ts.map +1 -1
- package/dist/commands/error-factories.js +28 -30
- package/dist/commands/error-factories.js.map +1 -1
- package/dist/commands/generate.d.ts +2 -2
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +27 -15
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/holding-the-lock.d.ts +23 -0
- package/dist/commands/holding-the-lock.d.ts.map +1 -0
- package/dist/commands/holding-the-lock.js +28 -0
- package/dist/commands/holding-the-lock.js.map +1 -0
- package/dist/commands/init.d.ts +1 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +42 -25
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/knex-generate.d.ts +1 -2
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +20 -12
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/lint.d.ts +1 -2
- package/dist/commands/lint.d.ts.map +1 -1
- package/dist/commands/lint.js +61 -39
- package/dist/commands/lint.js.map +1 -1
- package/dist/commands/list.d.ts +1 -2
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +10 -7
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/measures.d.ts +1 -2
- package/dist/commands/measures.d.ts.map +1 -1
- package/dist/commands/measures.js +20 -20
- package/dist/commands/measures.js.map +1 -1
- package/dist/commands/merge-trunk.d.ts +1 -2
- package/dist/commands/merge-trunk.d.ts.map +1 -1
- package/dist/commands/merge-trunk.js +33 -26
- package/dist/commands/merge-trunk.js.map +1 -1
- package/dist/commands/move-to-module.d.ts +1 -2
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +50 -46
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/mutation.d.ts +1 -2
- package/dist/commands/mutation.d.ts.map +1 -1
- package/dist/commands/mutation.js +20 -16
- package/dist/commands/mutation.js.map +1 -1
- package/dist/commands/option-usage.d.ts +12 -0
- package/dist/commands/option-usage.d.ts.map +1 -0
- package/dist/commands/option-usage.js +13 -0
- package/dist/commands/option-usage.js.map +1 -0
- package/dist/commands/plan-waves.d.ts +1 -2
- package/dist/commands/plan-waves.d.ts.map +1 -1
- package/dist/commands/plan-waves.js +18 -14
- package/dist/commands/plan-waves.js.map +1 -1
- package/dist/commands/platform-folders.d.ts +1 -2
- package/dist/commands/platform-folders.d.ts.map +1 -1
- package/dist/commands/platform-folders.js +25 -21
- package/dist/commands/platform-folders.js.map +1 -1
- package/dist/commands/prisma-client.d.ts +1 -2
- package/dist/commands/prisma-client.d.ts.map +1 -1
- package/dist/commands/prisma-client.js +17 -14
- package/dist/commands/prisma-client.js.map +1 -1
- package/dist/commands/prisma-generate.d.ts +1 -2
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +28 -20
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/refuse-second-name.d.ts +7 -0
- package/dist/commands/refuse-second-name.d.ts.map +1 -0
- package/dist/commands/refuse-second-name.js +12 -0
- package/dist/commands/refuse-second-name.js.map +1 -0
- package/dist/commands/sdk.d.ts +1 -2
- package/dist/commands/sdk.d.ts.map +1 -1
- package/dist/commands/sdk.js +18 -14
- package/dist/commands/sdk.js.map +1 -1
- package/dist/commands/status.d.ts +1 -2
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +26 -22
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/stories.d.ts +1 -2
- package/dist/commands/stories.d.ts.map +1 -1
- package/dist/commands/stories.js +10 -7
- package/dist/commands/stories.js.map +1 -1
- package/dist/commands/story-check.d.ts +1 -2
- package/dist/commands/story-check.d.ts.map +1 -1
- package/dist/commands/story-check.js +15 -11
- package/dist/commands/story-check.js.map +1 -1
- package/dist/commands/story-scope.d.ts +1 -2
- package/dist/commands/story-scope.d.ts.map +1 -1
- package/dist/commands/story-scope.js +28 -35
- package/dist/commands/story-scope.js.map +1 -1
- package/dist/commands/story.d.ts +1 -2
- package/dist/commands/story.d.ts.map +1 -1
- package/dist/commands/story.js +17 -23
- package/dist/commands/story.js.map +1 -1
- package/dist/commands/todo.d.ts +1 -2
- package/dist/commands/todo.d.ts.map +1 -1
- package/dist/commands/todo.js +22 -18
- package/dist/commands/todo.js.map +1 -1
- package/dist/commands/tsc.d.ts +8 -0
- package/dist/commands/tsc.d.ts.map +1 -0
- package/dist/commands/tsc.js +49 -0
- package/dist/commands/tsc.js.map +1 -0
- package/dist/commands/typeorm-generate.d.ts +1 -2
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +34 -29
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/usage-line.d.ts +18 -0
- package/dist/commands/usage-line.d.ts.map +1 -0
- package/dist/commands/usage-line.js +16 -0
- package/dist/commands/usage-line.js.map +1 -0
- package/dist/commands/value-objects.d.ts +1 -2
- package/dist/commands/value-objects.d.ts.map +1 -1
- package/dist/commands/value-objects.js +23 -19
- package/dist/commands/value-objects.js.map +1 -1
- package/dist/commands/verify-merge.d.ts +1 -2
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +27 -23
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/commands/verify-slice.d.ts +1 -2
- package/dist/commands/verify-slice.d.ts.map +1 -1
- package/dist/commands/verify-slice.js +19 -15
- package/dist/commands/verify-slice.js.map +1 -1
- package/dist/commands/with-modes.d.ts +10 -0
- package/dist/commands/with-modes.d.ts.map +1 -0
- package/dist/commands/with-modes.js +56 -0
- package/dist/commands/with-modes.js.map +1 -0
- package/dist/commands/worker-scope.d.ts +1 -2
- package/dist/commands/worker-scope.d.ts.map +1 -1
- package/dist/commands/worker-scope.js +35 -27
- package/dist/commands/worker-scope.js.map +1 -1
- package/dist/commands/worktree.d.ts +1 -2
- package/dist/commands/worktree.d.ts.map +1 -1
- package/dist/commands/worktree.js +23 -19
- package/dist/commands/worktree.js.map +1 -1
- package/dist/commands.d.ts +8 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +94 -0
- package/dist/commands.js.map +1 -0
- package/dist/commit/changed-files.d.ts +8 -0
- package/dist/commit/changed-files.d.ts.map +1 -0
- package/dist/commit/changed-files.js +26 -0
- package/dist/commit/changed-files.js.map +1 -0
- package/dist/config/add-upstreams-to-config-text.d.ts +4 -0
- package/dist/config/add-upstreams-to-config-text.d.ts.map +1 -0
- package/dist/config/add-upstreams-to-config-text.js +17 -0
- package/dist/config/add-upstreams-to-config-text.js.map +1 -0
- package/dist/docs/write-behaviour.js +2 -1
- package/dist/docs/write-behaviour.js.map +1 -1
- package/dist/docs/write-code-owners.js +1 -1
- package/dist/docs/write-code-owners.js.map +1 -1
- package/dist/docs/write-docs.d.ts.map +1 -1
- package/dist/docs/write-docs.js +6 -2
- package/dist/docs/write-docs.js.map +1 -1
- package/dist/docs/write-personal-events.js +1 -1
- package/dist/docs/write-personal-events.js.map +1 -1
- package/dist/docs/write-privacy-register.js +1 -1
- package/dist/docs/write-privacy-register.js.map +1 -1
- package/dist/doctor/install-script-findings.d.ts.map +1 -1
- package/dist/doctor/install-script-findings.js +2 -1
- package/dist/doctor/install-script-findings.js.map +1 -1
- package/dist/doctor/override-findings.d.ts.map +1 -1
- package/dist/doctor/override-findings.js +3 -1
- package/dist/doctor/override-findings.js.map +1 -1
- package/dist/generate/apply-wiring.js +1 -1
- package/dist/generate/apply-wiring.js.map +1 -1
- package/dist/generate/concept-kind.d.ts +23 -0
- package/dist/generate/concept-kind.d.ts.map +1 -0
- package/dist/generate/concept-kind.js +26 -0
- package/dist/generate/concept-kind.js.map +1 -0
- package/dist/generate/define-kind.d.ts +18 -0
- package/dist/generate/define-kind.d.ts.map +1 -0
- package/dist/generate/define-kind.js +24 -0
- package/dist/generate/define-kind.js.map +1 -0
- package/dist/generate/errors/add-factory.js +2 -2
- package/dist/generate/errors/add-factory.js.map +1 -1
- package/dist/generate/errors/refusal-class-name.d.ts.map +1 -1
- package/dist/generate/errors/refusal-class-name.js +10 -2
- package/dist/generate/errors/refusal-class-name.js.map +1 -1
- package/dist/generate/errors/static-methods.d.ts +1 -1
- package/dist/generate/errors/static-methods.d.ts.map +1 -1
- package/dist/generate/errors/static-methods.js +3 -2
- package/dist/generate/errors/static-methods.js.map +1 -1
- package/dist/generate/generate-arguments.d.ts.map +1 -1
- package/dist/generate/generate-arguments.js +2 -7
- package/dist/generate/generate-arguments.js.map +1 -1
- package/dist/generate/generate-options-on.d.ts +8 -0
- package/dist/generate/generate-options-on.d.ts.map +1 -0
- package/dist/generate/generate-options-on.js +13 -0
- package/dist/generate/generate-options-on.js.map +1 -0
- package/dist/generate/generate-options.d.ts +8 -179
- package/dist/generate/generate-options.d.ts.map +1 -1
- package/dist/generate/generate-options.js +24 -54
- package/dist/generate/generate-options.js.map +1 -1
- package/dist/generate/grant-permission.d.ts.map +1 -1
- package/dist/generate/grant-permission.js +27 -48
- package/dist/generate/grant-permission.js.map +1 -1
- package/dist/generate/held-to-glossary.d.ts +4 -4
- package/dist/generate/held-to-glossary.d.ts.map +1 -1
- package/dist/generate/held-to-glossary.js +5 -6
- package/dist/generate/held-to-glossary.js.map +1 -1
- package/dist/generate/kind-help.d.ts.map +1 -1
- package/dist/generate/kind-help.js +2 -4
- package/dist/generate/kind-help.js.map +1 -1
- package/dist/generate/kind-in.d.ts.map +1 -1
- package/dist/generate/kind-in.js +3 -3
- package/dist/generate/kind-in.js.map +1 -1
- package/dist/generate/kind-options.d.ts +10 -0
- package/dist/generate/kind-options.d.ts.map +1 -0
- package/dist/generate/kind-options.js +6 -0
- package/dist/generate/kind-options.js.map +1 -0
- package/dist/generate/kind.d.ts +31 -6
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acceptance-kind.js +6 -2
- package/dist/generate/kinds/acceptance-kind.js.map +1 -1
- package/dist/generate/kinds/acl-kind.d.ts +1 -2
- package/dist/generate/kinds/acl-kind.d.ts.map +1 -1
- package/dist/generate/kinds/acl-kind.js +11 -10
- package/dist/generate/kinds/acl-kind.js.map +1 -1
- package/dist/generate/kinds/adapter-kind.d.ts +1 -2
- package/dist/generate/kinds/adapter-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adapter-kind.js +12 -9
- package/dist/generate/kinds/adapter-kind.js.map +1 -1
- package/dist/generate/kinds/adr-kind.d.ts.map +1 -1
- package/dist/generate/kinds/adr-kind.js +11 -2
- package/dist/generate/kinds/adr-kind.js.map +1 -1
- package/dist/generate/kinds/aggregate-kind.d.ts +1 -2
- package/dist/generate/kinds/aggregate-kind.d.ts.map +1 -1
- package/dist/generate/kinds/aggregate-kind.js +8 -11
- package/dist/generate/kinds/aggregate-kind.js.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts +2 -0
- package/dist/generate/kinds/ask-policy-in-generated-use-case.d.ts.map +1 -1
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js +20 -4
- package/dist/generate/kinds/ask-policy-in-generated-use-case.js.map +1 -1
- package/dist/generate/kinds/background-job-kind.d.ts +1 -2
- package/dist/generate/kinds/background-job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/background-job-kind.js +9 -12
- package/dist/generate/kinds/background-job-kind.js.map +1 -1
- package/dist/generate/kinds/builder-kind.d.ts +1 -2
- package/dist/generate/kinds/builder-kind.d.ts.map +1 -1
- package/dist/generate/kinds/builder-kind.js +7 -9
- package/dist/generate/kinds/builder-kind.js.map +1 -1
- package/dist/generate/kinds/command-context.d.ts +2 -2
- package/dist/generate/kinds/command-context.d.ts.map +1 -1
- package/dist/generate/kinds/command-context.js +10 -4
- package/dist/generate/kinds/command-context.js.map +1 -1
- package/dist/generate/kinds/command-kind.d.ts +1 -2
- package/dist/generate/kinds/command-kind.d.ts.map +1 -1
- package/dist/generate/kinds/command-kind.js +23 -12
- package/dist/generate/kinds/command-kind.js.map +1 -1
- package/dist/generate/kinds/context-kind.d.ts.map +1 -1
- package/dist/generate/kinds/context-kind.js +22 -2
- package/dist/generate/kinds/context-kind.js.map +1 -1
- package/dist/generate/kinds/declare-table.d.ts +1 -11
- package/dist/generate/kinds/declare-table.d.ts.map +1 -1
- package/dist/generate/kinds/declare-table.js +2 -132
- package/dist/generate/kinds/declare-table.js.map +1 -1
- package/dist/generate/kinds/domain-error-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-error-kind.js +14 -11
- package/dist/generate/kinds/domain-error-kind.js.map +1 -1
- package/dist/generate/kinds/domain-event-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-event-kind.js +8 -11
- package/dist/generate/kinds/domain-event-kind.js.map +1 -1
- package/dist/generate/kinds/domain-service-kind.d.ts +1 -2
- package/dist/generate/kinds/domain-service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/domain-service-kind.js +8 -22
- package/dist/generate/kinds/domain-service-kind.js.map +1 -1
- package/dist/generate/kinds/e2e/held-scenarios.d.ts +8 -0
- package/dist/generate/kinds/e2e/held-scenarios.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/held-scenarios.js +18 -0
- package/dist/generate/kinds/e2e/held-scenarios.js.map +1 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts +2 -0
- package/dist/generate/kinds/e2e/reaction-of.d.ts.map +1 -1
- package/dist/generate/kinds/e2e/reaction-of.js +29 -15
- package/dist/generate/kinds/e2e/reaction-of.js.map +1 -1
- package/dist/generate/kinds/e2e/still-refusing.d.ts +10 -0
- package/dist/generate/kinds/e2e/still-refusing.d.ts.map +1 -0
- package/dist/generate/kinds/e2e/still-refusing.js +22 -0
- package/dist/generate/kinds/e2e/still-refusing.js.map +1 -0
- package/dist/generate/kinds/e2e-kind.d.ts +1 -2
- package/dist/generate/kinds/e2e-kind.d.ts.map +1 -1
- package/dist/generate/kinds/e2e-kind.js +30 -11
- package/dist/generate/kinds/e2e-kind.js.map +1 -1
- package/dist/generate/kinds/entity-kind.d.ts +1 -2
- package/dist/generate/kinds/entity-kind.d.ts.map +1 -1
- package/dist/generate/kinds/entity-kind.js +8 -22
- package/dist/generate/kinds/entity-kind.js.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/erasure-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/erasure-handler-kind.js +7 -9
- package/dist/generate/kinds/erasure-handler-kind.js.map +1 -1
- package/dist/generate/kinds/error-kind.d.ts +1 -2
- package/dist/generate/kinds/error-kind.d.ts.map +1 -1
- package/dist/generate/kinds/error-kind.js +18 -10
- package/dist/generate/kinds/error-kind.js.map +1 -1
- package/dist/generate/kinds/event-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/event-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/event-handler-kind.js +12 -11
- package/dist/generate/kinds/event-handler-kind.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts +1 -2
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +20 -11
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/form-kind.d.ts +1 -2
- package/dist/generate/kinds/form-kind.d.ts.map +1 -1
- package/dist/generate/kinds/form-kind.js +7 -9
- package/dist/generate/kinds/form-kind.js.map +1 -1
- package/dist/generate/kinds/gateway-kind.d.ts +1 -2
- package/dist/generate/kinds/gateway-kind.d.ts.map +1 -1
- package/dist/generate/kinds/gateway-kind.js +25 -19
- package/dist/generate/kinds/gateway-kind.js.map +1 -1
- package/dist/generate/kinds/generate-context.d.ts.map +1 -1
- package/dist/generate/kinds/generate-context.js +75 -9
- package/dist/generate/kinds/generate-context.js.map +1 -1
- package/dist/generate/kinds/generate-repository.d.ts.map +1 -1
- package/dist/generate/kinds/generate-repository.js +9 -1
- package/dist/generate/kinds/generate-repository.js.map +1 -1
- package/dist/generate/kinds/guard-kind.d.ts +1 -2
- package/dist/generate/kinds/guard-kind.d.ts.map +1 -1
- package/dist/generate/kinds/guard-kind.js +7 -9
- package/dist/generate/kinds/guard-kind.js.map +1 -1
- package/dist/generate/kinds/integration-event-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-event-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-event-kind.js +13 -11
- package/dist/generate/kinds/integration-event-kind.js.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.d.ts +1 -2
- package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
- package/dist/generate/kinds/integration-handler-kind.js +9 -10
- package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
- package/dist/generate/kinds/job-kind.d.ts +1 -2
- package/dist/generate/kinds/job-kind.d.ts.map +1 -1
- package/dist/generate/kinds/job-kind.js +20 -12
- package/dist/generate/kinds/job-kind.js.map +1 -1
- package/dist/generate/kinds/module-kind.d.ts +1 -2
- package/dist/generate/kinds/module-kind.d.ts.map +1 -1
- package/dist/generate/kinds/module-kind.js +14 -11
- package/dist/generate/kinds/module-kind.js.map +1 -1
- package/dist/generate/kinds/personal-data/table-of-schema.js +2 -2
- package/dist/generate/kinds/personal-data/table-of-schema.js.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.d.ts +1 -2
- package/dist/generate/kinds/personal-fields-kind.d.ts.map +1 -1
- package/dist/generate/kinds/personal-fields-kind.js +21 -9
- package/dist/generate/kinds/personal-fields-kind.js.map +1 -1
- package/dist/generate/kinds/policy-kind.d.ts +1 -2
- package/dist/generate/kinds/policy-kind.d.ts.map +1 -1
- package/dist/generate/kinds/policy-kind.js +13 -11
- package/dist/generate/kinds/policy-kind.js.map +1 -1
- package/dist/generate/kinds/port-kind.d.ts +1 -2
- package/dist/generate/kinds/port-kind.d.ts.map +1 -1
- package/dist/generate/kinds/port-kind.js +7 -9
- package/dist/generate/kinds/port-kind.js.map +1 -1
- package/dist/generate/kinds/process-kind.d.ts +1 -2
- package/dist/generate/kinds/process-kind.d.ts.map +1 -1
- package/dist/generate/kinds/process-kind.js +8 -10
- package/dist/generate/kinds/process-kind.js.map +1 -1
- package/dist/generate/kinds/projection-kind.d.ts +1 -2
- package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
- package/dist/generate/kinds/projection-kind.js +26 -11
- package/dist/generate/kinds/projection-kind.js.map +1 -1
- package/dist/generate/kinds/property-kind.d.ts +1 -2
- package/dist/generate/kinds/property-kind.d.ts.map +1 -1
- package/dist/generate/kinds/property-kind.js +14 -10
- package/dist/generate/kinds/property-kind.js.map +1 -1
- package/dist/generate/kinds/query-context.d.ts +1 -1
- package/dist/generate/kinds/query-context.d.ts.map +1 -1
- package/dist/generate/kinds/query-context.js +3 -2
- package/dist/generate/kinds/query-context.js.map +1 -1
- package/dist/generate/kinds/query-kind.d.ts +1 -2
- package/dist/generate/kinds/query-kind.d.ts.map +1 -1
- package/dist/generate/kinds/query-kind.js +17 -11
- package/dist/generate/kinds/query-kind.js.map +1 -1
- package/dist/generate/kinds/query-outputs.js +1 -1
- package/dist/generate/kinds/query-outputs.js.map +1 -1
- package/dist/generate/kinds/read-model-kind.d.ts +1 -2
- package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
- package/dist/generate/kinds/read-model-kind.js +16 -11
- package/dist/generate/kinds/read-model-kind.js.map +1 -1
- package/dist/generate/kinds/repository-kind.d.ts +1 -2
- package/dist/generate/kinds/repository-kind.d.ts.map +1 -1
- package/dist/generate/kinds/repository-kind.js +16 -9
- package/dist/generate/kinds/repository-kind.js.map +1 -1
- package/dist/generate/kinds/representation-kind.d.ts +1 -2
- package/dist/generate/kinds/representation-kind.d.ts.map +1 -1
- package/dist/generate/kinds/representation-kind.js +8 -9
- package/dist/generate/kinds/representation-kind.js.map +1 -1
- package/dist/generate/kinds/route-group-kind.d.ts +1 -2
- package/dist/generate/kinds/route-group-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-group-kind.js +18 -8
- package/dist/generate/kinds/route-group-kind.js.map +1 -1
- package/dist/generate/kinds/route-kind.d.ts.map +1 -1
- package/dist/generate/kinds/route-kind.js +17 -11
- package/dist/generate/kinds/route-kind.js.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.d.ts +1 -19
- package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/index-picture.js +4 -52
- package/dist/generate/kinds/same-name/index-picture.js.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -1
- package/dist/generate/kinds/same-name/keep-the-picture.js +18 -36
- package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -1
- package/dist/generate/kinds/schema-kind.d.ts +1 -2
- package/dist/generate/kinds/schema-kind.d.ts.map +1 -1
- package/dist/generate/kinds/schema-kind.js +12 -9
- package/dist/generate/kinds/schema-kind.js.map +1 -1
- package/dist/generate/kinds/service-kind.d.ts +1 -2
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +17 -9
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/state-machine-kind.d.ts +1 -2
- package/dist/generate/kinds/state-machine-kind.d.ts.map +1 -1
- package/dist/generate/kinds/state-machine-kind.js +12 -11
- package/dist/generate/kinds/state-machine-kind.js.map +1 -1
- package/dist/generate/kinds/test-world-kind.d.ts +1 -2
- package/dist/generate/kinds/test-world-kind.d.ts.map +1 -1
- package/dist/generate/kinds/test-world-kind.js +7 -9
- package/dist/generate/kinds/test-world-kind.js.map +1 -1
- package/dist/generate/kinds/value-object-kind.d.ts +1 -2
- package/dist/generate/kinds/value-object-kind.d.ts.map +1 -1
- package/dist/generate/kinds/value-object-kind.js +14 -20
- package/dist/generate/kinds/value-object-kind.js.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.d.ts +1 -2
- package/dist/generate/kinds/vocabulary-kind.d.ts.map +1 -1
- package/dist/generate/kinds/vocabulary-kind.js +10 -9
- package/dist/generate/kinds/vocabulary-kind.js.map +1 -1
- package/dist/generate/kinds/worker-kind.d.ts.map +1 -1
- package/dist/generate/kinds/worker-kind.js +12 -2
- package/dist/generate/kinds/worker-kind.js.map +1 -1
- package/dist/generate/options-of.d.ts +5 -0
- package/dist/generate/options-of.d.ts.map +1 -0
- package/dist/generate/options-of.js +7 -0
- package/dist/generate/options-of.js.map +1 -0
- package/dist/generate/refuse-shared-writes.d.ts +9 -1
- package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
- package/dist/generate/refuse-shared-writes.js +10 -9
- package/dist/generate/refuse-shared-writes.js.map +1 -1
- package/dist/generate/refuse-undeclared-flags.d.ts +4 -4
- package/dist/generate/refuse-undeclared-flags.js +6 -6
- package/dist/generate/refuse-undeclared-flags.js.map +1 -1
- package/dist/generate/searched-elements.d.ts +1 -1
- package/dist/generate/searched-elements.d.ts.map +1 -1
- package/dist/generate/searched-elements.js +5 -1
- package/dist/generate/searched-elements.js.map +1 -1
- package/dist/generate/shared-write.d.ts +27 -0
- package/dist/generate/shared-write.d.ts.map +1 -0
- package/dist/generate/shared-write.js +19 -0
- package/dist/generate/shared-write.js.map +1 -0
- package/dist/generate/stop-ignoring-validation.d.ts.map +1 -1
- package/dist/generate/stop-ignoring-validation.js +1 -3
- package/dist/generate/stop-ignoring-validation.js.map +1 -1
- package/dist/generate/usage-of.d.ts +4 -1
- package/dist/generate/usage-of.d.ts.map +1 -1
- package/dist/generate/usage-of.js +24 -2
- package/dist/generate/usage-of.js.map +1 -1
- package/dist/generate/with-import.d.ts +2 -2
- package/dist/generate/with-import.d.ts.map +1 -1
- package/dist/generate/with-import.js +4 -10
- package/dist/generate/with-import.js.map +1 -1
- package/dist/generate/writes-in-a-context.d.ts +4 -0
- package/dist/generate/writes-in-a-context.d.ts.map +1 -0
- package/dist/generate/writes-in-a-context.js +5 -0
- package/dist/generate/writes-in-a-context.js.map +1 -0
- package/dist/generator-lock/held-lock-refusal.js +1 -1
- package/dist/generator-lock/held-lock-refusal.js.map +1 -1
- package/dist/generator-lock/remove-stale.d.ts +6 -3
- package/dist/generator-lock/remove-stale.d.ts.map +1 -1
- package/dist/generator-lock/remove-stale.js +19 -8
- package/dist/generator-lock/remove-stale.js.map +1 -1
- package/dist/help/help-for.d.ts +2 -2
- package/dist/help/help-for.d.ts.map +1 -1
- package/dist/help/help-for.js +2 -3
- package/dist/help/help-for.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +8 -0
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage-for.d.ts +3 -2
- package/dist/help/usage-for.d.ts.map +1 -1
- package/dist/help/usage-for.js +9 -8
- package/dist/help/usage-for.js.map +1 -1
- package/dist/help/usage-lines-of.d.ts +1 -1
- package/dist/help/usage-lines-of.d.ts.map +1 -1
- package/dist/help/usage-lines-of.js +3 -16
- package/dist/help/usage-lines-of.js.map +1 -1
- package/dist/help/usage.d.ts +4 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +8 -72
- package/dist/help/usage.js.map +1 -1
- package/dist/init/knip-vars.d.ts.map +1 -1
- package/dist/init/knip-vars.js +7 -6
- package/dist/init/knip-vars.js.map +1 -1
- package/dist/init/manifest/left-to-workspace-root.d.ts +4 -0
- package/dist/init/manifest/left-to-workspace-root.d.ts.map +1 -0
- package/dist/init/manifest/left-to-workspace-root.js +6 -0
- package/dist/init/manifest/left-to-workspace-root.js.map +1 -0
- package/dist/init/manifest/versions.js +25 -25
- package/dist/init/manifest/write-install-settings.d.ts +10 -0
- package/dist/init/manifest/write-install-settings.d.ts.map +1 -0
- package/dist/init/manifest/write-install-settings.js +57 -0
- package/dist/init/manifest/write-install-settings.js.map +1 -0
- package/dist/init/rewire-tables.d.ts.map +1 -1
- package/dist/init/rewire-tables.js +2 -52
- package/dist/init/rewire-tables.js.map +1 -1
- package/dist/init/run-init.d.ts.map +1 -1
- package/dist/init/run-init.js +11 -7
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/settle-index-names.d.ts.map +1 -1
- package/dist/init/settle-index-names.js +4 -43
- package/dist/init/settle-index-names.js.map +1 -1
- package/dist/init/stack/resolve-stack.d.ts.map +1 -1
- package/dist/init/stack/resolve-stack.js +10 -1
- package/dist/init/stack/resolve-stack.js.map +1 -1
- package/dist/init/subfolder-sentence.js +1 -1
- package/dist/init/subfolder-sentence.js.map +1 -1
- package/dist/init/template-vars.d.ts.map +1 -1
- package/dist/init/template-vars.js +0 -2
- package/dist/init/template-vars.js.map +1 -1
- package/dist/init/workspace-image-note.d.ts +9 -0
- package/dist/init/workspace-image-note.d.ts.map +1 -0
- package/dist/init/workspace-image-note.js +37 -0
- package/dist/init/workspace-image-note.js.map +1 -0
- package/dist/init/workspace-manager-note.d.ts +5 -0
- package/dist/init/workspace-manager-note.d.ts.map +1 -0
- package/dist/init/workspace-manager-note.js +12 -0
- package/dist/init/workspace-manager-note.js.map +1 -0
- package/dist/init/write-agent-settings.js +1 -1
- package/dist/init/write-agent-settings.js.map +1 -1
- package/dist/init/write-contracts.js +1 -1
- package/dist/init/write-contracts.js.map +1 -1
- package/dist/init/write-local-environment.js +1 -1
- package/dist/init/write-local-environment.js.map +1 -1
- package/dist/init/write-profile-hooks.js +1 -1
- package/dist/init/write-profile-hooks.js.map +1 -1
- package/dist/lint/eslint-in-project.d.ts +6 -2
- package/dist/lint/eslint-in-project.d.ts.map +1 -1
- package/dist/lint/eslint-in-project.js +9 -3
- package/dist/lint/eslint-in-project.js.map +1 -1
- package/dist/markers/insert-in-region.js +23 -6
- package/dist/markers/insert-in-region.js.map +1 -1
- package/dist/markers/merge-imports.d.ts +3 -1
- package/dist/markers/merge-imports.d.ts.map +1 -1
- package/dist/markers/merge-imports.js +66 -23
- package/dist/markers/merge-imports.js.map +1 -1
- package/dist/markers/replace-in-region.js +1 -1
- package/dist/markers/replace-in-region.js.map +1 -1
- package/dist/merge/land-drizzle.d.ts +1 -1
- package/dist/merge/land-drizzle.d.ts.map +1 -1
- package/dist/merge/land-drizzle.js +2 -2
- package/dist/merge/land-drizzle.js.map +1 -1
- package/dist/merge/land-up-to-date.d.ts.map +1 -1
- package/dist/merge/land-up-to-date.js +11 -47
- package/dist/merge/land-up-to-date.js.map +1 -1
- package/dist/merge/merge-steps.d.ts.map +1 -1
- package/dist/merge/merge-steps.js +4 -9
- package/dist/merge/merge-steps.js.map +1 -1
- package/dist/merge/order/applied-under-old-name.d.ts +4 -9
- package/dist/merge/order/applied-under-old-name.d.ts.map +1 -1
- package/dist/merge/order/applied-under-old-name.js +5 -9
- package/dist/merge/order/applied-under-old-name.js.map +1 -1
- package/dist/merge/order/drizzle-order.js +3 -3
- package/dist/merge/order/drizzle-order.js.map +1 -1
- package/dist/merge/order/migration-order.d.ts.map +1 -1
- package/dist/merge/order/migration-order.js +2 -6
- package/dist/merge/order/migration-order.js.map +1 -1
- package/dist/merge/order/named-order.d.ts +3 -3
- package/dist/merge/order/named-order.d.ts.map +1 -1
- package/dist/merge/order/named-order.js +10 -14
- package/dist/merge/order/named-order.js.map +1 -1
- package/dist/merge/renamed-after-trunk.d.ts +10 -0
- package/dist/merge/renamed-after-trunk.d.ts.map +1 -0
- package/dist/merge/renamed-after-trunk.js +21 -0
- package/dist/merge/renamed-after-trunk.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +4 -8
- package/dist/merge/renumber-migrations.d.ts.map +1 -1
- package/dist/merge/renumber-migrations.js +28 -53
- package/dist/merge/renumber-migrations.js.map +1 -1
- package/dist/merge/replayed-after-trunk.d.ts +7 -0
- package/dist/merge/replayed-after-trunk.d.ts.map +1 -0
- package/dist/merge/replayed-after-trunk.js +35 -0
- package/dist/merge/replayed-after-trunk.js.map +1 -0
- package/dist/migration/refuse-taken-migration-name.d.ts +2 -1
- package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -1
- package/dist/migration/refuse-taken-migration-name.js +3 -5
- package/dist/migration/refuse-taken-migration-name.js.map +1 -1
- package/dist/naming/inflection.d.ts +15 -0
- package/dist/naming/inflection.d.ts.map +1 -0
- package/dist/naming/inflection.js +24 -0
- package/dist/naming/inflection.js.map +1 -0
- package/dist/naming/parse-concept-name.d.ts +3 -2
- package/dist/naming/parse-concept-name.d.ts.map +1 -1
- package/dist/naming/parse-concept-name.js +5 -2
- package/dist/naming/parse-concept-name.js.map +1 -1
- package/dist/naming/plural.d.ts +1 -1
- package/dist/naming/plural.d.ts.map +1 -1
- package/dist/naming/plural.js +7 -4
- package/dist/naming/plural.js.map +1 -1
- package/dist/naming/refuse-unwritable.d.ts +8 -0
- package/dist/naming/refuse-unwritable.d.ts.map +1 -0
- package/dist/naming/refuse-unwritable.js +32 -0
- package/dist/naming/refuse-unwritable.js.map +1 -0
- package/dist/naming/singular.d.ts +5 -1
- package/dist/naming/singular.d.ts.map +1 -1
- package/dist/naming/singular.js +15 -2
- package/dist/naming/singular.js.map +1 -1
- package/dist/naming/to-name.d.ts +5 -0
- package/dist/naming/to-name.d.ts.map +1 -1
- package/dist/naming/to-name.js +7 -2
- package/dist/naming/to-name.js.map +1 -1
- package/dist/orm/database-access.d.ts +13 -0
- package/dist/orm/database-access.d.ts.map +1 -0
- package/dist/orm/database-access.js +2 -0
- package/dist/orm/database-access.js.map +1 -0
- package/dist/orm/members/drizzle.d.ts +3 -0
- package/dist/orm/members/drizzle.d.ts.map +1 -0
- package/dist/orm/members/drizzle.js +16 -0
- package/dist/orm/members/drizzle.js.map +1 -0
- package/dist/orm/members/knex.d.ts +3 -0
- package/dist/orm/members/knex.d.ts.map +1 -0
- package/dist/orm/members/knex.js +20 -0
- package/dist/orm/members/knex.js.map +1 -0
- package/dist/orm/members/prisma.d.ts +3 -0
- package/dist/orm/members/prisma.d.ts.map +1 -0
- package/dist/orm/members/prisma.js +9 -0
- package/dist/orm/members/prisma.js.map +1 -0
- package/dist/orm/members/typeorm.d.ts +3 -0
- package/dist/orm/members/typeorm.d.ts.map +1 -0
- package/dist/orm/members/typeorm.js +18 -0
- package/dist/orm/members/typeorm.js.map +1 -0
- package/dist/orm/migrations/files-of-commit.d.ts +3 -0
- package/dist/orm/migrations/files-of-commit.d.ts.map +1 -0
- package/dist/orm/migrations/files-of-commit.js +8 -0
- package/dist/orm/migrations/files-of-commit.js.map +1 -0
- package/dist/orm/migrations/in-order.d.ts +5 -0
- package/dist/orm/migrations/in-order.d.ts.map +1 -0
- package/dist/orm/migrations/in-order.js +5 -0
- package/dist/orm/migrations/in-order.js.map +1 -0
- package/dist/orm/migrations/migration-history.d.ts +44 -0
- package/dist/orm/migrations/migration-history.d.ts.map +1 -0
- package/dist/orm/migrations/migration-history.js +2 -0
- package/dist/orm/migrations/migration-history.js.map +1 -0
- package/dist/orm/migrations/migration-tool.d.ts +32 -0
- package/dist/orm/migrations/migration-tool.d.ts.map +1 -0
- package/dist/orm/migrations/migration-tool.js +2 -0
- package/dist/orm/migrations/migration-tool.js.map +1 -0
- package/dist/orm/migrations/migrations-landed.d.ts +6 -0
- package/dist/orm/migrations/migrations-landed.d.ts.map +1 -0
- package/dist/orm/migrations/migrations-landed.js +2 -0
- package/dist/orm/migrations/migrations-landed.js.map +1 -0
- package/dist/orm/migrations/named-folders.d.ts +7 -0
- package/dist/orm/migrations/named-folders.d.ts.map +1 -0
- package/dist/orm/migrations/named-folders.js +40 -0
- package/dist/orm/migrations/named-folders.js.map +1 -0
- package/dist/orm/migrations/named-scripts.d.ts +7 -0
- package/dist/orm/migrations/named-scripts.d.ts.map +1 -0
- package/dist/orm/migrations/named-scripts.js +36 -0
- package/dist/orm/migrations/named-scripts.js.map +1 -0
- package/dist/orm/migrations/numbered-name.d.ts +6 -0
- package/dist/orm/migrations/numbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/numbered-name.js +7 -0
- package/dist/orm/migrations/numbered-name.js.map +1 -0
- package/dist/{merge/order → orm/migrations}/ordered-migration.d.ts +0 -2
- package/dist/orm/migrations/ordered-migration.d.ts.map +1 -0
- package/dist/orm/migrations/ordered-migration.js.map +1 -0
- package/dist/orm/migrations/renumbered-name.d.ts +3 -0
- package/dist/orm/migrations/renumbered-name.d.ts.map +1 -0
- package/dist/orm/migrations/renumbered-name.js +7 -0
- package/dist/orm/migrations/renumbered-name.js.map +1 -0
- package/dist/orm/migrations/restamp-class.d.ts.map +1 -0
- package/dist/{merge → orm/migrations}/restamp-class.js +2 -2
- package/dist/orm/migrations/restamp-class.js.map +1 -0
- package/dist/orm/migrations/script-named.d.ts +3 -0
- package/dist/orm/migrations/script-named.d.ts.map +1 -0
- package/dist/orm/migrations/script-named.js +6 -0
- package/dist/orm/migrations/script-named.js.map +1 -0
- package/dist/orm/migrations/scripts.d.ts +7 -0
- package/dist/orm/migrations/scripts.d.ts.map +1 -0
- package/dist/orm/migrations/scripts.js +7 -0
- package/dist/orm/migrations/scripts.js.map +1 -0
- package/dist/orm/migrations/stamped-classes.d.ts +8 -0
- package/dist/orm/migrations/stamped-classes.d.ts.map +1 -0
- package/dist/orm/migrations/stamped-classes.js +53 -0
- package/dist/orm/migrations/stamped-classes.js.map +1 -0
- package/dist/orm/orm-member.d.ts +16 -0
- package/dist/orm/orm-member.d.ts.map +1 -0
- package/dist/orm/orm-member.js +2 -0
- package/dist/orm/orm-member.js.map +1 -0
- package/dist/orm/orm-members.d.ts +5 -0
- package/dist/orm/orm-members.d.ts.map +1 -0
- package/dist/orm/orm-members.js +11 -0
- package/dist/orm/orm-members.js.map +1 -0
- package/dist/orm/tables/declare-once.d.ts +14 -0
- package/dist/orm/tables/declare-once.d.ts.map +1 -0
- package/dist/orm/tables/declare-once.js +22 -0
- package/dist/orm/tables/declare-once.js.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts +35 -0
- package/dist/orm/tables/declared-in-tables-file.d.ts.map +1 -0
- package/dist/orm/tables/declared-in-tables-file.js +98 -0
- package/dist/orm/tables/declared-in-tables-file.js.map +1 -0
- package/dist/orm/tables/declared-table.d.ts +12 -0
- package/dist/orm/tables/declared-table.d.ts.map +1 -0
- package/dist/orm/tables/declared-table.js +2 -0
- package/dist/orm/tables/declared-table.js.map +1 -0
- package/dist/orm/tables/empty-picture.d.ts +4 -0
- package/dist/orm/tables/empty-picture.d.ts.map +1 -0
- package/dist/orm/tables/empty-picture.js +5 -0
- package/dist/orm/tables/empty-picture.js.map +1 -0
- package/dist/orm/tables/exported-names.d.ts +8 -0
- package/dist/orm/tables/exported-names.d.ts.map +1 -0
- package/dist/orm/tables/exported-names.js +68 -0
- package/dist/orm/tables/exported-names.js.map +1 -0
- package/dist/orm/tables/file-of-table.d.ts +3 -0
- package/dist/orm/tables/file-of-table.d.ts.map +1 -0
- package/dist/orm/tables/file-of-table.js +5 -0
- package/dist/orm/tables/file-of-table.js.map +1 -0
- package/dist/orm/tables/index-names.d.ts +55 -0
- package/dist/orm/tables/index-names.d.ts.map +1 -0
- package/dist/orm/tables/index-names.js +2 -0
- package/dist/orm/tables/index-names.js.map +1 -0
- package/dist/orm/tables/index-picture.d.ts +20 -0
- package/dist/orm/tables/index-picture.d.ts.map +1 -0
- package/dist/orm/tables/index-picture.js +2 -0
- package/dist/orm/tables/index-picture.js.map +1 -0
- package/dist/orm/tables/listed-entities.d.ts +9 -0
- package/dist/orm/tables/listed-entities.d.ts.map +1 -0
- package/dist/orm/tables/listed-entities.js +65 -0
- package/dist/orm/tables/listed-entities.js.map +1 -0
- package/dist/orm/tables/prisma-models.d.ts +7 -0
- package/dist/orm/tables/prisma-models.d.ts.map +1 -0
- package/dist/orm/tables/prisma-models.js +33 -0
- package/dist/orm/tables/prisma-models.js.map +1 -0
- package/dist/orm/tables/tables-declaration.d.ts +30 -0
- package/dist/orm/tables/tables-declaration.d.ts.map +1 -0
- package/dist/orm/tables/tables-declaration.js +2 -0
- package/dist/orm/tables/tables-declaration.js.map +1 -0
- package/dist/orm/tables/template-of-table.d.ts +4 -0
- package/dist/orm/tables/template-of-table.d.ts.map +1 -0
- package/dist/orm/tables/template-of-table.js +7 -0
- package/dist/orm/tables/template-of-table.js.map +1 -0
- package/dist/package-manager/listed-by.d.ts +3 -0
- package/dist/package-manager/listed-by.d.ts.map +1 -0
- package/dist/package-manager/listed-by.js +17 -0
- package/dist/package-manager/listed-by.js.map +1 -0
- package/dist/package-manager/npm-workspace-of.d.ts +15 -0
- package/dist/package-manager/npm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/npm-workspace-of.js +35 -0
- package/dist/package-manager/npm-workspace-of.js.map +1 -0
- package/dist/package-manager/package-manager-vars.d.ts +1 -1
- package/dist/package-manager/package-manager-vars.d.ts.map +1 -1
- package/dist/package-manager/package-manager-vars.js +2 -1
- package/dist/package-manager/package-manager-vars.js.map +1 -1
- package/dist/package-manager/pnpm-settings-file.d.ts +6 -0
- package/dist/package-manager/pnpm-settings-file.d.ts.map +1 -0
- package/dist/package-manager/pnpm-settings-file.js +12 -0
- package/dist/package-manager/pnpm-settings-file.js.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts +18 -0
- package/dist/package-manager/pnpm-workspace-of.d.ts.map +1 -0
- package/dist/package-manager/pnpm-workspace-of.js +49 -0
- package/dist/package-manager/pnpm-workspace-of.js.map +1 -0
- package/dist/package-manager/workspace-package-manager.d.ts +14 -0
- package/dist/package-manager/workspace-package-manager.d.ts.map +1 -0
- package/dist/package-manager/workspace-package-manager.js +56 -0
- package/dist/package-manager/workspace-package-manager.js.map +1 -0
- package/dist/plan/planned-words.js +1 -1
- package/dist/plan/planned-words.js.map +1 -1
- package/dist/prisma-schema/datasource-list.d.ts +4 -0
- package/dist/prisma-schema/datasource-list.d.ts.map +1 -0
- package/dist/prisma-schema/datasource-list.js +6 -0
- package/dist/prisma-schema/datasource-list.js.map +1 -0
- package/dist/prisma-schema/datasource-schemas.d.ts.map +1 -1
- package/dist/prisma-schema/datasource-schemas.js +2 -1
- package/dist/prisma-schema/datasource-schemas.js.map +1 -1
- package/dist/prisma-schema/preview-features-of.d.ts.map +1 -1
- package/dist/prisma-schema/preview-features-of.js +2 -3
- package/dist/prisma-schema/preview-features-of.js.map +1 -1
- package/dist/prisma-schema/schema-block.d.ts +20 -0
- package/dist/prisma-schema/schema-block.d.ts.map +1 -0
- package/dist/prisma-schema/schema-block.js +45 -0
- package/dist/prisma-schema/schema-block.js.map +1 -0
- package/dist/prisma-schema/schema-code.d.ts +7 -0
- package/dist/prisma-schema/schema-code.d.ts.map +1 -0
- package/dist/prisma-schema/schema-code.js +10 -0
- package/dist/prisma-schema/schema-code.js.map +1 -0
- package/dist/prisma-schema/schema-list.d.ts +14 -0
- package/dist/prisma-schema/schema-list.d.ts.map +1 -0
- package/dist/prisma-schema/schema-list.js +33 -0
- package/dist/prisma-schema/schema-list.js.map +1 -0
- package/dist/prisma-schema/with-datasource-schema.d.ts +5 -1
- package/dist/prisma-schema/with-datasource-schema.d.ts.map +1 -1
- package/dist/prisma-schema/with-datasource-schema.js +12 -5
- package/dist/prisma-schema/with-datasource-schema.js.map +1 -1
- package/dist/prisma-schema/with-preview-feature.d.ts.map +1 -1
- package/dist/prisma-schema/with-preview-feature.js +6 -14
- package/dist/prisma-schema/with-preview-feature.js.map +1 -1
- package/dist/refusals/cut-factories.js +2 -2
- package/dist/refusals/cut-factories.js.map +1 -1
- package/dist/refusals/read-concept-error.d.ts.map +1 -1
- package/dist/refusals/read-concept-error.js +2 -2
- package/dist/refusals/read-concept-error.js.map +1 -1
- package/dist/run.d.ts +0 -2
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +35 -114
- package/dist/run.js.map +1 -1
- package/dist/sdk/put-file.d.ts +5 -2
- package/dist/sdk/put-file.d.ts.map +1 -1
- package/dist/sdk/put-file.js +6 -2
- package/dist/sdk/put-file.js.map +1 -1
- package/dist/sdk/sdk-scripts.d.ts +4 -3
- package/dist/sdk/sdk-scripts.d.ts.map +1 -1
- package/dist/sdk/sdk-scripts.js +6 -5
- package/dist/sdk/sdk-scripts.js.map +1 -1
- package/dist/sdk/wire-sdk.d.ts.map +1 -1
- package/dist/sdk/wire-sdk.js +10 -1
- package/dist/sdk/wire-sdk.js.map +1 -1
- package/dist/slice/verify-slice.js +2 -2
- package/dist/source-text/block-after.d.ts +8 -0
- package/dist/source-text/block-after.d.ts.map +1 -0
- package/dist/source-text/block-after.js +35 -0
- package/dist/source-text/block-after.js.map +1 -0
- package/dist/source-text/bound-by.d.ts +4 -0
- package/dist/source-text/bound-by.d.ts.map +1 -0
- package/dist/source-text/bound-by.js +5 -0
- package/dist/source-text/bound-by.js.map +1 -0
- package/dist/source-text/class-body.d.ts +8 -0
- package/dist/source-text/class-body.d.ts.map +1 -0
- package/dist/source-text/class-body.js +11 -0
- package/dist/source-text/class-body.js.map +1 -0
- package/dist/source-text/import-statement.d.ts +17 -0
- package/dist/source-text/import-statement.d.ts.map +1 -0
- package/dist/source-text/import-statement.js +2 -0
- package/dist/source-text/import-statement.js.map +1 -0
- package/dist/source-text/import-statements.d.ts +20 -0
- package/dist/source-text/import-statements.d.ts.map +1 -0
- package/dist/source-text/import-statements.js +53 -0
- package/dist/source-text/import-statements.js.map +1 -0
- package/dist/source-text/index.d.ts +7 -0
- package/dist/source-text/index.d.ts.map +1 -0
- package/dist/source-text/index.js +6 -0
- package/dist/source-text/index.js.map +1 -0
- package/dist/source-text/line-of.d.ts +8 -0
- package/dist/source-text/line-of.d.ts.map +1 -0
- package/dist/source-text/line-of.js +7 -0
- package/dist/source-text/line-of.js.map +1 -0
- package/dist/source-text/list-literal.d.ts +24 -0
- package/dist/source-text/list-literal.d.ts.map +1 -0
- package/dist/source-text/list-literal.js +68 -0
- package/dist/source-text/list-literal.js.map +1 -0
- package/dist/source-text/object-entry.d.ts +14 -0
- package/dist/source-text/object-entry.d.ts.map +1 -0
- package/dist/source-text/object-entry.js +26 -0
- package/dist/source-text/object-entry.js.map +1 -0
- package/dist/source-text/object-literal.d.ts +27 -0
- package/dist/source-text/object-literal.d.ts.map +1 -0
- package/dist/source-text/object-literal.js +66 -0
- package/dist/source-text/object-literal.js.map +1 -0
- package/dist/source-text/parts-between.d.ts +8 -0
- package/dist/source-text/parts-between.d.ts.map +1 -0
- package/dist/source-text/parts-between.js +33 -0
- package/dist/source-text/parts-between.js.map +1 -0
- package/dist/source-text/read-imports.d.ts +9 -0
- package/dist/source-text/read-imports.d.ts.map +1 -0
- package/dist/source-text/read-imports.js +46 -0
- package/dist/source-text/read-imports.js.map +1 -0
- package/dist/source-text/read-source.d.ts +10 -0
- package/dist/source-text/read-source.d.ts.map +1 -0
- package/dist/source-text/read-source.js +2 -0
- package/dist/source-text/read-source.js.map +1 -0
- package/dist/source-text/source-text.d.ts +21 -0
- package/dist/source-text/source-text.d.ts.map +1 -0
- package/dist/source-text/source-text.js +38 -0
- package/dist/source-text/source-text.js.map +1 -0
- package/dist/source-text/span.d.ts +6 -0
- package/dist/source-text/span.d.ts.map +1 -0
- package/dist/source-text/span.js +2 -0
- package/dist/source-text/span.js.map +1 -0
- package/dist/stack/audit-vars.d.ts.map +1 -1
- package/dist/stack/audit-vars.js +4 -3
- package/dist/stack/audit-vars.js.map +1 -1
- package/dist/stack/authentication-vars.d.ts +1 -1
- package/dist/stack/authentication-vars.d.ts.map +1 -1
- package/dist/stack/authentication-vars.js +3 -1
- package/dist/stack/authentication-vars.js.map +1 -1
- package/dist/stack/broker-vars.d.ts +1 -1
- package/dist/stack/broker-vars.d.ts.map +1 -1
- package/dist/stack/broker-vars.js +2 -1
- package/dist/stack/broker-vars.js.map +1 -1
- package/dist/stack/files-vars.d.ts +1 -1
- package/dist/stack/files-vars.d.ts.map +1 -1
- package/dist/stack/files-vars.js +2 -1
- package/dist/stack/files-vars.js.map +1 -1
- package/dist/stack/one.d.ts +6 -2
- package/dist/stack/one.d.ts.map +1 -1
- package/dist/stack/one.js +5 -1
- package/dist/stack/one.js.map +1 -1
- package/dist/stack/persistence-vars.d.ts.map +1 -1
- package/dist/stack/persistence-vars.js +9 -14
- package/dist/stack/persistence-vars.js.map +1 -1
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +28 -26
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/stack/with-database.d.ts.map +1 -1
- package/dist/stack/with-database.js +3 -1
- package/dist/stack/with-database.js.map +1 -1
- package/dist/stories/read-stories.js +2 -2
- package/dist/stories/read-stories.js.map +1 -1
- package/dist/templating/render-template.d.ts +4 -1
- package/dist/templating/render-template.d.ts.map +1 -1
- package/dist/templating/render-template.js +9 -3
- package/dist/templating/render-template.js.map +1 -1
- package/dist/templating/rendering.d.ts +5 -0
- package/dist/templating/rendering.d.ts.map +1 -1
- package/dist/templating/rendering.js +14 -6
- package/dist/templating/rendering.js.map +1 -1
- package/dist/templating/spoken-for.d.ts +15 -0
- package/dist/templating/spoken-for.d.ts.map +1 -0
- package/dist/templating/spoken-for.js +21 -0
- package/dist/templating/spoken-for.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/read-workers.js +2 -2
- package/dist/worker/read-workers.js.map +1 -1
- package/dist/worker/worker-generators.js +4 -4
- package/dist/worker/worker-generators.js.map +1 -1
- package/dist/worker/{changed-files.d.ts → worktree-files.d.ts} +2 -2
- package/dist/worker/worktree-files.d.ts.map +1 -0
- package/dist/worker/worktree-files.js +10 -0
- package/dist/worker/worktree-files.js.map +1 -0
- package/dist/workspace/stage-if-allowed.d.ts +22 -0
- package/dist/workspace/stage-if-allowed.d.ts.map +1 -0
- package/dist/workspace/stage-if-allowed.js +97 -0
- package/dist/workspace/stage-if-allowed.js.map +1 -0
- package/dist/workspace/updated-and-skipped.d.ts +20 -0
- package/dist/workspace/updated-and-skipped.d.ts.map +1 -0
- package/dist/workspace/updated-and-skipped.js +11 -0
- package/dist/workspace/updated-and-skipped.js.map +1 -0
- package/dist/workspace/workspace.d.ts +9 -8
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +13 -12
- package/dist/workspace/workspace.js.map +1 -1
- package/dist/workspace/write-if-allowed.d.ts +5 -13
- package/dist/workspace/write-if-allowed.d.ts.map +1 -1
- package/dist/workspace/write-if-allowed.js +9 -69
- package/dist/workspace/write-if-allowed.js.map +1 -1
- package/dist/workspace/written-of.d.ts +8 -2
- package/dist/workspace/written-of.d.ts.map +1 -1
- package/dist/workspace/written-of.js +39 -11
- package/dist/workspace/written-of.js.map +1 -1
- package/package.json +6 -6
- package/templates/acl/translator.spec.ts.tpl +6 -3
- package/templates/acl/translator.ts.tpl +4 -2
- package/templates/aggregate/aggregate.spec.ts.tpl +3 -2
- package/templates/aggregate/event-sourced.aggregate.spec.ts.tpl +3 -3
- package/templates/command/handler.declared.ts.tpl +13 -21
- package/templates/command/handler.spec.buses.ts.tpl +5 -4
- package/templates/command/handler.spec.container.ts.tpl +18 -4
- package/templates/command/handler.ts.tpl +13 -23
- package/templates/domain-event/domain-event.ts.tpl +1 -7
- package/templates/e2e/e2e-reaction.spec.ts.tpl +6 -0
- package/templates/e2e/e2e.spec.ts.tpl +4 -1
- package/templates/event-handler/event-handler.declared.ts.tpl +7 -3
- package/templates/event-handler/event-handler.spec.ts.tpl +8 -9
- package/templates/event-handler/event-handler.ts.tpl +7 -3
- package/templates/gateway/adapter.declared.ts.tpl +1 -1
- package/templates/gateway/adapter.ts.tpl +1 -1
- package/templates/gateway/contract.platform-test.declared.tpl +8 -0
- package/templates/gateway/contract.platform.declared.tpl +8 -0
- package/templates/gateway/contract.wiring.container.tpl +8 -0
- package/templates/gateway/wiring.container.tpl +0 -1
- package/templates/init/e2e/jest.e2e.config.js.tpl +2 -0
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -0
- package/templates/init/jest.config.js.tpl +2 -0
- package/templates/init/platform/auth/authorization/authorization.container.ts.tpl +19 -2
- package/templates/init/platform/auth/authorization/use-case-protection.ts.tpl +5 -2
- package/templates/init/platform/auth/relationships/relationship-schema.ts.tpl +3 -2
- package/templates/init/platform/composition/create-platform.manual.ts.tpl +14 -2
- package/templates/init/platform/database/schema.prisma.tpl +2 -0
- package/templates/init/platform/events/custom-event-bus.ts.tpl +1 -1
- package/templates/init/platform/events/in-process-events.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.express.ts.tpl +4 -2
- package/templates/init/platform/http/start-http-server.fastify.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.hono.ts.tpl +1 -1
- package/templates/init/platform/http/start-http-server.nest.ts.tpl +9 -1
- package/templates/init/platform/observability/create-logger.winston.ts.tpl +1 -2
- package/templates/init/rules/application.md.tpl +1 -1
- package/templates/init/rules/infrastructure.md.tpl +2 -2
- package/templates/integration-handler/integration-handler.declared.ts.tpl +3 -2
- package/templates/integration-handler/integration-handler.spec.ts.tpl +5 -6
- package/templates/integration-handler/integration-handler.ts.tpl +6 -4
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/jest.mutation.config.js.tpl +2 -0
- package/templates/pipeline/knip.json.tpl +0 -2
- package/templates/pipeline/package-scripts.json +4 -4
- package/templates/pipeline/vitest.config.ts.tpl +2 -0
- package/templates/pipeline/vitest.mutation.config.ts.tpl +2 -0
- package/templates/policy/policy.declared.ts.tpl +4 -4
- package/templates/policy/policy.spec.declared.ts.tpl +3 -14
- package/templates/policy/policy.spec.ts.tpl +3 -9
- package/templates/policy/policy.ts.tpl +2 -3
- package/templates/presets/identity/context/domain/events/account-deactivated.event.ts.tpl +1 -8
- package/templates/presets/identity/context/domain/events/account-provisioned.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-granted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/delegation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-accepted.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-declined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-issued.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/invitation-revoked.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-joined.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-removed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/member-role-changed.event.ts.tpl +3 -3
- package/templates/presets/identity/context/domain/events/organisation-opened.event.ts.tpl +3 -3
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/account.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/delegation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +9 -27
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/invitation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/knex-account.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-delegation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-invitation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-member.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/knex-organisation.repository.knex.ts.tpl +9 -25
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/member.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.drizzle.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.knex.ts.tpl +4 -7
- package/templates/presets/identity/context/infrastructure/persistence/organisation.mapper.prisma.ts.tpl +4 -8
- package/templates/presets/identity/context/infrastructure/persistence/prisma-account.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-delegation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-invitation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-member.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/infrastructure/persistence/prisma-organisation.repository.prisma.ts.tpl +8 -26
- package/templates/presets/identity/context/test/unit/account.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/delegation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/invitation.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/member.aggregate.spec.ts.tpl +3 -3
- package/templates/presets/identity/context/test/unit/organisation.aggregate.spec.ts.tpl +3 -2
- package/templates/presets/identity/context/test/worlds/__context__.world.declared.ts.tpl +0 -1
- package/templates/presets/identity/context/test/worlds/__context__.world.explicit.ts.tpl +1 -1
- package/templates/process/process.spec.ts.tpl +5 -5
- package/templates/process/timeout-job.declared.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.buses.ts.tpl +2 -2
- package/templates/process/timeout-job.spec.container.ts.tpl +2 -2
- package/templates/process/timeout-job.ts.tpl +2 -2
- package/templates/projection/projection.manual.ts.tpl +8 -1
- package/templates/projection/projection.spec.ts.tpl +18 -4
- package/templates/projection/projection.ts.tpl +28 -1
- package/templates/query/handler.declared.ts.tpl +8 -4
- package/templates/query/handler.spec.container.ts.tpl +13 -0
- package/templates/query/handler.ts.tpl +8 -4
- package/templates/query/reader.fake.ts.tpl +6 -4
- package/templates/query/reader.in-memory.ts.tpl +3 -4
- package/templates/query/reader.spec.ts.tpl +19 -0
- package/templates/repository/contract.spec.ts.tpl +21 -12
- package/templates/repository/drizzle/mapper.ts.tpl +5 -9
- package/templates/repository/drizzle/repository.ts.tpl +11 -35
- package/templates/repository/fake.ts.tpl +19 -0
- package/templates/repository/knex/mapper.ts.tpl +4 -7
- package/templates/repository/knex/repository.ts.tpl +12 -73
- package/templates/repository/none/repository.ts.tpl +9 -12
- package/templates/repository/prisma/mapper.ts.tpl +5 -9
- package/templates/repository/prisma/repository.ts.tpl +10 -70
- package/templates/repository/typeorm/mapper.ts.tpl +4 -7
- package/templates/repository/typeorm/repository.ts.tpl +10 -63
- package/templates/test-world/world.buses.ts.tpl +1 -1
- package/templates/test-world/world.container.ts.tpl +0 -1
- package/dist/check/catalogue/clean-rule-ids.d.ts +0 -3
- package/dist/check/catalogue/clean-rule-ids.d.ts.map +0 -1
- package/dist/check/catalogue/clean-rule-ids.js +0 -14
- package/dist/check/catalogue/clean-rule-ids.js.map +0 -1
- package/dist/check/catalogue/default-severities.d.ts +0 -4
- package/dist/check/catalogue/default-severities.d.ts.map +0 -1
- package/dist/check/catalogue/default-severities.js +0 -27
- package/dist/check/catalogue/default-severities.js.map +0 -1
- package/dist/check/catalogue/suppression-rule.d.ts +0 -9
- package/dist/check/catalogue/suppression-rule.d.ts.map +0 -1
- package/dist/check/catalogue/suppression-rule.js +0 -10
- package/dist/check/catalogue/suppression-rule.js.map +0 -1
- package/dist/check/commands/changed-files.d.ts +0 -8
- package/dist/check/commands/changed-files.d.ts.map +0 -1
- package/dist/check/commands/changed-files.js +0 -27
- package/dist/check/commands/changed-files.js.map +0 -1
- package/dist/check/explain/authz-docs.d.ts +0 -3
- package/dist/check/explain/authz-docs.d.ts.map +0 -1
- package/dist/check/explain/authz-docs.js +0 -127
- package/dist/check/explain/authz-docs.js.map +0 -1
- package/dist/check/explain/clean-docs.d.ts +0 -3
- package/dist/check/explain/clean-docs.d.ts.map +0 -1
- package/dist/check/explain/clean-docs.js +0 -39
- package/dist/check/explain/clean-docs.js.map +0 -1
- package/dist/check/explain/context-docs.d.ts +0 -3
- package/dist/check/explain/context-docs.d.ts.map +0 -1
- package/dist/check/explain/context-docs.js +0 -44
- package/dist/check/explain/context-docs.js.map +0 -1
- package/dist/check/explain/domain-docs.d.ts +0 -3
- package/dist/check/explain/domain-docs.d.ts.map +0 -1
- package/dist/check/explain/domain-docs.js +0 -30
- package/dist/check/explain/domain-docs.js.map +0 -1
- package/dist/check/explain/errors-docs.d.ts +0 -3
- package/dist/check/explain/errors-docs.d.ts.map +0 -1
- package/dist/check/explain/errors-docs.js +0 -53
- package/dist/check/explain/errors-docs.js.map +0 -1
- package/dist/check/explain/event-sourcing-docs.d.ts +0 -3
- package/dist/check/explain/event-sourcing-docs.d.ts.map +0 -1
- package/dist/check/explain/event-sourcing-docs.js +0 -62
- package/dist/check/explain/event-sourcing-docs.js.map +0 -1
- package/dist/check/explain/events-docs.d.ts +0 -3
- package/dist/check/explain/events-docs.d.ts.map +0 -1
- package/dist/check/explain/events-docs.js +0 -103
- package/dist/check/explain/events-docs.js.map +0 -1
- package/dist/check/explain/imports-docs.d.ts +0 -3
- package/dist/check/explain/imports-docs.d.ts.map +0 -1
- package/dist/check/explain/imports-docs.js +0 -48
- package/dist/check/explain/imports-docs.js.map +0 -1
- package/dist/check/explain/language-docs.d.ts +0 -3
- package/dist/check/explain/language-docs.d.ts.map +0 -1
- package/dist/check/explain/language-docs.js +0 -40
- package/dist/check/explain/language-docs.js.map +0 -1
- package/dist/check/explain/layer-docs.d.ts +0 -3
- package/dist/check/explain/layer-docs.d.ts.map +0 -1
- package/dist/check/explain/layer-docs.js +0 -41
- package/dist/check/explain/layer-docs.js.map +0 -1
- package/dist/check/explain/layout-docs.d.ts +0 -3
- package/dist/check/explain/layout-docs.d.ts.map +0 -1
- package/dist/check/explain/layout-docs.js +0 -73
- package/dist/check/explain/layout-docs.js.map +0 -1
- package/dist/check/explain/lifecycle-docs.d.ts +0 -3
- package/dist/check/explain/lifecycle-docs.d.ts.map +0 -1
- package/dist/check/explain/lifecycle-docs.js +0 -33
- package/dist/check/explain/lifecycle-docs.js.map +0 -1
- package/dist/check/explain/module-docs.d.ts +0 -3
- package/dist/check/explain/module-docs.d.ts.map +0 -1
- package/dist/check/explain/module-docs.js +0 -40
- package/dist/check/explain/module-docs.js.map +0 -1
- package/dist/check/explain/nest-docs.d.ts +0 -3
- package/dist/check/explain/nest-docs.d.ts.map +0 -1
- package/dist/check/explain/nest-docs.js +0 -31
- package/dist/check/explain/nest-docs.js.map +0 -1
- package/dist/check/explain/persistence-docs.d.ts +0 -3
- package/dist/check/explain/persistence-docs.d.ts.map +0 -1
- package/dist/check/explain/persistence-docs.js +0 -103
- package/dist/check/explain/persistence-docs.js.map +0 -1
- package/dist/check/explain/ports-docs.d.ts +0 -3
- package/dist/check/explain/ports-docs.d.ts.map +0 -1
- package/dist/check/explain/ports-docs.js +0 -78
- package/dist/check/explain/ports-docs.js.map +0 -1
- package/dist/check/explain/privacy-docs.d.ts +0 -3
- package/dist/check/explain/privacy-docs.d.ts.map +0 -1
- package/dist/check/explain/privacy-docs.js +0 -65
- package/dist/check/explain/privacy-docs.js.map +0 -1
- package/dist/check/explain/rule-docs.d.ts +0 -4
- package/dist/check/explain/rule-docs.d.ts.map +0 -1
- package/dist/check/explain/rule-docs.js +0 -50
- package/dist/check/explain/rule-docs.js.map +0 -1
- package/dist/check/explain/scheduling-docs.d.ts +0 -3
- package/dist/check/explain/scheduling-docs.d.ts.map +0 -1
- package/dist/check/explain/scheduling-docs.js +0 -71
- package/dist/check/explain/scheduling-docs.js.map +0 -1
- package/dist/check/explain/schema-docs.d.ts +0 -3
- package/dist/check/explain/schema-docs.d.ts.map +0 -1
- package/dist/check/explain/schema-docs.js +0 -28
- package/dist/check/explain/schema-docs.js.map +0 -1
- package/dist/check/explain/standard-docs.d.ts +0 -3
- package/dist/check/explain/standard-docs.d.ts.map +0 -1
- package/dist/check/explain/standard-docs.js +0 -61
- package/dist/check/explain/standard-docs.js.map +0 -1
- package/dist/check/explain/tenancy-docs.d.ts +0 -3
- package/dist/check/explain/tenancy-docs.d.ts.map +0 -1
- package/dist/check/explain/tenancy-docs.js +0 -39
- package/dist/check/explain/tenancy-docs.js.map +0 -1
- package/dist/check/explain/tree-docs.d.ts +0 -3
- package/dist/check/explain/tree-docs.d.ts.map +0 -1
- package/dist/check/explain/tree-docs.js +0 -132
- package/dist/check/explain/tree-docs.js.map +0 -1
- package/dist/check/explain/wiring-docs.d.ts +0 -3
- package/dist/check/explain/wiring-docs.d.ts.map +0 -1
- package/dist/check/explain/wiring-docs.js +0 -114
- package/dist/check/explain/wiring-docs.js.map +0 -1
- package/dist/check/project/source-at.d.ts +0 -8
- package/dist/check/project/source-at.d.ts.map +0 -1
- package/dist/check/project/source-at.js +0 -29
- package/dist/check/project/source-at.js.map +0 -1
- package/dist/check/purity/purity-rule.d.ts +0 -13
- package/dist/check/purity/purity-rule.d.ts.map +0 -1
- package/dist/check/purity/purity-rule.js +0 -2
- package/dist/check/purity/purity-rule.js.map +0 -1
- package/dist/check/scan/statement-of.d.ts +0 -5
- package/dist/check/scan/statement-of.d.ts.map +0 -1
- package/dist/check/scan/statement-of.js +0 -70
- package/dist/check/scan/statement-of.js.map +0 -1
- package/dist/check/suppressions/is-suppressed.d.ts +0 -8
- package/dist/check/suppressions/is-suppressed.d.ts.map +0 -1
- package/dist/check/suppressions/is-suppressed.js +0 -11
- package/dist/check/suppressions/is-suppressed.js.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.d.ts +0 -2
- package/dist/check/suppressions/suppression-rule-id.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-rule-id.js +0 -2
- package/dist/check/suppressions/suppression-rule-id.js.map +0 -1
- package/dist/check/suppressions/suppression-violations.d.ts +0 -6
- package/dist/check/suppressions/suppression-violations.d.ts.map +0 -1
- package/dist/check/suppressions/suppression-violations.js +0 -25
- package/dist/check/suppressions/suppression-violations.js.map +0 -1
- package/dist/commands/parse-migration-arguments.d.ts +0 -11
- package/dist/commands/parse-migration-arguments.d.ts.map +0 -1
- package/dist/commands/parse-migration-arguments.js +0 -17
- package/dist/commands/parse-migration-arguments.js.map +0 -1
- package/dist/generate/errors/class-body.d.ts +0 -8
- package/dist/generate/errors/class-body.d.ts.map +0 -1
- package/dist/generate/errors/class-body.js +0 -11
- package/dist/generate/errors/class-body.js.map +0 -1
- package/dist/generate/flags-of.d.ts +0 -4
- package/dist/generate/flags-of.d.ts.map +0 -1
- package/dist/generate/flags-of.js +0 -6
- package/dist/generate/flags-of.js.map +0 -1
- package/dist/generate/kinds/tables-files.d.ts +0 -3
- package/dist/generate/kinds/tables-files.d.ts.map +0 -1
- package/dist/generate/kinds/tables-files.js +0 -7
- package/dist/generate/kinds/tables-files.js.map +0 -1
- package/dist/generate/shared-writes.d.ts +0 -12
- package/dist/generate/shared-writes.d.ts.map +0 -1
- package/dist/generate/shared-writes.js +0 -127
- package/dist/generate/shared-writes.js.map +0 -1
- package/dist/merge/order/comes-after.d.ts +0 -8
- package/dist/merge/order/comes-after.d.ts.map +0 -1
- package/dist/merge/order/comes-after.js +0 -9
- package/dist/merge/order/comes-after.js.map +0 -1
- package/dist/merge/order/in-order.d.ts +0 -4
- package/dist/merge/order/in-order.d.ts.map +0 -1
- package/dist/merge/order/in-order.js +0 -6
- package/dist/merge/order/in-order.js.map +0 -1
- package/dist/merge/order/migrations-of-commit.d.ts +0 -7
- package/dist/merge/order/migrations-of-commit.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-commit.js +0 -43
- package/dist/merge/order/migrations-of-commit.js.map +0 -1
- package/dist/merge/order/migrations-of-tree.d.ts +0 -9
- package/dist/merge/order/migrations-of-tree.d.ts.map +0 -1
- package/dist/merge/order/migrations-of-tree.js +0 -25
- package/dist/merge/order/migrations-of-tree.js.map +0 -1
- package/dist/merge/order/ordered-migration.d.ts.map +0 -1
- package/dist/merge/order/ordered-migration.js.map +0 -1
- package/dist/merge/restamp-class.d.ts.map +0 -1
- package/dist/merge/restamp-class.js.map +0 -1
- package/dist/mutation/changed-files.d.ts +0 -7
- package/dist/mutation/changed-files.d.ts.map +0 -1
- package/dist/mutation/changed-files.js +0 -15
- package/dist/mutation/changed-files.js.map +0 -1
- package/dist/worker/changed-files.d.ts.map +0 -1
- package/dist/worker/changed-files.js +0 -20
- package/dist/worker/changed-files.js.map +0 -1
- package/templates/gateway/platform-test.declared.tpl +0 -4
- package/templates/gateway/platform.declared.tpl +0 -4
- /package/dist/{merge/order → orm/migrations}/ordered-migration.js +0 -0
- /package/dist/{merge → orm/migrations}/restamp-class.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { SchemaBlock } from './schema-block.js';
|
|
1
2
|
/** The preview features the generator of the client of a main schema file turns on. */
|
|
2
3
|
export function previewFeaturesOf(schema) {
|
|
3
|
-
|
|
4
|
-
const listed = /^\s*previewFeatures\s*=\s*\[([^\]]*)\]/m.exec(generator)?.[1] ?? '';
|
|
5
|
-
return [...listed.matchAll(/"([^"]+)"/g)].map(([, feature = '']) => feature);
|
|
4
|
+
return SchemaBlock.of(schema, 'generator\\s+client')?.list('previewFeatures')?.items ?? [];
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=preview-features-of.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-features-of.js","sourceRoot":"","sources":["../../src/prisma-schema/preview-features-of.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,
|
|
1
|
+
{"version":3,"file":"preview-features-of.js","sourceRoot":"","sources":["../../src/prisma-schema/preview-features-of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,uFAAuF;AACvF,MAAM,UAAU,iBAAiB,CAAC,MAAc;IAC9C,OAAO,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,CAAC,EAAE,IAAI,CAAC,iBAAiB,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC;AAC7F,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SchemaList } from './schema-list.js';
|
|
2
|
+
/**
|
|
3
|
+
* A `datasource` or `generator` block of a Prisma schema, read in its code: the lists it assigns,
|
|
4
|
+
* and the schema with one more assignment. Every edit stays inside the block, whatever the text
|
|
5
|
+
* around it looks like.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SchemaBlock {
|
|
8
|
+
private readonly text;
|
|
9
|
+
private readonly code;
|
|
10
|
+
private readonly open;
|
|
11
|
+
private readonly close;
|
|
12
|
+
private constructor();
|
|
13
|
+
/** The block a line opens with this head (`datasource \w+`, `generator client`), undefined when the schema has none. */
|
|
14
|
+
static of(text: string, head: string): SchemaBlock | undefined;
|
|
15
|
+
/** The list assigned to a key of the block, undefined when the block assigns none. */
|
|
16
|
+
list(key: string): SchemaList | undefined;
|
|
17
|
+
/** The schema with one more assignment, last in the block, its `=` under those of the block. */
|
|
18
|
+
withAssignment(key: string, value: string): string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=schema-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-block.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/schema-block.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;GAIG;AACH,qBAAa,WAAW;IAEpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,eAKH;IAEJ,wHAAwH;IACxH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAO7D;IAED,sFAAsF;IACtF,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CASxC;IAED,gGAAgG;IAChG,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAKjD;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { escapeRegExp } from '../check/text/escape-reg-exp.js';
|
|
2
|
+
import { schemaCode } from './schema-code.js';
|
|
3
|
+
import { SchemaList } from './schema-list.js';
|
|
4
|
+
/**
|
|
5
|
+
* A `datasource` or `generator` block of a Prisma schema, read in its code: the lists it assigns,
|
|
6
|
+
* and the schema with one more assignment. Every edit stays inside the block, whatever the text
|
|
7
|
+
* around it looks like.
|
|
8
|
+
*/
|
|
9
|
+
export class SchemaBlock {
|
|
10
|
+
text;
|
|
11
|
+
code;
|
|
12
|
+
open;
|
|
13
|
+
close;
|
|
14
|
+
constructor(text, code, open, close) {
|
|
15
|
+
this.text = text;
|
|
16
|
+
this.code = code;
|
|
17
|
+
this.open = open;
|
|
18
|
+
this.close = close;
|
|
19
|
+
}
|
|
20
|
+
/** The block a line opens with this head (`datasource \w+`, `generator client`), undefined when the schema has none. */
|
|
21
|
+
static of(text, head) {
|
|
22
|
+
const code = schemaCode(text);
|
|
23
|
+
const opened = new RegExp(`^${head}\\s*\\{`, 'm').exec(code);
|
|
24
|
+
const open = opened === null ? -1 : opened.index + opened[0].length - 1;
|
|
25
|
+
const close = code.indexOf('}', open);
|
|
26
|
+
return open === -1 || close === -1 ? undefined : new SchemaBlock(text, code, open, close);
|
|
27
|
+
}
|
|
28
|
+
/** The list assigned to a key of the block, undefined when the block assigns none. */
|
|
29
|
+
list(key) {
|
|
30
|
+
const inside = this.code.slice(this.open, this.close);
|
|
31
|
+
const assigned = new RegExp(`^[ \\t]*${escapeRegExp(key)}[ \\t]*=[ \\t]*\\[`, 'm').exec(inside);
|
|
32
|
+
const open = assigned === null ? -1 : this.open + assigned.index + assigned[0].length - 1;
|
|
33
|
+
const close = this.code.indexOf(']', open);
|
|
34
|
+
return open === -1 || close === -1 || close > this.close
|
|
35
|
+
? undefined
|
|
36
|
+
: new SchemaList(this.text, this.code, open, close);
|
|
37
|
+
}
|
|
38
|
+
/** The schema with one more assignment, last in the block, its `=` under those of the block. */
|
|
39
|
+
withAssignment(key, value) {
|
|
40
|
+
const column = /^([ \t]*\w+[ \t]*)=/m.exec(this.code.slice(this.open, this.close))?.[1]?.length ?? 0;
|
|
41
|
+
const at = this.text.lastIndexOf('\n', this.close) + 1;
|
|
42
|
+
return `${this.text.slice(0, at)}${` ${key} `.padEnd(column)}= ${value}\n${this.text.slice(at)}`;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=schema-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-block.js","sourceRoot":"","sources":["../../src/prisma-schema/schema-block.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Prisma schema with its comments and the contents of its strings blanked, offset for offset:
|
|
3
|
+
* what a block, an assignment or a bracket is looked for in, so that a comment that shows an old
|
|
4
|
+
* list or a connection string that holds `//` is never taken for the schema.
|
|
5
|
+
*/
|
|
6
|
+
export declare function schemaCode(text: string): string;
|
|
7
|
+
//# sourceMappingURL=schema-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-code.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/schema-code.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI/C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const COMMENT_OR_STRING = /\/\/[^\n]*|"(?:[^"\\\n]|\\.)*"/g;
|
|
2
|
+
/**
|
|
3
|
+
* A Prisma schema with its comments and the contents of its strings blanked, offset for offset:
|
|
4
|
+
* what a block, an assignment or a bracket is looked for in, so that a comment that shows an old
|
|
5
|
+
* list or a connection string that holds `//` is never taken for the schema.
|
|
6
|
+
*/
|
|
7
|
+
export function schemaCode(text) {
|
|
8
|
+
return text.replace(COMMENT_OR_STRING, (found) => found.startsWith('"') ? `"${' '.repeat(found.length - 2)}"` : ' '.repeat(found.length));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=schema-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-code.js","sourceRoot":"","sources":["../../src/prisma-schema/schema-code.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;AAE5D;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,CAC/C,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CACvF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** A list of strings assigned in a block of a Prisma schema: `schemas = ["messaging", "audit"]`, on one line or several. */
|
|
2
|
+
export declare class SchemaList {
|
|
3
|
+
private readonly text;
|
|
4
|
+
private readonly code;
|
|
5
|
+
private readonly open;
|
|
6
|
+
private readonly close;
|
|
7
|
+
constructor(text: string, code: string, open: number, close: number);
|
|
8
|
+
/** The strings of the list, in their order. */
|
|
9
|
+
get items(): string[];
|
|
10
|
+
/** The schema with the item last in the list, after the last one it holds, unless it holds it. */
|
|
11
|
+
with(item: string): string;
|
|
12
|
+
private strings;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=schema-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-list.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/schema-list.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,qBAAa,UAAU;IAEnB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,YACmB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EAC5B;IAEJ,+CAA+C;IAC/C,IAAI,KAAK,IAAI,MAAM,EAAE,CAEpB;IAED,kGAAkG;IAClG,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CASzB;IAED,OAAO,CAAC,OAAO;CAMhB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** A list of strings assigned in a block of a Prisma schema: `schemas = ["messaging", "audit"]`, on one line or several. */
|
|
2
|
+
export class SchemaList {
|
|
3
|
+
text;
|
|
4
|
+
code;
|
|
5
|
+
open;
|
|
6
|
+
close;
|
|
7
|
+
constructor(text, code, open, close) {
|
|
8
|
+
this.text = text;
|
|
9
|
+
this.code = code;
|
|
10
|
+
this.open = open;
|
|
11
|
+
this.close = close;
|
|
12
|
+
}
|
|
13
|
+
/** The strings of the list, in their order. */
|
|
14
|
+
get items() {
|
|
15
|
+
return this.strings().map(({ start, end }) => this.text.slice(start + 1, end - 1));
|
|
16
|
+
}
|
|
17
|
+
/** The schema with the item last in the list, after the last one it holds, unless it holds it. */
|
|
18
|
+
with(item) {
|
|
19
|
+
if (this.items.includes(item)) {
|
|
20
|
+
return this.text;
|
|
21
|
+
}
|
|
22
|
+
const last = this.strings().at(-1);
|
|
23
|
+
const [at, written] = last === undefined ? [this.open + 1, `"${item}"`] : [last.end, `, "${item}"`];
|
|
24
|
+
return `${this.text.slice(0, at)}${written}${this.text.slice(at)}`;
|
|
25
|
+
}
|
|
26
|
+
strings() {
|
|
27
|
+
return [...this.code.slice(this.open, this.close).matchAll(/"[^"]*"/g)].map((found) => ({
|
|
28
|
+
start: this.open + found.index,
|
|
29
|
+
end: this.open + found.index + found[0].length,
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=schema-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-list.js","sourceRoot":"","sources":["../../src/prisma-schema/schema-list.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,MAAM,OAAO,UAAU;IAEF,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IAJxB,YACmB,IAAY,EACZ,IAAY,EACZ,IAAY,EACZ,KAAa;oBAHb,IAAI;oBACJ,IAAI;oBACJ,IAAI;qBACJ,KAAK;IACrB,CAAC;IAEJ,+CAA+C;IAC/C,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,kGAAkG;IAClG,IAAI,CAAC,IAAY;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC,CAAC;QAEpG,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACrE,CAAC;IAEO,OAAO;QACb,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACtF,KAAK,EAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK;YAC9B,GAAG,EAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM;SAC/C,CAAC,CAAC,CAAC;IACN,CAAC;CACF"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* The main schema file with this database schema last in its datasource, unless it lists it.
|
|
3
|
+
* Refused when the datasource lists no schemas: the tables of the schema would be declared in a
|
|
4
|
+
* database schema Prisma is not told of.
|
|
5
|
+
*/
|
|
2
6
|
export declare function withDatasourceSchema(text: string, schema: string): string;
|
|
3
7
|
//# sourceMappingURL=with-datasource-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-datasource-schema.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/with-datasource-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"with-datasource-schema.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/with-datasource-schema.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAWzE"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CliError } from '../cli-error.js';
|
|
2
|
+
import { datasourceList } from './datasource-list.js';
|
|
3
|
+
import { PRISMA_MAIN_SCHEMA } from './prisma-main-schema.js';
|
|
4
|
+
/**
|
|
5
|
+
* The main schema file with this database schema last in its datasource, unless it lists it.
|
|
6
|
+
* Refused when the datasource lists no schemas: the tables of the schema would be declared in a
|
|
7
|
+
* database schema Prisma is not told of.
|
|
8
|
+
*/
|
|
3
9
|
export function withDatasourceSchema(text, schema) {
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
const listed = datasourceList(text);
|
|
11
|
+
if (listed === undefined) {
|
|
12
|
+
throw new CliError(`${PRISMA_MAIN_SCHEMA}: the datasource lists no \`schemas = [...]\` the generator can add "${schema}" to.`, `Write \`schemas = ["${schema}"]\` in the datasource of that file, with the schemas it already uses, then run the command again.`);
|
|
6
13
|
}
|
|
7
|
-
return
|
|
14
|
+
return listed.with(schema);
|
|
8
15
|
}
|
|
9
16
|
//# sourceMappingURL=with-datasource-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-datasource-schema.js","sourceRoot":"","sources":["../../src/prisma-schema/with-datasource-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"with-datasource-schema.js","sourceRoot":"","sources":["../../src/prisma-schema/with-datasource-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAY,EAAE,MAAc;IAC/D,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEpC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,MAAM,IAAI,QAAQ,CAChB,GAAG,kBAAkB,wEAAwE,MAAM,OAAO,EAC1G,uBAAuB,MAAM,oGAAoG,CAClI,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-preview-feature.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/with-preview-feature.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"with-preview-feature.d.ts","sourceRoot":"","sources":["../../src/prisma-schema/with-preview-feature.ts"],"names":[],"mappings":"AAIA,2GAA2G;AAC3G,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAQ1E"}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
+
import { SchemaBlock } from './schema-block.js';
|
|
2
|
+
const KEY = 'previewFeatures';
|
|
1
3
|
/** The generator of the client with `feature` among its preview features, its assignments kept aligned. */
|
|
2
4
|
export function withPreviewFeature(schema, feature) {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function generatorWith(body, feature) {
|
|
7
|
-
const listed = /^(\s*previewFeatures\s*=\s*\[)([^\]]*)\]/m.exec(body);
|
|
8
|
-
if (listed === null) {
|
|
9
|
-
const column = /^(\s*\w+\s*)=/m.exec(body)?.[1]?.length ?? 0;
|
|
10
|
-
return `${body}${' previewFeatures'.padEnd(column)}= ["${feature}"]\n`;
|
|
11
|
-
}
|
|
12
|
-
const [assignment, opening = '', features = ''] = listed;
|
|
13
|
-
if (features.includes(`"${feature}"`)) {
|
|
14
|
-
return body;
|
|
5
|
+
const generator = SchemaBlock.of(schema, 'generator\\s+client');
|
|
6
|
+
if (generator === undefined) {
|
|
7
|
+
return schema;
|
|
15
8
|
}
|
|
16
|
-
|
|
17
|
-
return body.replace(assignment, `${opening}${all.join(', ')}]`);
|
|
9
|
+
return generator.list(KEY)?.with(feature) ?? generator.withAssignment(KEY, `["${feature}"]`);
|
|
18
10
|
}
|
|
19
11
|
//# sourceMappingURL=with-preview-feature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-preview-feature.js","sourceRoot":"","sources":["../../src/prisma-schema/with-preview-feature.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"with-preview-feature.js","sourceRoot":"","sources":["../../src/prisma-schema/with-preview-feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,GAAG,GAAG,iBAAiB,CAAC;AAE9B,2GAA2G;AAC3G,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,OAAe;IAChE,MAAM,SAAS,GAAG,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAEhE,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,KAAK,OAAO,IAAI,CAAC,CAAC;AAC/F,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { scan } from '../check/scan/scan.js';
|
|
2
|
-
import { classBody } from '../
|
|
2
|
+
import { classBody } from '../source-text/index.js';
|
|
3
3
|
import { importsUsedBy } from './imports-used-by.js';
|
|
4
4
|
const IMPORT = /^import [^;]+;\n/gm;
|
|
5
5
|
/**
|
|
@@ -14,7 +14,7 @@ export function cutFactories(source, className, moved) {
|
|
|
14
14
|
return text.slice(0, factory.start) + text.slice(lineEnd === -1 ? text.length : lineEnd + 1);
|
|
15
15
|
}, source);
|
|
16
16
|
const scanned = scan(cut);
|
|
17
|
-
const body = classBody(scanned, className);
|
|
17
|
+
const body = classBody(scanned.code, className);
|
|
18
18
|
const inside = body === undefined ? '' : cut.slice(body.open + 1, body.close);
|
|
19
19
|
if (body === undefined || inside.trim() === '') {
|
|
20
20
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cut-factories.js","sourceRoot":"","sources":["../../src/refusals/cut-factories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"cut-factories.js","sourceRoot":"","sources":["../../src/refusals/cut-factories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,GAAG,oBAAoB,CAAC;AAEpC;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,SAAiB,EAAE,KAAgC;IAC9F,MAAM,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC;SACnB,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;SACjC,MAAM,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACxB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QAEhD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IAC/F,CAAC,EAAE,MAAM,CAAC,CAAC;IAEb,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAE9E,IAAI,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,MAAM;SACrB,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;SACnB,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B,OAAO,EAAE,IAAI,CAAC;IAEjB,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxE,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAEtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-concept-error.d.ts","sourceRoot":"","sources":["../../src/refusals/read-concept-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"read-concept-error.d.ts","sourceRoot":"","sources":["../../src/refusals/read-concept-error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,uBAAuB,CAAC;AAS/E,UAAU,MAAM;IACd,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAQD,iIAAiI;AACjI,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAgB9F"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { wholeLiteral } from '../check/declarations/whole-literal.js';
|
|
2
2
|
import { scan } from '../check/scan/scan.js';
|
|
3
3
|
import { callArguments } from '../check/text/call-arguments.js';
|
|
4
|
-
import { classBody } from '../generate/errors/class-body.js';
|
|
5
4
|
import { staticMethods } from '../generate/errors/static-methods.js';
|
|
6
5
|
import { firstParameter } from './first-parameter.js';
|
|
7
6
|
import { memberStart } from './member-start.js';
|
|
7
|
+
import { classBody } from '../source-text/index.js';
|
|
8
8
|
const CLASS = /export\s+class\s+([A-Za-z_$][\w$]*)\s+extends\s+ConceptError\b/;
|
|
9
9
|
const REFUSAL_CALL = /(?<![\w$])([A-Za-z_$][\w$]*)\s*\.\s*refusal\s*\(/g;
|
|
10
10
|
const IMPORT = /^import [^;]+;\n/gm;
|
|
@@ -13,7 +13,7 @@ export function readConceptError(source, origin) {
|
|
|
13
13
|
const scanned = scan(source);
|
|
14
14
|
const declared = CLASS.exec(scanned.code);
|
|
15
15
|
const className = declared?.[1] ?? '';
|
|
16
|
-
const body = classBody(scanned, className);
|
|
16
|
+
const body = classBody(scanned.code, className);
|
|
17
17
|
if (declared === null || body === undefined) {
|
|
18
18
|
return undefined;
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-concept-error.js","sourceRoot":"","sources":["../../src/refusals/read-concept-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAa,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"read-concept-error.js","sourceRoot":"","sources":["../../src/refusals/read-concept-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAa,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAqB,MAAM,mCAAmC,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,KAAK,GAAG,gEAAgE,CAAC;AAC/E,MAAM,YAAY,GAAG,mDAAmD,CAAC;AACzE,MAAM,MAAM,GAAG,oBAAoB,CAAC;AAapC,iIAAiI;AACjI,MAAM,UAAU,gBAAgB,CAAC,MAAc,EAAE,MAAc;IAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACtC,MAAM,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAEhD,IAAI,QAAQ,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QAC5C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,GAAG,MAAM;QACT,SAAS;QACT,SAAS,EAAE,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;QAC/G,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE;KACpC,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,IAAU,EAAE,MAAoB;IACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACjD,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IACtD,MAAM,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE9F,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;AACjG,CAAC;AAED,uGAAuG;AACvG,SAAS,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,EAAQ,EAAE,MAAoB;IAChE,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;IACtF,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAErB,IAAI,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,wDAAwD,EAAE,CAAC;IAC/F,CAAC;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;QAChD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,4BAA4B,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,wBAAwB,EAAE,CAAC;IACxG,CAAC;IAED,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACpG,MAAM,IAAI,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE5E,IAAI,IAAI,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAChD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,0DAA0D,EAAE,CAAC;IACjG,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC"}
|
package/dist/run.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { Command } from './commands/command.js';
|
|
2
1
|
import type { Io } from './commands/io.js';
|
|
3
|
-
export declare const COMMANDS: Readonly<Record<string, Command>>;
|
|
4
2
|
/** What the entry reads of its environment: a spec passes `win32` to see what Windows outside WSL 2 gets. */
|
|
5
3
|
export interface RunOptions {
|
|
6
4
|
readonly platform?: NodeJS.Platform;
|
package/dist/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAiBxC,6GAA6G;AAC7G,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;CACrC;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,GAAE,EAAc,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CA0B9F"}
|
package/dist/run.js
CHANGED
|
@@ -1,130 +1,53 @@
|
|
|
1
|
+
import { COMMANDS } from './commands.js';
|
|
2
|
+
import { Arguments } from './commands/arguments.js';
|
|
1
3
|
import { inProjectDialect } from './package-manager/in-project-dialect.js';
|
|
2
|
-
import { acceptanceCommand } from './commands/acceptance.js';
|
|
3
|
-
import { affectedCommand } from './commands/affected.js';
|
|
4
|
-
import { buildAliasesCommand } from './commands/build-aliases.js';
|
|
5
|
-
import { checkFileCommand, explainCommand, rulesCommand } from './commands/check.js';
|
|
6
|
-
import { checksCommand } from './commands/checks.js';
|
|
7
|
-
import { citedCommand } from './commands/cited.js';
|
|
8
|
-
import { controllersCommand } from './commands/controllers.js';
|
|
9
|
-
import { depcruiseConfigCommand } from './commands/depcruise-config.js';
|
|
10
|
-
import { describeCommand } from './commands/describe.js';
|
|
11
|
-
import { digestCommand } from './commands/digest.js';
|
|
12
|
-
import { docsCommand } from './commands/docs.js';
|
|
13
|
-
import { doctorCommand } from './commands/doctor.js';
|
|
14
|
-
import { lintCommand } from './commands/lint.js';
|
|
15
|
-
import { drizzleGenerateCommand } from './commands/drizzle-generate.js';
|
|
16
|
-
import { knexGenerateCommand } from './commands/knex-generate.js';
|
|
17
|
-
import { prismaClientCommand } from './commands/prisma-client.js';
|
|
18
|
-
import { prismaGenerateCommand } from './commands/prisma-generate.js';
|
|
19
|
-
import { typeormGenerateCommand } from './commands/typeorm-generate.js';
|
|
20
|
-
import { errorFactoriesCommand } from './commands/error-factories.js';
|
|
21
|
-
import { generateCommand } from './commands/generate.js';
|
|
22
|
-
import { initCommand } from './commands/init.js';
|
|
23
|
-
import { listCommand } from './commands/list.js';
|
|
24
|
-
import { measuresCommand } from './commands/measures.js';
|
|
25
|
-
import { mergeTrunkCommand } from './commands/merge-trunk.js';
|
|
26
|
-
import { planWavesCommand } from './commands/plan-waves.js';
|
|
27
|
-
import { moveToModuleCommand } from './commands/move-to-module.js';
|
|
28
|
-
import { contextLayoutCommand } from './commands/context-layout.js';
|
|
29
|
-
import { platformFoldersCommand } from './commands/platform-folders.js';
|
|
30
|
-
import { sdkCommand } from './commands/sdk.js';
|
|
31
|
-
import { statusCommand } from './commands/status.js';
|
|
32
|
-
import { storyCheckCommand } from './commands/story-check.js';
|
|
33
|
-
import { storiesCommand } from './commands/stories.js';
|
|
34
|
-
import { storyCommand } from './commands/story.js';
|
|
35
|
-
import { storyScopeCommand } from './commands/story-scope.js';
|
|
36
|
-
import { worktreeCommand } from './commands/worktree.js';
|
|
37
|
-
import { todoCommand } from './commands/todo.js';
|
|
38
|
-
import { mutationCommand } from './commands/mutation.js';
|
|
39
|
-
import { valueObjectsCommand } from './commands/value-objects.js';
|
|
40
|
-
import { verifyMergeCommand } from './commands/verify-merge.js';
|
|
41
|
-
import { verifySliceCommand } from './commands/verify-slice.js';
|
|
42
|
-
import { workerScopeCommand } from './commands/worker-scope.js';
|
|
43
4
|
import { CliError } from './cli-error.js';
|
|
44
|
-
import { ArgumentsError } from './commands/arguments-error.js';
|
|
45
|
-
import { ownEntry } from './config/values/own-entry.js';
|
|
46
5
|
import { helpFor } from './help/help-for.js';
|
|
47
6
|
import { usageFor } from './help/usage-for.js';
|
|
48
7
|
import { ISSUES_URL } from './issues-url.js';
|
|
49
8
|
import { refuseWindowsShell } from './refuse-windows-shell.js';
|
|
50
9
|
import { VERSION } from './version.js';
|
|
51
10
|
import { stdoutJson } from './json/stdout-json.js';
|
|
52
|
-
export const COMMANDS = {
|
|
53
|
-
affected: affectedCommand,
|
|
54
|
-
init: initCommand,
|
|
55
|
-
generate: generateCommand,
|
|
56
|
-
list: listCommand,
|
|
57
|
-
describe: describeCommand,
|
|
58
|
-
status: statusCommand,
|
|
59
|
-
todo: todoCommand,
|
|
60
|
-
'plan-waves': planWavesCommand,
|
|
61
|
-
'story-check': storyCheckCommand,
|
|
62
|
-
acceptance: acceptanceCommand,
|
|
63
|
-
'story-scope': storyScopeCommand,
|
|
64
|
-
story: storyCommand,
|
|
65
|
-
stories: storiesCommand,
|
|
66
|
-
digest: digestCommand,
|
|
67
|
-
measures: measuresCommand,
|
|
68
|
-
mutation: mutationCommand,
|
|
69
|
-
worktree: worktreeCommand,
|
|
70
|
-
'worker-scope': workerScopeCommand,
|
|
71
|
-
'verify-slice': verifySliceCommand,
|
|
72
|
-
cited: citedCommand,
|
|
73
|
-
'verify-merge': verifyMergeCommand,
|
|
74
|
-
'merge-trunk': mergeTrunkCommand,
|
|
75
|
-
docs: docsCommand,
|
|
76
|
-
doctor: doctorCommand,
|
|
77
|
-
sdk: sdkCommand,
|
|
78
|
-
'depcruise-config': depcruiseConfigCommand,
|
|
79
|
-
'build-aliases': buildAliasesCommand,
|
|
80
|
-
'drizzle-generate': drizzleGenerateCommand,
|
|
81
|
-
'knex-generate': knexGenerateCommand,
|
|
82
|
-
'prisma-client': prismaClientCommand,
|
|
83
|
-
'prisma-generate': prismaGenerateCommand,
|
|
84
|
-
'typeorm-generate': typeormGenerateCommand,
|
|
85
|
-
'error-factories': errorFactoriesCommand,
|
|
86
|
-
'value-objects': valueObjectsCommand,
|
|
87
|
-
'platform-folders': platformFoldersCommand,
|
|
88
|
-
'context-layout': contextLayoutCommand,
|
|
89
|
-
'move-to-module': moveToModuleCommand,
|
|
90
|
-
controllers: controllersCommand,
|
|
91
|
-
check: checksCommand,
|
|
92
|
-
'check-file': checkFileCommand,
|
|
93
|
-
lint: lintCommand,
|
|
94
|
-
rules: rulesCommand,
|
|
95
|
-
explain: explainCommand,
|
|
96
|
-
};
|
|
97
11
|
/** The exit code of a fault of the kit itself, apart from `1` (violations) and `2` (a mistake of the caller). */
|
|
98
12
|
const INTERNAL_ERROR = 4;
|
|
99
13
|
const processIo = {
|
|
100
14
|
out: (text) => void process.stdout.write(`${text}\n`),
|
|
101
15
|
err: (text) => void process.stderr.write(`${text}\n`),
|
|
102
16
|
};
|
|
103
|
-
/** The other names of a command, resolved once: the help, the refusals and the command read the canonical one. */
|
|
104
|
-
const ALIASES = { g: 'generate' };
|
|
105
17
|
export function run(asked, io = processIo, options) {
|
|
106
18
|
const argv = canonical(asked);
|
|
107
|
-
const
|
|
19
|
+
const line = Arguments.ofEveryCommand(argv);
|
|
20
|
+
const [command] = argv;
|
|
108
21
|
try {
|
|
109
22
|
if (command === '--version' || command === '-v') {
|
|
110
23
|
io.out(VERSION);
|
|
111
24
|
return 0;
|
|
112
25
|
}
|
|
113
|
-
if (
|
|
114
|
-
|
|
115
|
-
[command, ...rest].some((argument) => argument === '--help' || argument === '-h')) {
|
|
116
|
-
io.out(helpFor(argv));
|
|
26
|
+
if (asksForHelp(asked, argv)) {
|
|
27
|
+
io.out(helpFor(argv, line.json));
|
|
117
28
|
return 0;
|
|
118
29
|
}
|
|
119
30
|
return dispatch(argv, io, options);
|
|
120
31
|
}
|
|
121
32
|
catch (error) {
|
|
122
33
|
if (!(error instanceof CliError)) {
|
|
123
|
-
return internalError(
|
|
34
|
+
return internalError(line, error, io);
|
|
124
35
|
}
|
|
125
|
-
return refused(error,
|
|
36
|
+
return refused(error, line, io);
|
|
126
37
|
}
|
|
127
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* No command, `help`, or `--help` anywhere but in the arguments of a command that passes them on:
|
|
41
|
+
* `ddd-ts-kit tsc --help` is the help of the compiler, `ddd-ts-kit help tsc` the one of the kit.
|
|
42
|
+
*/
|
|
43
|
+
function asksForHelp(asked, argv) {
|
|
44
|
+
const [command] = argv;
|
|
45
|
+
if (command === undefined || command === 'help') {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
return (declared(asked[0] ?? '')?.spec.passesArgumentsOn !== true &&
|
|
49
|
+
argv.some((argument) => argument === '--help' || argument === '-h'));
|
|
50
|
+
}
|
|
128
51
|
/** The command named, once it is known and, on Windows outside WSL 2, allowed to run a script: refused before any work. */
|
|
129
52
|
function dispatch([name = '', ...rest], io, options) {
|
|
130
53
|
const command = commandNamed(name);
|
|
@@ -136,11 +59,11 @@ function dispatch([name = '', ...rest], io, options) {
|
|
|
136
59
|
* it, never with the exit code of a violation. Its stack trace, which tells where, follows the
|
|
137
60
|
* line when `DDD_TS_KIT_DEBUG` is set, and is always in the JSON of `--json`.
|
|
138
61
|
*/
|
|
139
|
-
function internalError(
|
|
62
|
+
function internalError(line, error, io) {
|
|
140
63
|
const message = `internal error of ddd-ts-kit ${VERSION}: ${error instanceof Error ? error.message : String(error)}`;
|
|
141
|
-
const fix = `Please report it at ${ISSUES_URL} with the command: ddd-ts-kit ${
|
|
64
|
+
const fix = `Please report it at ${ISSUES_URL} with the command: ddd-ts-kit ${line.asWritten.join(' ')}`;
|
|
142
65
|
const stack = error instanceof Error ? error.stack : undefined;
|
|
143
|
-
if (
|
|
66
|
+
if (line.json) {
|
|
144
67
|
io.out(stdoutJson({ error: { message, fix, ...(stack === undefined ? {} : { stack }) }, internal: true }));
|
|
145
68
|
}
|
|
146
69
|
else {
|
|
@@ -152,10 +75,9 @@ function internalError(argv, error, io) {
|
|
|
152
75
|
return INTERNAL_ERROR;
|
|
153
76
|
}
|
|
154
77
|
/** Prints a mistake of the caller with its fix; a refused argument is answered with the usage of its command or kind. */
|
|
155
|
-
function refused(error,
|
|
156
|
-
const fix = (error
|
|
157
|
-
|
|
158
|
-
if (argv.includes('--json')) {
|
|
78
|
+
function refused(error, line, io) {
|
|
79
|
+
const fix = usageFor(error, line.asWritten) ?? inProjectDialect(error.fix, line.workingDirectory);
|
|
80
|
+
if (line.json) {
|
|
159
81
|
io.out(stdoutJson({ error: { ...error.facts, message: error.message, fix } }));
|
|
160
82
|
}
|
|
161
83
|
else {
|
|
@@ -163,22 +85,21 @@ function refused(error, argv, io) {
|
|
|
163
85
|
}
|
|
164
86
|
return error.exitCode;
|
|
165
87
|
}
|
|
166
|
-
/**
|
|
167
|
-
function workingDirectoryOf(argv) {
|
|
168
|
-
const asked = argv.indexOf('--cwd');
|
|
169
|
-
return (asked === -1 ? undefined : argv[asked + 1]) ?? process.cwd();
|
|
170
|
-
}
|
|
171
|
-
/** The command line with its command under its canonical name; `help <command> ...` read as `<command> ... --help`. */
|
|
88
|
+
/** The command line with its command under its own name, not its alias; `help <command> ...` read as `<command> ... --help`. */
|
|
172
89
|
function canonical(asked) {
|
|
173
90
|
const [first, ...rest] = asked[0] === 'help' && asked.length > 1 ? [...asked.slice(1), '--help'] : asked;
|
|
174
|
-
return first === undefined ? [] : [
|
|
91
|
+
return first === undefined ? [] : [declared(first)?.spec.name ?? first, ...rest];
|
|
175
92
|
}
|
|
176
93
|
function commandNamed(name) {
|
|
177
|
-
const command =
|
|
94
|
+
const command = declared(name);
|
|
178
95
|
if (command !== undefined) {
|
|
179
96
|
return command;
|
|
180
97
|
}
|
|
181
|
-
const aliases =
|
|
182
|
-
throw new CliError(`Unknown command "${name}".`, `Use one of: ${
|
|
98
|
+
const aliases = COMMANDS.flatMap(({ spec }) => (spec.alias === undefined ? [] : [` ${spec.alias} is ${spec.name}.`]));
|
|
99
|
+
throw new CliError(`Unknown command "${name}".`, `Use one of: ${COMMANDS.map(({ spec }) => spec.name).join(', ')}.${aliases.join('')}`);
|
|
100
|
+
}
|
|
101
|
+
/** The command declared under a name or under an alias. */
|
|
102
|
+
function declared(name) {
|
|
103
|
+
return COMMANDS.find(({ spec }) => spec.name === name || spec.alias === name);
|
|
183
104
|
}
|
|
184
105
|
//# sourceMappingURL=run.js.map
|
package/dist/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"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"}
|