ddd-ts-kit 0.111.0 → 0.113.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 +154 -0
- package/README.fr.md +52 -6
- package/README.md +48 -5
- package/dist/alias/index.d.ts +2 -0
- package/dist/alias/index.d.ts.map +1 -1
- package/dist/alias/index.js +2 -0
- package/dist/alias/index.js.map +1 -1
- package/dist/alias/neighbour-sources.d.ts +17 -0
- package/dist/alias/neighbour-sources.d.ts.map +1 -0
- package/dist/alias/neighbour-sources.js +11 -0
- package/dist/alias/neighbour-sources.js.map +1 -0
- package/dist/alias/neighbour-suffix.d.ts +8 -0
- package/dist/alias/neighbour-suffix.d.ts.map +1 -0
- package/dist/alias/neighbour-suffix.js +10 -0
- package/dist/alias/neighbour-suffix.js.map +1 -0
- package/dist/build/rewrite-aliases.d.ts.map +1 -1
- package/dist/build/rewrite-aliases.js +11 -0
- package/dist/build/rewrite-aliases.js.map +1 -1
- package/dist/check/alias/build-scripts.d.ts.map +1 -1
- package/dist/check/alias/build-scripts.js +4 -8
- package/dist/check/alias/build-scripts.js.map +1 -1
- package/dist/check/alias/compiler-options-of.d.ts +3 -3
- package/dist/check/alias/compiler-options-of.js +17 -6
- package/dist/check/alias/compiler-options-of.js.map +1 -1
- package/dist/check/alias/neighbour-sources.d.ts +12 -0
- package/dist/check/alias/neighbour-sources.d.ts.map +1 -0
- package/dist/check/alias/neighbour-sources.js +80 -0
- package/dist/check/alias/neighbour-sources.js.map +1 -0
- package/dist/check/alias/script-steps.d.ts +11 -0
- package/dist/check/alias/script-steps.d.ts.map +1 -0
- package/dist/check/alias/script-steps.js +22 -0
- package/dist/check/alias/script-steps.js.map +1 -0
- package/dist/check/aspects/adapter-policies.d.ts +10 -0
- package/dist/check/aspects/adapter-policies.d.ts.map +1 -0
- package/dist/check/aspects/adapter-policies.js +104 -0
- package/dist/check/aspects/adapter-policies.js.map +1 -0
- package/dist/check/aspects/adapter-policy.d.ts +18 -0
- package/dist/check/aspects/adapter-policy.d.ts.map +1 -0
- package/dist/check/aspects/adapter-policy.js +2 -0
- package/dist/check/aspects/adapter-policy.js.map +1 -0
- package/dist/check/aspects/is-under-condition.d.ts +7 -0
- package/dist/check/aspects/is-under-condition.d.ts.map +1 -0
- package/dist/check/aspects/is-under-condition.js +50 -0
- package/dist/check/aspects/is-under-condition.js.map +1 -0
- package/dist/check/aspects/stated-policy.d.ts +18 -0
- package/dist/check/aspects/stated-policy.d.ts.map +1 -0
- package/dist/check/aspects/stated-policy.js +39 -0
- package/dist/check/aspects/stated-policy.js.map +1 -0
- package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
- package/dist/check/catalogue/architecture-rules.js +6 -0
- package/dist/check/catalogue/architecture-rules.js.map +1 -1
- package/dist/check/commands/check-command.js +4 -3
- package/dist/check/commands/check-command.js.map +1 -1
- package/dist/check/explain/imports-docs.d.ts.map +1 -1
- package/dist/check/explain/imports-docs.js +5 -3
- package/dist/check/explain/imports-docs.js.map +1 -1
- package/dist/check/explain/persistence-docs.d.ts.map +1 -1
- package/dist/check/explain/persistence-docs.js +38 -0
- package/dist/check/explain/persistence-docs.js.map +1 -1
- package/dist/check/explain/standard-docs.d.ts.map +1 -1
- package/dist/check/explain/standard-docs.js +16 -0
- package/dist/check/explain/standard-docs.js.map +1 -1
- package/dist/check/files/kit-content-types.d.ts +12 -0
- package/dist/check/files/kit-content-types.d.ts.map +1 -0
- package/dist/check/files/kit-content-types.js +38 -0
- package/dist/check/files/kit-content-types.js.map +1 -0
- package/dist/check/files/upload-content-defect.d.ts +7 -0
- package/dist/check/files/upload-content-defect.d.ts.map +1 -0
- package/dist/check/files/upload-content-defect.js +2 -0
- package/dist/check/files/upload-content-defect.js.map +1 -0
- package/dist/check/files/upload-content-defects.d.ts +9 -0
- package/dist/check/files/upload-content-defects.d.ts.map +1 -0
- package/dist/check/files/upload-content-defects.js +54 -0
- package/dist/check/files/upload-content-defects.js.map +1 -0
- package/dist/check/files/upload-declaration.d.ts +7 -0
- package/dist/check/files/upload-declaration.d.ts.map +1 -0
- package/dist/check/files/upload-declaration.js +2 -0
- package/dist/check/files/upload-declaration.js.map +1 -0
- package/dist/check/files/upload-declarations.d.ts +9 -0
- package/dist/check/files/upload-declarations.d.ts.map +1 -0
- package/dist/check/files/upload-declarations.js +41 -0
- package/dist/check/files/upload-declarations.js.map +1 -0
- package/dist/check/fixtures/alias-declared-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/alias-declared-fixtures.js +95 -1
- package/dist/check/fixtures/alias-declared-fixtures.js.map +1 -1
- package/dist/check/fixtures/fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/fixtures.js +4 -0
- package/dist/check/fixtures/fixtures.js.map +1 -1
- package/dist/check/fixtures/imports-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/imports-fixtures.js +97 -0
- package/dist/check/fixtures/imports-fixtures.js.map +1 -1
- package/dist/check/fixtures/read-model-list-files.d.ts +7 -0
- package/dist/check/fixtures/read-model-list-files.d.ts.map +1 -0
- package/dist/check/fixtures/read-model-list-files.js +18 -0
- package/dist/check/fixtures/read-model-list-files.js.map +1 -0
- package/dist/check/fixtures/read-model-listed-fixtures.d.ts +3 -0
- package/dist/check/fixtures/read-model-listed-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/read-model-listed-fixtures.js +292 -0
- package/dist/check/fixtures/read-model-listed-fixtures.js.map +1 -0
- package/dist/check/fixtures/standard-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/standard-fixtures.js +42 -0
- package/dist/check/fixtures/standard-fixtures.js.map +1 -1
- package/dist/check/fixtures/tenancy-fixtures.d.ts.map +1 -1
- package/dist/check/fixtures/tenancy-fixtures.js +2 -1
- package/dist/check/fixtures/tenancy-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 +2 -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 +2 -0
- package/dist/check/fixtures/tenancy-typeorm-fixtures.js.map +1 -1
- package/dist/check/fixtures/upload-fixtures.d.ts +3 -0
- package/dist/check/fixtures/upload-fixtures.d.ts.map +1 -0
- package/dist/check/fixtures/upload-fixtures.js +94 -0
- package/dist/check/fixtures/upload-fixtures.js.map +1 -0
- package/dist/check/migrations/is-working-migration.d.ts +6 -0
- package/dist/check/migrations/is-working-migration.d.ts.map +1 -0
- package/dist/check/migrations/is-working-migration.js +8 -0
- package/dist/check/migrations/is-working-migration.js.map +1 -0
- package/dist/check/migrations/journal-entries.d.ts +4 -0
- package/dist/check/migrations/journal-entries.d.ts.map +1 -0
- package/dist/check/migrations/journal-entries.js +21 -0
- package/dist/check/migrations/journal-entries.js.map +1 -0
- package/dist/check/migrations/read-drizzle-migrations.d.ts.map +1 -1
- package/dist/check/migrations/read-drizzle-migrations.js +4 -9
- package/dist/check/migrations/read-drizzle-migrations.js.map +1 -1
- package/dist/check/model/finding.d.ts +2 -1
- package/dist/check/model/finding.d.ts.map +1 -1
- package/dist/check/model/violation.d.ts +4 -1
- package/dist/check/model/violation.d.ts.map +1 -1
- package/dist/check/modules/imported-modules.d.ts +4 -0
- package/dist/check/modules/imported-modules.d.ts.map +1 -0
- package/dist/check/modules/imported-modules.js +5 -0
- package/dist/check/modules/imported-modules.js.map +1 -0
- package/dist/check/modules/module-imports.d.ts +17 -0
- package/dist/check/modules/module-imports.d.ts.map +1 -0
- package/dist/check/modules/module-imports.js +23 -0
- package/dist/check/modules/module-imports.js.map +1 -0
- package/dist/check/project/assemble-project.d.ts.map +1 -1
- package/dist/check/project/assemble-project.js +1 -8
- package/dist/check/project/assemble-project.js.map +1 -1
- package/dist/check/project/file-severity.d.ts +4 -0
- package/dist/check/project/file-severity.d.ts.map +1 -0
- package/dist/check/project/file-severity.js +11 -0
- package/dist/check/project/file-severity.js.map +1 -0
- package/dist/check/project/load-project.js +1 -10
- package/dist/check/project/load-project.js.map +1 -1
- package/dist/check/project/not-in-the-tree.d.ts +10 -0
- package/dist/check/project/not-in-the-tree.d.ts.map +1 -0
- package/dist/check/project/not-in-the-tree.js +17 -0
- package/dist/check/project/not-in-the-tree.js.map +1 -0
- package/dist/check/project/skipped-directories.d.ts +3 -0
- package/dist/check/project/skipped-directories.d.ts.map +1 -0
- package/dist/check/project/skipped-directories.js +3 -0
- package/dist/check/project/skipped-directories.js.map +1 -0
- package/dist/check/project/walk-directory.d.ts.map +1 -1
- package/dist/check/project/walk-directory.js +1 -1
- package/dist/check/project/walk-directory.js.map +1 -1
- package/dist/check/read-models/list-findings.d.ts +22 -0
- package/dist/check/read-models/list-findings.d.ts.map +1 -0
- package/dist/check/read-models/list-findings.js +84 -0
- package/dist/check/read-models/list-findings.js.map +1 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts +3 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.d.ts.map +1 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.js +179 -0
- package/dist/check/rules/aspects-timeout-covers-delegate.js.map +1 -0
- package/dist/check/rules/declarations-port-adapter-wired.js +9 -2
- package/dist/check/rules/declarations-port-adapter-wired.js.map +1 -1
- package/dist/check/rules/files-upload-content-rule.d.ts +3 -0
- package/dist/check/rules/files-upload-content-rule.d.ts.map +1 -0
- package/dist/check/rules/files-upload-content-rule.js +25 -0
- package/dist/check/rules/files-upload-content-rule.js.map +1 -0
- package/dist/check/rules/imports-alias-declared.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-declared.js +3 -1
- package/dist/check/rules/imports-alias-declared.js.map +1 -1
- package/dist/check/rules/imports-alias-only.d.ts.map +1 -1
- package/dist/check/rules/imports-alias-only.js +86 -7
- package/dist/check/rules/imports-alias-only.js.map +1 -1
- package/dist/check/rules/module-no-cycle.d.ts.map +1 -1
- package/dist/check/rules/module-no-cycle.js +12 -34
- package/dist/check/rules/module-no-cycle.js.map +1 -1
- package/dist/check/rules/persistence-read-model-listed.d.ts +3 -0
- package/dist/check/rules/persistence-read-model-listed.d.ts.map +1 -0
- package/dist/check/rules/persistence-read-model-listed.js +93 -0
- package/dist/check/rules/persistence-read-model-listed.js.map +1 -0
- package/dist/check/scan/lexer.d.ts +4 -0
- package/dist/check/scan/lexer.d.ts.map +1 -1
- package/dist/check/scan/lexer.js +11 -0
- package/dist/check/scan/lexer.js.map +1 -1
- package/dist/check/scan/scan.d.ts +6 -0
- package/dist/check/scan/scan.d.ts.map +1 -1
- package/dist/check/scan/scan.js +1 -0
- package/dist/check/scan/scan.js.map +1 -1
- package/dist/check/structure/read-structure.js +35 -13
- package/dist/check/structure/read-structure.js.map +1 -1
- package/dist/cli-error.d.ts +7 -2
- package/dist/cli-error.d.ts.map +1 -1
- package/dist/cli-error.js +8 -2
- package/dist/cli-error.js.map +1 -1
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +4 -0
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/json-report.js +4 -4
- package/dist/commands/json-report.js.map +1 -1
- package/dist/commands/knex-generate.d.ts.map +1 -1
- package/dist/commands/knex-generate.js +2 -1
- package/dist/commands/knex-generate.js.map +1 -1
- package/dist/commands/move-to-module.d.ts +6 -1
- package/dist/commands/move-to-module.d.ts.map +1 -1
- package/dist/commands/move-to-module.js +28 -3
- package/dist/commands/move-to-module.js.map +1 -1
- package/dist/commands/print-report.js +3 -0
- package/dist/commands/print-report.js.map +1 -1
- package/dist/commands/prisma-client.d.ts +8 -0
- package/dist/commands/prisma-client.d.ts.map +1 -0
- package/dist/commands/prisma-client.js +23 -0
- package/dist/commands/prisma-client.js.map +1 -0
- package/dist/commands/prisma-generate.d.ts.map +1 -1
- package/dist/commands/prisma-generate.js +2 -1
- package/dist/commands/prisma-generate.js.map +1 -1
- package/dist/commands/typeorm-generate.d.ts.map +1 -1
- package/dist/commands/typeorm-generate.js +2 -1
- package/dist/commands/typeorm-generate.js.map +1 -1
- package/dist/commands/verify-merge.d.ts +4 -2
- package/dist/commands/verify-merge.d.ts.map +1 -1
- package/dist/commands/verify-merge.js +8 -5
- package/dist/commands/verify-merge.js.map +1 -1
- package/dist/generate/generate-options.d.ts +3 -0
- package/dist/generate/generate-options.d.ts.map +1 -1
- package/dist/generate/generate-options.js +1 -0
- package/dist/generate/generate-options.js.map +1 -1
- package/dist/generate/kind.d.ts +2 -0
- package/dist/generate/kind.d.ts.map +1 -1
- package/dist/generate/kinds/declare-storage.d.ts.map +1 -1
- package/dist/generate/kinds/declare-storage.js +6 -1
- package/dist/generate/kinds/declare-storage.js.map +1 -1
- package/dist/generate/kinds/declare-table.d.ts +2 -0
- package/dist/generate/kinds/declare-table.d.ts.map +1 -1
- package/dist/generate/kinds/declare-table.js +65 -1
- package/dist/generate/kinds/declare-table.js.map +1 -1
- package/dist/generate/kinds/file-upload/upload-file-vars.d.ts +9 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.d.ts.map +1 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.js +39 -0
- package/dist/generate/kinds/file-upload/upload-file-vars.js.map +1 -0
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js +2 -1
- package/dist/generate/kinds/file-upload/write-nest-upload-controller.js.map +1 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.js +2 -1
- package/dist/generate/kinds/file-upload/write-upload-controller.js.map +1 -1
- package/dist/generate/kinds/file-upload-kind.d.ts.map +1 -1
- package/dist/generate/kinds/file-upload-kind.js +5 -3
- package/dist/generate/kinds/file-upload-kind.js.map +1 -1
- package/dist/generate/kinds/read-model/list-read-model.d.ts +12 -0
- package/dist/generate/kinds/read-model/list-read-model.d.ts.map +1 -0
- package/dist/generate/kinds/read-model/list-read-model.js +24 -0
- package/dist/generate/kinds/read-model/list-read-model.js.map +1 -0
- package/dist/generate/kinds/read-model-kind.d.ts.map +1 -1
- package/dist/generate/kinds/read-model-kind.js +25 -1
- package/dist/generate/kinds/read-model-kind.js.map +1 -1
- package/dist/generate/kinds/same-name/code-from.d.ts +8 -0
- package/dist/generate/kinds/same-name/code-from.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/code-from.js +34 -0
- package/dist/generate/kinds/same-name/code-from.js.map +1 -0
- package/dist/generate/kinds/same-name/context-of-source.d.ts +5 -0
- package/dist/generate/kinds/same-name/context-of-source.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/context-of-source.js +10 -0
- package/dist/generate/kinds/same-name/context-of-source.js.map +1 -0
- package/dist/generate/kinds/same-name/entities-list.d.ts +6 -0
- package/dist/generate/kinds/same-name/entities-list.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/entities-list.js +25 -0
- package/dist/generate/kinds/same-name/entities-list.js.map +1 -0
- package/dist/generate/kinds/same-name/exports-an-alias.d.ts +12 -0
- package/dist/generate/kinds/same-name/exports-an-alias.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/exports-an-alias.js +150 -0
- package/dist/generate/kinds/same-name/exports-an-alias.js.map +1 -0
- package/dist/generate/kinds/same-name/free-name.d.ts +10 -0
- package/dist/generate/kinds/same-name/free-name.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/free-name.js +20 -0
- package/dist/generate/kinds/same-name/free-name.js.map +1 -0
- package/dist/generate/kinds/same-name/hidden-symbols.d.ts +8 -0
- package/dist/generate/kinds/same-name/hidden-symbols.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/hidden-symbols.js +18 -0
- package/dist/generate/kinds/same-name/hidden-symbols.js.map +1 -0
- package/dist/generate/kinds/same-name/imported-twice-notes.d.ts +10 -0
- package/dist/generate/kinds/same-name/imported-twice-notes.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/imported-twice-notes.js +24 -0
- package/dist/generate/kinds/same-name/imported-twice-notes.js.map +1 -0
- package/dist/generate/kinds/same-name/index-exports.d.ts +11 -0
- package/dist/generate/kinds/same-name/index-exports.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/index-exports.js +27 -0
- package/dist/generate/kinds/same-name/index-exports.js.map +1 -0
- package/dist/generate/kinds/same-name/index-picture.d.ts +29 -0
- package/dist/generate/kinds/same-name/index-picture.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/index-picture.js +63 -0
- package/dist/generate/kinds/same-name/index-picture.js.map +1 -0
- package/dist/generate/kinds/same-name/index-reading.d.ts +83 -0
- package/dist/generate/kinds/same-name/index-reading.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/index-reading.js +105 -0
- package/dist/generate/kinds/same-name/index-reading.js.map +1 -0
- package/dist/generate/kinds/same-name/keep-the-picture.d.ts +17 -0
- package/dist/generate/kinds/same-name/keep-the-picture.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/keep-the-picture.js +164 -0
- package/dist/generate/kinds/same-name/keep-the-picture.js.map +1 -0
- package/dist/generate/kinds/same-name/lines-to-settle.d.ts +37 -0
- package/dist/generate/kinds/same-name/lines-to-settle.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/lines-to-settle.js +100 -0
- package/dist/generate/kinds/same-name/lines-to-settle.js.map +1 -0
- package/dist/generate/kinds/same-name/linked.d.ts +14 -0
- package/dist/generate/kinds/same-name/linked.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/linked.js +14 -0
- package/dist/generate/kinds/same-name/linked.js.map +1 -0
- package/dist/generate/kinds/same-name/listed-entity.d.ts +25 -0
- package/dist/generate/kinds/same-name/listed-entity.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/listed-entity.js +25 -0
- package/dist/generate/kinds/same-name/listed-entity.js.map +1 -0
- package/dist/generate/kinds/same-name/may-share.d.ts +22 -0
- package/dist/generate/kinds/same-name/may-share.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/may-share.js +35 -0
- package/dist/generate/kinds/same-name/may-share.js.map +1 -0
- package/dist/generate/kinds/same-name/not-settled.d.ts +16 -0
- package/dist/generate/kinds/same-name/not-settled.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/not-settled.js +12 -0
- package/dist/generate/kinds/same-name/not-settled.js.map +1 -0
- package/dist/generate/kinds/same-name/places-of.d.ts +4 -0
- package/dist/generate/kinds/same-name/places-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/places-of.js +13 -0
- package/dist/generate/kinds/same-name/places-of.js.map +1 -0
- package/dist/generate/kinds/same-name/project-reader.d.ts +13 -0
- package/dist/generate/kinds/same-name/project-reader.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/project-reader.js +55 -0
- package/dist/generate/kinds/same-name/project-reader.js.map +1 -0
- package/dist/generate/kinds/same-name/read-module.d.ts +44 -0
- package/dist/generate/kinds/same-name/read-module.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/read-module.js +189 -0
- package/dist/generate/kinds/same-name/read-module.js.map +1 -0
- package/dist/generate/kinds/same-name/read-tables-file.d.ts +34 -0
- package/dist/generate/kinds/same-name/read-tables-file.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/read-tables-file.js +116 -0
- package/dist/generate/kinds/same-name/read-tables-file.js.map +1 -0
- package/dist/generate/kinds/same-name/region-of.d.ts +3 -0
- package/dist/generate/kinds/same-name/region-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/region-of.js +5 -0
- package/dist/generate/kinds/same-name/region-of.js.map +1 -0
- package/dist/generate/kinds/same-name/settle-same-names.d.ts +30 -0
- package/dist/generate/kinds/same-name/settle-same-names.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/settle-same-names.js +123 -0
- package/dist/generate/kinds/same-name/settle-same-names.js.map +1 -0
- package/dist/generate/kinds/same-name/signature-of.d.ts +4 -0
- package/dist/generate/kinds/same-name/signature-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/signature-of.js +5 -0
- package/dist/generate/kinds/same-name/signature-of.js.map +1 -0
- package/dist/generate/kinds/same-name/sources-of.d.ts +35 -0
- package/dist/generate/kinds/same-name/sources-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/sources-of.js +57 -0
- package/dist/generate/kinds/same-name/sources-of.js.map +1 -0
- package/dist/generate/kinds/same-name/symbol-of.d.ts +9 -0
- package/dist/generate/kinds/same-name/symbol-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/symbol-of.js +8 -0
- package/dist/generate/kinds/same-name/symbol-of.js.map +1 -0
- package/dist/generate/kinds/same-name/tables-constants.d.ts +5 -0
- package/dist/generate/kinds/same-name/tables-constants.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/tables-constants.js +8 -0
- package/dist/generate/kinds/same-name/tables-constants.js.map +1 -0
- package/dist/generate/kinds/same-name/tables-file-of.d.ts +5 -0
- package/dist/generate/kinds/same-name/tables-file-of.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/tables-file-of.js +6 -0
- package/dist/generate/kinds/same-name/tables-file-of.js.map +1 -0
- package/dist/generate/kinds/same-name/tables-files-held.d.ts +9 -0
- package/dist/generate/kinds/same-name/tables-files-held.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/tables-files-held.js +14 -0
- package/dist/generate/kinds/same-name/tables-files-held.js.map +1 -0
- package/dist/generate/kinds/same-name/unread-note.d.ts +22 -0
- package/dist/generate/kinds/same-name/unread-note.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/unread-note.js +76 -0
- package/dist/generate/kinds/same-name/unread-note.js.map +1 -0
- package/dist/generate/kinds/same-name/unseen-shares.d.ts +14 -0
- package/dist/generate/kinds/same-name/unseen-shares.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/unseen-shares.js +23 -0
- package/dist/generate/kinds/same-name/unseen-shares.js.map +1 -0
- package/dist/generate/kinds/same-name/workspace-index.d.ts +6 -0
- package/dist/generate/kinds/same-name/workspace-index.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/workspace-index.js +13 -0
- package/dist/generate/kinds/same-name/workspace-index.js.map +1 -0
- package/dist/generate/kinds/same-name/workspace-sources.d.ts +9 -0
- package/dist/generate/kinds/same-name/workspace-sources.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/workspace-sources.js +10 -0
- package/dist/generate/kinds/same-name/workspace-sources.js.map +1 -0
- package/dist/generate/kinds/same-name/yield-to-the-trunk.d.ts +14 -0
- package/dist/generate/kinds/same-name/yield-to-the-trunk.d.ts.map +1 -0
- package/dist/generate/kinds/same-name/yield-to-the-trunk.js +59 -0
- package/dist/generate/kinds/same-name/yield-to-the-trunk.js.map +1 -0
- package/dist/generate/kinds/service-kind.d.ts.map +1 -1
- package/dist/generate/kinds/service-kind.js +8 -0
- package/dist/generate/kinds/service-kind.js.map +1 -1
- package/dist/generate/kinds/wire-context.d.ts.map +1 -1
- package/dist/generate/kinds/wire-context.js +4 -0
- package/dist/generate/kinds/wire-context.js.map +1 -1
- package/dist/generate/shared-writes.d.ts.map +1 -1
- package/dist/generate/shared-writes.js +3 -2
- package/dist/generate/shared-writes.js.map +1 -1
- package/dist/generator-lock/held-lock-refusal.d.ts.map +1 -1
- package/dist/generator-lock/held-lock-refusal.js +1 -7
- package/dist/generator-lock/held-lock-refusal.js.map +1 -1
- package/dist/generator-lock/holder-text.d.ts +4 -0
- package/dist/generator-lock/holder-text.d.ts.map +1 -0
- package/dist/generator-lock/holder-text.js +10 -0
- package/dist/generator-lock/holder-text.js.map +1 -0
- package/dist/generator-lock/index.d.ts +4 -0
- package/dist/generator-lock/index.d.ts.map +1 -1
- package/dist/generator-lock/index.js +2 -0
- package/dist/generator-lock/index.js.map +1 -1
- package/dist/generator-lock/with-folder-lock.d.ts +27 -0
- package/dist/generator-lock/with-folder-lock.d.ts.map +1 -0
- package/dist/generator-lock/with-folder-lock.js +65 -0
- package/dist/generator-lock/with-folder-lock.js.map +1 -0
- package/dist/generator-lock/with-generator-lock.d.ts +1 -5
- package/dist/generator-lock/with-generator-lock.d.ts.map +1 -1
- package/dist/generator-lock/with-generator-lock.js +11 -58
- package/dist/generator-lock/with-generator-lock.js.map +1 -1
- package/dist/help/tool-notes.d.ts.map +1 -1
- package/dist/help/tool-notes.js +17 -1
- package/dist/help/tool-notes.js.map +1 -1
- package/dist/help/usage.d.ts.map +1 -1
- package/dist/help/usage.js +2 -1
- package/dist/help/usage.js.map +1 -1
- package/dist/help/work-notes.d.ts.map +1 -1
- package/dist/help/work-notes.js +15 -5
- package/dist/help/work-notes.js.map +1 -1
- package/dist/init/end-of-the-index.d.ts +9 -0
- package/dist/init/end-of-the-index.d.ts.map +1 -0
- package/dist/init/end-of-the-index.js +13 -0
- package/dist/init/end-of-the-index.js.map +1 -0
- package/dist/init/files/end-to-end-files.d.ts.map +1 -1
- package/dist/init/files/end-to-end-files.js +3 -0
- package/dist/init/files/end-to-end-files.js.map +1 -1
- package/dist/init/files/persistence-files.d.ts.map +1 -1
- package/dist/init/files/persistence-files.js +8 -2
- package/dist/init/files/persistence-files.js.map +1 -1
- package/dist/init/files/script-files.d.ts +2 -1
- package/dist/init/files/script-files.d.ts.map +1 -1
- package/dist/init/files/script-files.js +6 -1
- package/dist/init/files/script-files.js.map +1 -1
- package/dist/init/is-team-file.d.ts +2 -2
- package/dist/init/is-team-file.d.ts.map +1 -1
- package/dist/init/is-team-file.js +5 -4
- package/dist/init/is-team-file.js.map +1 -1
- package/dist/init/laid-out.d.ts +3 -0
- package/dist/init/laid-out.d.ts.map +1 -0
- package/dist/init/laid-out.js +7 -0
- package/dist/init/laid-out.js.map +1 -0
- package/dist/init/list-read-models.d.ts +20 -0
- package/dist/init/list-read-models.d.ts.map +1 -0
- package/dist/init/list-read-models.js +74 -0
- package/dist/init/list-read-models.js.map +1 -0
- package/dist/init/manifest/database-scripts.d.ts.map +1 -1
- package/dist/init/manifest/database-scripts.js +8 -0
- package/dist/init/manifest/database-scripts.js.map +1 -1
- package/dist/init/manifest/prisma-client-script.js +1 -1
- package/dist/init/manifest/prisma-client-script.js.map +1 -1
- package/dist/init/manifest/versions.js +33 -33
- package/dist/init/rewire-contexts.d.ts +4 -2
- package/dist/init/rewire-contexts.d.ts.map +1 -1
- package/dist/init/rewire-contexts.js +12 -2
- package/dist/init/rewire-contexts.js.map +1 -1
- package/dist/init/rewire-tables.d.ts.map +1 -1
- package/dist/init/rewire-tables.js +18 -10
- 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 +4 -8
- package/dist/init/run-init.js.map +1 -1
- package/dist/init/settle-index-names.d.ts +11 -0
- package/dist/init/settle-index-names.d.ts.map +1 -0
- package/dist/init/settle-index-names.js +89 -0
- package/dist/init/settle-index-names.js.map +1 -0
- package/dist/init/wiring-notes.js +1 -1
- package/dist/init/wiring-notes.js.map +1 -1
- package/dist/init/write-type-script-configs.d.ts +3 -1
- package/dist/init/write-type-script-configs.d.ts.map +1 -1
- package/dist/init/write-type-script-configs.js +14 -2
- package/dist/init/write-type-script-configs.js.map +1 -1
- package/dist/merge/accept-in-merge-message.d.ts.map +1 -1
- package/dist/merge/accept-in-merge-message.js +2 -7
- package/dist/merge/accept-in-merge-message.js.map +1 -1
- package/dist/merge/as-settled.d.ts +7 -0
- package/dist/merge/as-settled.d.ts.map +1 -0
- package/dist/merge/as-settled.js +9 -0
- package/dist/merge/as-settled.js.map +1 -0
- package/dist/merge/config-of-the-merge.d.ts +12 -0
- package/dist/merge/config-of-the-merge.d.ts.map +1 -0
- package/dist/merge/config-of-the-merge.js +35 -0
- package/dist/merge/config-of-the-merge.js.map +1 -0
- package/dist/merge/continue-merge.d.ts.map +1 -1
- package/dist/merge/continue-merge.js +32 -1
- package/dist/merge/continue-merge.js.map +1 -1
- package/dist/merge/format-merge-report.js +5 -2
- package/dist/merge/format-merge-report.js.map +1 -1
- package/dist/merge/land-drizzle.d.ts +4 -0
- package/dist/merge/land-drizzle.d.ts.map +1 -1
- package/dist/merge/land-drizzle.js +6 -1
- package/dist/merge/land-drizzle.js.map +1 -1
- package/dist/merge/land-up-to-date.d.ts +15 -0
- package/dist/merge/land-up-to-date.d.ts.map +1 -0
- package/dist/merge/land-up-to-date.js +76 -0
- package/dist/merge/land-up-to-date.js.map +1 -0
- package/dist/merge/lines-at-moved-places.d.ts +10 -0
- package/dist/merge/lines-at-moved-places.d.ts.map +1 -0
- package/dist/merge/lines-at-moved-places.js +38 -0
- package/dist/merge/lines-at-moved-places.js.map +1 -0
- package/dist/merge/lost/format-merge-verification.d.ts +2 -1
- package/dist/merge/lost/format-merge-verification.d.ts.map +1 -1
- package/dist/merge/lost/format-merge-verification.js +13 -2
- package/dist/merge/lost/format-merge-verification.js.map +1 -1
- package/dist/merge/lost/in-progress-merge.d.ts.map +1 -1
- package/dist/merge/lost/in-progress-merge.js +6 -2
- package/dist/merge/lost/in-progress-merge.js.map +1 -1
- package/dist/merge/lost/line-findings.d.ts +3 -2
- package/dist/merge/lost/line-findings.d.ts.map +1 -1
- package/dist/merge/lost/line-findings.js +5 -4
- package/dist/merge/lost/line-findings.js.map +1 -1
- package/dist/merge/lost/line-key.d.ts +7 -0
- package/dist/merge/lost/line-key.d.ts.map +1 -0
- package/dist/merge/lost/line-key.js +11 -0
- package/dist/merge/lost/line-key.js.map +1 -0
- package/dist/merge/lost/lost-lines.d.ts +1 -1
- package/dist/merge/lost/lost-lines.d.ts.map +1 -1
- package/dist/merge/lost/lost-lines.js +3 -2
- package/dist/merge/lost/lost-lines.js.map +1 -1
- package/dist/merge/lost/merge-of-record.d.ts.map +1 -1
- package/dist/merge/lost/merge-of-record.js +1 -0
- package/dist/merge/lost/merge-of-record.js.map +1 -1
- package/dist/merge/lost/merge-records.d.ts +2 -0
- package/dist/merge/lost/merge-records.d.ts.map +1 -1
- package/dist/merge/lost/merge-records.js +3 -2
- package/dist/merge/lost/merge-records.js.map +1 -1
- package/dist/merge/lost/merge-to-verify.d.ts +2 -0
- package/dist/merge/lost/merge-to-verify.d.ts.map +1 -1
- package/dist/merge/lost/merge-verification.d.ts +4 -0
- package/dist/merge/lost/merge-verification.d.ts.map +1 -1
- package/dist/merge/lost/rewritten-in-place.d.ts +5 -2
- package/dist/merge/lost/rewritten-in-place.d.ts.map +1 -1
- package/dist/merge/lost/rewritten-in-place.js +6 -5
- package/dist/merge/lost/rewritten-in-place.js.map +1 -1
- package/dist/merge/lost/verify-merge.d.ts.map +1 -1
- package/dist/merge/lost/verify-merge.js +10 -3
- package/dist/merge/lost/verify-merge.js.map +1 -1
- package/dist/merge/lost/verify-merges.d.ts +2 -1
- package/dist/merge/lost/verify-merges.d.ts.map +1 -1
- package/dist/merge/lost/verify-merges.js +10 -4
- package/dist/merge/lost/verify-merges.js.map +1 -1
- package/dist/merge/merge-state.d.ts +2 -0
- package/dist/merge/merge-state.d.ts.map +1 -1
- package/dist/merge/merge-state.js +3 -2
- package/dist/merge/merge-state.js.map +1 -1
- package/dist/merge/merge-trunk.d.ts +2 -1
- package/dist/merge/merge-trunk.d.ts.map +1 -1
- package/dist/merge/merge-trunk.js +8 -3
- package/dist/merge/merge-trunk.js.map +1 -1
- package/dist/merge/merged-tree-workspace.d.ts +19 -0
- package/dist/merge/merged-tree-workspace.d.ts.map +1 -0
- package/dist/merge/merged-tree-workspace.js +41 -0
- package/dist/merge/merged-tree-workspace.js.map +1 -0
- package/dist/merge/moved-tables-files.d.ts +9 -0
- package/dist/merge/moved-tables-files.d.ts.map +1 -0
- package/dist/merge/moved-tables-files.js +16 -0
- package/dist/merge/moved-tables-files.js.map +1 -0
- package/dist/merge/next-steps.d.ts +3 -0
- package/dist/merge/next-steps.d.ts.map +1 -1
- package/dist/merge/next-steps.js +3 -0
- package/dist/merge/next-steps.js.map +1 -1
- package/dist/merge/order/applied-under-old-name.d.ts +13 -0
- package/dist/merge/order/applied-under-old-name.d.ts.map +1 -0
- package/dist/merge/order/applied-under-old-name.js +14 -0
- package/dist/merge/order/applied-under-old-name.js.map +1 -0
- package/dist/merge/order/comes-after.d.ts +8 -0
- package/dist/merge/order/comes-after.d.ts.map +1 -0
- package/dist/merge/order/comes-after.js +9 -0
- package/dist/merge/order/comes-after.js.map +1 -0
- package/dist/merge/order/drizzle-order.d.ts +11 -0
- package/dist/merge/order/drizzle-order.d.ts.map +1 -0
- package/dist/merge/order/drizzle-order.js +64 -0
- package/dist/merge/order/drizzle-order.js.map +1 -0
- package/dist/merge/order/in-order.d.ts +4 -0
- package/dist/merge/order/in-order.d.ts.map +1 -0
- package/dist/merge/order/in-order.js +6 -0
- package/dist/merge/order/in-order.js.map +1 -0
- package/dist/merge/order/migration-order-finding.d.ts +18 -0
- package/dist/merge/order/migration-order-finding.d.ts.map +1 -0
- package/dist/merge/order/migration-order-finding.js +2 -0
- package/dist/merge/order/migration-order-finding.js.map +1 -0
- package/dist/merge/order/migration-order.d.ts +12 -0
- package/dist/merge/order/migration-order.d.ts.map +1 -0
- package/dist/merge/order/migration-order.js +21 -0
- package/dist/merge/order/migration-order.js.map +1 -0
- package/dist/merge/order/migrations-of-commit.d.ts +7 -0
- package/dist/merge/order/migrations-of-commit.d.ts.map +1 -0
- package/dist/merge/order/migrations-of-commit.js +43 -0
- package/dist/merge/order/migrations-of-commit.js.map +1 -0
- package/dist/merge/order/migrations-of-tree.d.ts +9 -0
- package/dist/merge/order/migrations-of-tree.d.ts.map +1 -0
- package/dist/merge/order/migrations-of-tree.js +25 -0
- package/dist/merge/order/migrations-of-tree.js.map +1 -0
- package/dist/merge/order/named-order.d.ts +11 -0
- package/dist/merge/order/named-order.d.ts.map +1 -0
- package/dist/merge/order/named-order.js +36 -0
- package/dist/merge/order/named-order.js.map +1 -0
- package/dist/merge/order/ordered-migration.d.ts +12 -0
- package/dist/merge/order/ordered-migration.d.ts.map +1 -0
- package/dist/merge/order/ordered-migration.js +2 -0
- package/dist/merge/order/ordered-migration.js.map +1 -0
- package/dist/merge/order/trunk-to-follow.d.ts +9 -0
- package/dist/merge/order/trunk-to-follow.d.ts.map +1 -0
- package/dist/merge/order/trunk-to-follow.js +2 -0
- package/dist/merge/order/trunk-to-follow.js.map +1 -0
- package/dist/merge/preview-table-names.d.ts +21 -0
- package/dist/merge/preview-table-names.d.ts.map +1 -0
- package/dist/merge/preview-table-names.js +85 -0
- package/dist/merge/preview-table-names.js.map +1 -0
- package/dist/merge/renumber-migrations.d.ts +14 -5
- package/dist/merge/renumber-migrations.d.ts.map +1 -1
- package/dist/merge/renumber-migrations.js +141 -60
- package/dist/merge/renumber-migrations.js.map +1 -1
- package/dist/merge/restamp-class.d.ts +9 -0
- package/dist/merge/restamp-class.d.ts.map +1 -0
- package/dist/merge/restamp-class.js +30 -0
- package/dist/merge/restamp-class.js.map +1 -0
- package/dist/merge/settle-table-names.d.ts +21 -0
- package/dist/merge/settle-table-names.d.ts.map +1 -0
- package/dist/merge/settle-table-names.js +60 -0
- package/dist/merge/settle-table-names.js.map +1 -0
- package/dist/merge/side-index.d.ts +13 -0
- package/dist/merge/side-index.d.ts.map +1 -0
- package/dist/merge/side-index.js +43 -0
- package/dist/merge/side-index.js.map +1 -0
- package/dist/merge/side-reader.d.ts +8 -0
- package/dist/merge/side-reader.d.ts.map +1 -0
- package/dist/merge/side-reader.js +13 -0
- package/dist/merge/side-reader.js.map +1 -0
- package/dist/merge/side-tables-file.d.ts +5 -0
- package/dist/merge/side-tables-file.d.ts.map +1 -0
- package/dist/merge/side-tables-file.js +10 -0
- package/dist/merge/side-tables-file.js.map +1 -0
- package/dist/merge/table-names-settled.d.ts +18 -0
- package/dist/merge/table-names-settled.d.ts.map +1 -0
- package/dist/merge/table-names-settled.js +168 -0
- package/dist/merge/table-names-settled.js.map +1 -0
- package/dist/merge/trailer-in-merge-message.d.ts +9 -0
- package/dist/merge/trailer-in-merge-message.d.ts.map +1 -0
- package/dist/merge/trailer-in-merge-message.js +16 -0
- package/dist/merge/trailer-in-merge-message.js.map +1 -0
- package/dist/merge/tree-files.d.ts +21 -0
- package/dist/merge/tree-files.d.ts.map +1 -0
- package/dist/merge/tree-files.js +86 -0
- package/dist/merge/tree-files.js.map +1 -0
- package/dist/merge/trunk-reader.d.ts +5 -0
- package/dist/merge/trunk-reader.d.ts.map +1 -0
- package/dist/merge/trunk-reader.js +9 -0
- package/dist/merge/trunk-reader.js.map +1 -0
- package/dist/merge/two-tables-files.d.ts +19 -0
- package/dist/merge/two-tables-files.d.ts.map +1 -0
- package/dist/merge/two-tables-files.js +67 -0
- package/dist/merge/two-tables-files.js.map +1 -0
- package/dist/migration/file-of-source.d.ts +3 -0
- package/dist/migration/file-of-source.d.ts.map +1 -0
- package/dist/migration/file-of-source.js +5 -0
- package/dist/migration/file-of-source.js.map +1 -0
- package/dist/migration/hidden-in-index.d.ts +15 -0
- package/dist/migration/hidden-in-index.d.ts.map +1 -0
- package/dist/migration/hidden-in-index.js +23 -0
- package/dist/migration/hidden-in-index.js.map +1 -0
- package/dist/migration/index.d.ts +3 -0
- package/dist/migration/index.d.ts.map +1 -1
- package/dist/migration/index.js +3 -0
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/is-source-of-context.d.ts +17 -0
- package/dist/migration/is-source-of-context.d.ts.map +1 -0
- package/dist/migration/is-source-of-context.js +13 -0
- package/dist/migration/is-source-of-context.js.map +1 -0
- package/dist/migration/listed-in-index.d.ts +15 -3
- package/dist/migration/listed-in-index.d.ts.map +1 -1
- package/dist/migration/listed-in-index.js +25 -4
- package/dist/migration/listed-in-index.js.map +1 -1
- package/dist/migration/named-bindings-of.d.ts +14 -0
- package/dist/migration/named-bindings-of.d.ts.map +1 -0
- package/dist/migration/named-bindings-of.js +21 -0
- package/dist/migration/named-bindings-of.js.map +1 -0
- package/dist/migration/plan-replay.d.ts.map +1 -1
- package/dist/migration/plan-replay.js +2 -1
- package/dist/migration/plan-replay.js.map +1 -1
- package/dist/migration/refuse-taken-migration-name.d.ts +8 -0
- package/dist/migration/refuse-taken-migration-name.d.ts.map +1 -0
- package/dist/migration/refuse-taken-migration-name.js +22 -0
- package/dist/migration/refuse-taken-migration-name.js.map +1 -0
- package/dist/migration/replay-drizzle-migrations.d.ts +5 -0
- package/dist/migration/replay-drizzle-migrations.d.ts.map +1 -1
- package/dist/migration/replay-drizzle-migrations.js +10 -2
- package/dist/migration/replay-drizzle-migrations.js.map +1 -1
- package/dist/migration/replay-plan.d.ts +2 -2
- package/dist/migration/replay-plan.d.ts.map +1 -1
- package/dist/migration/restore-migration-folder.d.ts +6 -2
- package/dist/migration/restore-migration-folder.d.ts.map +1 -1
- package/dist/migration/restore-migration-folder.js +14 -7
- package/dist/migration/restore-migration-folder.js.map +1 -1
- package/dist/migration/snapshot-migration-folder.d.ts +7 -0
- package/dist/migration/snapshot-migration-folder.d.ts.map +1 -0
- package/dist/migration/snapshot-migration-folder.js +12 -0
- package/dist/migration/snapshot-migration-folder.js.map +1 -0
- package/dist/migration/warn-dropped-context-tables.d.ts.map +1 -1
- package/dist/migration/warn-dropped-context-tables.js +21 -6
- package/dist/migration/warn-dropped-context-tables.js.map +1 -1
- package/dist/move-to-module/before-the-move.d.ts +5 -0
- package/dist/move-to-module/before-the-move.d.ts.map +1 -0
- package/dist/move-to-module/before-the-move.js +13 -0
- package/dist/move-to-module/before-the-move.js.map +1 -0
- package/dist/move-to-module/closed-cycles.d.ts +21 -0
- package/dist/move-to-module/closed-cycles.d.ts.map +1 -0
- package/dist/move-to-module/closed-cycles.js +66 -0
- package/dist/move-to-module/closed-cycles.js.map +1 -0
- package/dist/move-to-module/cycle-lines.d.ts +7 -0
- package/dist/move-to-module/cycle-lines.d.ts.map +1 -0
- package/dist/move-to-module/cycle-lines.js +22 -0
- package/dist/move-to-module/cycle-lines.js.map +1 -0
- package/dist/move-to-module/cycle-refusal.d.ts +17 -0
- package/dist/move-to-module/cycle-refusal.d.ts.map +1 -0
- package/dist/move-to-module/cycle-refusal.js +25 -0
- package/dist/move-to-module/cycle-refusal.js.map +1 -0
- package/dist/move-to-module/index.d.ts +5 -0
- package/dist/move-to-module/index.d.ts.map +1 -1
- package/dist/move-to-module/index.js +4 -0
- package/dist/move-to-module/index.js.map +1 -1
- package/dist/move-to-module/module-imports-in.d.ts +11 -0
- package/dist/move-to-module/module-imports-in.d.ts.map +1 -0
- package/dist/move-to-module/module-imports-in.js +32 -0
- package/dist/move-to-module/module-imports-in.js.map +1 -0
- package/dist/move-to-module/moves-into-module.d.ts.map +1 -1
- package/dist/move-to-module/moves-into-module.js +6 -18
- package/dist/move-to-module/moves-into-module.js.map +1 -1
- package/dist/move-to-module/place-in-module.d.ts +13 -0
- package/dist/move-to-module/place-in-module.d.ts.map +1 -0
- package/dist/move-to-module/place-in-module.js +24 -0
- package/dist/move-to-module/place-in-module.js.map +1 -0
- package/dist/move-to-module/watch-cycles.d.ts +19 -0
- package/dist/move-to-module/watch-cycles.d.ts.map +1 -0
- package/dist/move-to-module/watch-cycles.js +51 -0
- package/dist/move-to-module/watch-cycles.js.map +1 -0
- package/dist/prisma-client/client-outputs.d.ts +3 -0
- package/dist/prisma-client/client-outputs.d.ts.map +1 -0
- package/dist/prisma-client/client-outputs.js +9 -0
- package/dist/prisma-client/client-outputs.js.map +1 -0
- package/dist/prisma-client/index.d.ts +4 -0
- package/dist/prisma-client/index.d.ts.map +1 -0
- package/dist/prisma-client/index.js +4 -0
- package/dist/prisma-client/index.js.map +1 -0
- package/dist/prisma-client/prisma-client-fingerprint.d.ts +7 -0
- package/dist/prisma-client/prisma-client-fingerprint.d.ts.map +1 -0
- package/dist/prisma-client/prisma-client-fingerprint.js +32 -0
- package/dist/prisma-client/prisma-client-fingerprint.js.map +1 -0
- package/dist/prisma-client/prisma-client-in-turn.d.ts +14 -0
- package/dist/prisma-client/prisma-client-in-turn.d.ts.map +1 -0
- package/dist/prisma-client/prisma-client-in-turn.js +15 -0
- package/dist/prisma-client/prisma-client-in-turn.js.map +1 -0
- package/dist/prisma-client/prisma-client-lock-refusal.d.ts +5 -0
- package/dist/prisma-client/prisma-client-lock-refusal.d.ts.map +1 -0
- package/dist/prisma-client/prisma-client-lock-refusal.js +11 -0
- package/dist/prisma-client/prisma-client-lock-refusal.js.map +1 -0
- package/dist/prisma-client/prisma-client-paths.d.ts +7 -0
- package/dist/prisma-client/prisma-client-paths.d.ts.map +1 -0
- package/dist/prisma-client/prisma-client-paths.js +8 -0
- package/dist/prisma-client/prisma-client-paths.js.map +1 -0
- package/dist/prisma-client/refresh-prisma-client.d.ts +16 -0
- package/dist/prisma-client/refresh-prisma-client.d.ts.map +1 -0
- package/dist/prisma-client/refresh-prisma-client.js +53 -0
- package/dist/prisma-client/refresh-prisma-client.js.map +1 -0
- package/dist/prisma-client/schema-files.d.ts +3 -0
- package/dist/prisma-client/schema-files.d.ts.map +1 -0
- package/dist/prisma-client/schema-files.js +18 -0
- package/dist/prisma-client/schema-files.js.map +1 -0
- package/dist/prisma-schema/single-prisma-schema-steps.js +1 -1
- package/dist/prisma-schema/single-prisma-schema-steps.js.map +1 -1
- package/dist/read-models/buildable-constructor.d.ts +3 -0
- package/dist/read-models/buildable-constructor.d.ts.map +1 -0
- package/dist/read-models/buildable-constructor.js +3 -0
- package/dist/read-models/buildable-constructor.js.map +1 -0
- package/dist/read-models/declared-class.d.ts +14 -0
- package/dist/read-models/declared-class.d.ts.map +1 -0
- package/dist/read-models/declared-class.js +2 -0
- package/dist/read-models/declared-class.js.map +1 -0
- package/dist/read-models/declared-classes.d.ts +32 -0
- package/dist/read-models/declared-classes.d.ts.map +1 -0
- package/dist/read-models/declared-classes.js +123 -0
- package/dist/read-models/declared-classes.js.map +1 -0
- package/dist/read-models/list-answers.d.ts +35 -0
- package/dist/read-models/list-answers.d.ts.map +1 -0
- package/dist/read-models/list-answers.js +53 -0
- package/dist/read-models/list-answers.js.map +1 -0
- package/dist/read-models/listing-of.d.ts +25 -0
- package/dist/read-models/listing-of.d.ts.map +1 -0
- package/dist/read-models/listing-of.js +22 -0
- package/dist/read-models/listing-of.js.map +1 -0
- package/dist/read-models/read-model-list-of.d.ts +12 -0
- package/dist/read-models/read-model-list-of.d.ts.map +1 -0
- package/dist/read-models/read-model-list-of.js +94 -0
- package/dist/read-models/read-model-list-of.js.map +1 -0
- package/dist/read-models/read-model-list.d.ts +41 -0
- package/dist/read-models/read-model-list.d.ts.map +1 -0
- package/dist/read-models/read-model-list.js +2 -0
- package/dist/read-models/read-model-list.js.map +1 -0
- package/dist/read-models/read-model-store.d.ts +16 -0
- package/dist/read-models/read-model-store.d.ts.map +1 -0
- package/dist/read-models/read-model-store.js +2 -0
- package/dist/read-models/read-model-store.js.map +1 -0
- package/dist/read-models/read-model-stores-of.d.ts +14 -0
- package/dist/read-models/read-model-stores-of.d.ts.map +1 -0
- package/dist/read-models/read-model-stores-of.js +63 -0
- package/dist/read-models/read-model-stores-of.js.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +3 -1
- package/dist/run.js.map +1 -1
- package/dist/slice/format-slice-verification.d.ts.map +1 -1
- package/dist/slice/format-slice-verification.js +11 -5
- package/dist/slice/format-slice-verification.js.map +1 -1
- package/dist/slice/storage-of-slice.d.ts +10 -7
- package/dist/slice/storage-of-slice.d.ts.map +1 -1
- package/dist/slice/storage-of-slice.js +145 -22
- package/dist/slice/storage-of-slice.js.map +1 -1
- package/dist/stack/alias-vars.d.ts +3 -1
- package/dist/stack/alias-vars.d.ts.map +1 -1
- package/dist/stack/alias-vars.js +5 -2
- package/dist/stack/alias-vars.js.map +1 -1
- package/dist/stack/stack-vars.d.ts.map +1 -1
- package/dist/stack/stack-vars.js +10 -1
- package/dist/stack/stack-vars.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workspace/exit-code-of.d.ts +2 -2
- package/dist/workspace/exit-code-of.d.ts.map +1 -1
- package/dist/workspace/exit-code-of.js +2 -2
- package/dist/workspace/exit-code-of.js.map +1 -1
- package/dist/workspace/located-step.d.ts +5 -0
- package/dist/workspace/located-step.d.ts.map +1 -0
- package/dist/workspace/located-step.js +7 -0
- package/dist/workspace/located-step.js.map +1 -0
- package/dist/workspace/remove-file.d.ts +3 -0
- package/dist/workspace/remove-file.d.ts.map +1 -0
- package/dist/workspace/remove-file.js +11 -0
- package/dist/workspace/remove-file.js.map +1 -0
- package/dist/workspace/workspace-report.d.ts +2 -0
- package/dist/workspace/workspace-report.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +4 -3
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/dist/workspace/workspace.js +16 -16
- package/dist/workspace/workspace.js.map +1 -1
- package/package.json +6 -6
- package/templates/file-upload/controller.spec.ts.tpl +66 -2
- package/templates/file-upload/controller.ts.tpl +12 -0
- package/templates/file-upload/handler.spec.ts.tpl +3 -3
- package/templates/init/README.md.tpl +20 -1
- package/templates/init/docker/dockerignore.tpl +2 -0
- package/templates/init/e2e/jest.e2e.config.js.tpl +5 -0
- package/templates/init/e2e/test-database-setup.ts.tpl +120 -0
- package/templates/init/e2e/vitest.e2e.config.ts.tpl +2 -1
- package/templates/init/platform/composition/compose-application.container.ts.tpl +5 -0
- package/templates/init/platform/composition/compose-application.manual.ts.tpl +20 -3
- package/templates/init/platform/composition/create-platform.manual.ts.tpl +6 -0
- package/templates/init/platform/composition/platform-options.manual.ts.tpl +11 -0
- package/templates/init/platform/composition/platform.manual.ts.tpl +7 -0
- package/templates/init/platform/composition/platform.module.container.ts.tpl +34 -0
- package/templates/init/platform/database/connect-to-database.drizzle.ts.tpl +7 -2
- package/templates/init/platform/database/open-test-database.drizzle.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.knex.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.prisma.ts.tpl +8 -3
- package/templates/init/platform/database/open-test-database.typeorm.ts.tpl +8 -3
- package/templates/init/platform/database/read-model-tables.ts.tpl +70 -0
- package/templates/init/platform/database/test-database-budget.ts.tpl +108 -0
- package/templates/init/platform/database/test-database-clone.ts.tpl +52 -161
- package/templates/init/platform/database/test-database-copy.ts.tpl +76 -0
- package/templates/init/platform/database/test-database-emptying.ts.tpl +209 -0
- package/templates/init/platform/database/test-database-kept.ts.tpl +32 -0
- package/templates/init/platform/database/test-database-leftovers.ts.tpl +52 -0
- package/templates/init/platform/database/test-database-run.ts.tpl +99 -0
- package/templates/init/platform/database/test-database-server.ts.tpl +140 -0
- package/templates/init/platform/database/test-database-session.ts.tpl +141 -0
- package/templates/init/platform/database/test-database-teardown.ts.tpl +11 -1
- package/templates/init/platform/resilience/default-policy.ts.tpl +8 -1
- package/templates/init/rules/infrastructure.md.tpl +5 -2
- package/templates/init/scripts/read-model-tables.ts.tpl +83 -0
- package/templates/nest-controller/upload.spec.ts.tpl +67 -2
- package/templates/nest-controller/upload.ts.tpl +12 -0
- package/templates/pipeline/biome.json.tpl +1 -1
- package/templates/pipeline/github/workflows/codeql.yml +2 -2
- package/templates/pipeline/package-scripts.json +2 -2
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-account.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-delegation.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-invitation.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-member.repository.drizzle.ts.tpl +5 -9
- package/templates/presets/identity/context/infrastructure/persistence/drizzle-organisation.repository.drizzle.ts.tpl +5 -9
- package/templates/repository/drizzle/repository.ts.tpl +6 -9
- package/templates/repository/typeorm/schema-export.tpl +2 -2
- package/templates/read-model/typeorm/schema-export.tpl +0 -4
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { workspaceSources } from './workspace-sources.js';
|
|
2
|
+
import { Workspace } from '../../../workspace/index.js';
|
|
3
|
+
import { contextOfSource } from './context-of-source.js';
|
|
4
|
+
import { indexPicture } from './index-picture.js';
|
|
5
|
+
import { readTablesFile } from './read-tables-file.js';
|
|
6
|
+
/** What a region of the kit holds, between its markers. */
|
|
7
|
+
const REGION = /\/\/ ddd-ts-kit:[\w-]+\n([\s\S]*?)\/\/ \/ddd-ts-kit:[\w-]+/g;
|
|
8
|
+
/**
|
|
9
|
+
* The last word of a command on the schema index, said once, on the state the command ends in:
|
|
10
|
+
* what the index gave on disk before the command is compared with what the workspace holds when
|
|
11
|
+
* every generator has run. A name the index exported before and exports no more, an entry of
|
|
12
|
+
* `entities` on TypeORM listed no more, or a name that exported one value and exports another: the
|
|
13
|
+
* index is left as it stood on disk, reported as left, the sentences the command noted about its
|
|
14
|
+
* names are taken back, and one note names every name concerned and says what to do. Nothing is done when the picture is
|
|
15
|
+
* kept, nor when an earlier step of the command already left the index. While a file the index
|
|
16
|
+
* re-exports is not read with certainty, before the command or after it, the index is never left:
|
|
17
|
+
* each name lost and each name moved is said hedged, and the command goes on as before; a name
|
|
18
|
+
* files read share is the settle's, whose note says it. Names are compared, not the tables behind
|
|
19
|
+
* them: a table still exported under another name is a name lost.
|
|
20
|
+
*/
|
|
21
|
+
export function keepThePicture(ws, config, command) {
|
|
22
|
+
const index = `${config.platformDir}/database/schema.ts`;
|
|
23
|
+
const before = indexPicture(new Workspace(ws.root, false), config);
|
|
24
|
+
const after = indexPicture(ws, config);
|
|
25
|
+
if (before.text === undefined || after.text === undefined) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
// An earlier step left the index as it stood: what a later one wrote in it goes too.
|
|
29
|
+
if (ws.notes.some((note) => note.startsWith(`${index} is left as it stood`))) {
|
|
30
|
+
ws.leave(index, before.text);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const { rewritten, why, hedged } = whatChanged(ws, config, { before, after, command });
|
|
34
|
+
// A table the command wrote out of its tables file is not kept by leaving the index: it is said, and the command goes
|
|
35
|
+
// on. What hangs on a module not read is said hedged, when nothing certain leaves the index.
|
|
36
|
+
[...rewritten, ...(why.length === 0 ? hedged : [])].forEach((sentence) => {
|
|
37
|
+
ws.note(`${index}: ${sentence}.`);
|
|
38
|
+
});
|
|
39
|
+
if (why.length === 0) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const told = ws.notes.filter((note) => TOLD.some((said) => note.startsWith(`${index}${said}`)));
|
|
43
|
+
const byHand = told.flatMap((note) => note.match(/^ {2}export .*$/gm) ?? []).map((line) => line.trim());
|
|
44
|
+
const lines = command === 'init' ? [] : [...new Set([...written(before, after), ...byHand])];
|
|
45
|
+
ws.notes.splice(0, ws.notes.length, ...ws.notes.filter((note) => !told.includes(note)));
|
|
46
|
+
ws.leave(index, before.text);
|
|
47
|
+
ws.note(`${index} is left as it stood before the command: ${why.join('; ')}.${toDo(ws, config, { command, lines, names: why.length })}`);
|
|
48
|
+
}
|
|
49
|
+
/** How the notes a step of the command wrote about the names of the index start, after the path of the index: taken back with it. */
|
|
50
|
+
const TOLD = [' lists the ', ': the kit wrote no name in it'];
|
|
51
|
+
/** What a name lost, said once after the last one: the comparison is of names, not of the tables behind them. */
|
|
52
|
+
const NAMES_ONLY = ' (a table still exported under another name is not seen: the kit compares names)';
|
|
53
|
+
/**
|
|
54
|
+
* What the command would change: the names the index exports, compared, not the tables behind
|
|
55
|
+
* them. Every file the index re-exports read with certainty, a name lost or a name moved is
|
|
56
|
+
* certain. While one is not, before the command or after it, what the index exports after it is
|
|
57
|
+
* not known: each is said hedged, and the index is not left.
|
|
58
|
+
*/
|
|
59
|
+
function whatChanged(ws, config, { before, after }) {
|
|
60
|
+
const sources = workspaceSources(ws, config);
|
|
61
|
+
const lost = namesLost(config, { before, after });
|
|
62
|
+
const isRewritten = ({ was }) => isWrittenOut(ws, sources, was);
|
|
63
|
+
const losses = lost.filter((named) => !isRewritten(named) && !after.toTheSettle.has(named.name));
|
|
64
|
+
const moves = [...before.names].flatMap(([name, was]) => {
|
|
65
|
+
const is = after.names.get(name);
|
|
66
|
+
return is === undefined || is === was ? [] : [{ name, was, is, from: before.givers.get(name) ?? fileOf(was) }];
|
|
67
|
+
});
|
|
68
|
+
const unread = { still: after.unread, gone: before.unread.filter((file) => !after.unread.includes(file)) };
|
|
69
|
+
const rewritten = [...new Set(lost.filter(isRewritten).map(({ was }) => was))].map((table) => rewrittenOut(config, table));
|
|
70
|
+
if (unread.still.length + unread.gone.length > 0) {
|
|
71
|
+
return { rewritten, why: [], hedged: [...losses.map(hedgedLoss(unread)), ...moves.map(hedgedMove(unread))] };
|
|
72
|
+
}
|
|
73
|
+
return { rewritten, why: [...moves.map(movedName), ...lossesSaid(config, losses)], hedged: [] };
|
|
74
|
+
}
|
|
75
|
+
/** The names the index exported before the command and exports no more; on TypeORM the entries `entities` lists no more. */
|
|
76
|
+
function namesLost(config, { before, after }) {
|
|
77
|
+
if (config.stack.orm === 'typeorm') {
|
|
78
|
+
return [...before.reachable]
|
|
79
|
+
.filter((table) => !after.reachable.has(table))
|
|
80
|
+
.map((table) => ({ name: table.slice(table.lastIndexOf('#') + 1), was: table, from: fileOf(table) }));
|
|
81
|
+
}
|
|
82
|
+
return [...before.names]
|
|
83
|
+
.filter(([name]) => !after.names.has(name))
|
|
84
|
+
.map(([name, was]) => ({ name, was, from: before.givers.get(name) ?? fileOf(was) }));
|
|
85
|
+
}
|
|
86
|
+
function lossesSaid(config, losses) {
|
|
87
|
+
if (config.stack.orm === 'typeorm') {
|
|
88
|
+
return losses.map(({ name, from }) => `the entity \`${name}\`, which '${from}' gives \`entities\`, would be listed no more`);
|
|
89
|
+
}
|
|
90
|
+
return losses.map(({ name, from }, at) => `the name \`${name}\`, which '${from}' gives the index, would be exported by no line after it${at === losses.length - 1 ? NAMES_ONLY : ''}`);
|
|
91
|
+
}
|
|
92
|
+
function movedName({ name, was, is }) {
|
|
93
|
+
return `\`${name}\`, which named ${named(was)}, would name ${named(is)}`;
|
|
94
|
+
}
|
|
95
|
+
/** A name lost while something is not read: it may still come through what the index still names; plainly lost when the index names none of it any more. */
|
|
96
|
+
function hedgedLoss({ still, gone }) {
|
|
97
|
+
return ({ name, from }) => {
|
|
98
|
+
if (still.length === 0) {
|
|
99
|
+
return `the name \`${name}\`, which '${from}' gave the index, is exported by no line after the command (${noMoreNamed(gone)})`;
|
|
100
|
+
}
|
|
101
|
+
const which = still.length === 1 ? 'it exports' : 'one of them exports';
|
|
102
|
+
return `the name \`${name}\`, which '${from}' gives the index, is exported by no line the kit can read after the command; it may still be exported through ${quotedFiles(still)} if ${which} it`;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function hedgedMove({ still, gone }) {
|
|
106
|
+
return ({ name, was, is }) => still.length === 0
|
|
107
|
+
? `\`${name}\`, which named ${named(was)} by the lines the kit read, names ${named(is)} after the command (${noMoreNamed(gone)})`
|
|
108
|
+
: `\`${name}\`, which named ${named(was)}, may name another table after the command (the kit does not read ${quotedFiles(still)})`;
|
|
109
|
+
}
|
|
110
|
+
function noMoreNamed(gone) {
|
|
111
|
+
return `${quotedFiles(gone)}, which the kit does not read with certainty, ${gone.length === 1 ? 'is' : 'are'} no more named by the index`;
|
|
112
|
+
}
|
|
113
|
+
/** A table by the name its file gives it and its file: the \`orders\` of '<file>'. */
|
|
114
|
+
function named(table) {
|
|
115
|
+
return `the \`${table.slice(table.lastIndexOf('#') + 1)}\` of '${fileOf(table)}'`;
|
|
116
|
+
}
|
|
117
|
+
function fileOf(table) {
|
|
118
|
+
return table.slice(0, Math.max(table.lastIndexOf('#'), 0));
|
|
119
|
+
}
|
|
120
|
+
function quotedFiles(files) {
|
|
121
|
+
return files.map((file) => `'${file}'`).join(', ');
|
|
122
|
+
}
|
|
123
|
+
/** A table the command wrote out of its tables file, and what restores it. */
|
|
124
|
+
function rewrittenOut(config, table) {
|
|
125
|
+
const [file = '', name = ''] = table.split('#');
|
|
126
|
+
return `\`${name}\` is no more in ${file}, which the command wrote again without it: restore its declaration there, as git holds it${config.stack.orm === 'typeorm' ? ', or the index, which still imports it, does not compile' : ''}`;
|
|
127
|
+
}
|
|
128
|
+
/** With --force a tables file is written again whole: a table it held and the command does not declare is gone from it, the file read with certainty. */
|
|
129
|
+
function isWrittenOut(ws, sources, table) {
|
|
130
|
+
const [file = '', name = ''] = table.split('#');
|
|
131
|
+
const read = readTablesFile(sources, file);
|
|
132
|
+
return (ws.read(file) !== undefined && read.unread.length === 0 && !read.symbols.some((symbol) => symbol.name === name));
|
|
133
|
+
}
|
|
134
|
+
/** What to do about it: the lines of a generation, to write by hand, and what leaving them out costs; for `init --force`, where the line belongs. */
|
|
135
|
+
function toDo(ws, config, { command, lines, names }) {
|
|
136
|
+
if (command === 'init') {
|
|
137
|
+
const where = config.stack.orm === 'typeorm'
|
|
138
|
+
? 'its import inside the `// ddd-ts-kit:imports` region and its entry inside the `// ddd-ts-kit:schemas` region of `entities`, which the rewrite keeps,'
|
|
139
|
+
: `${names === 1 ? 'the line that keeps this name' : 'what keeps these names'} inside the \`// ddd-ts-kit:schemas\` region, which the rewrite keeps,`;
|
|
140
|
+
return ` \`init --force\` writes the index again from its template, and a line written outside the regions of the kit goes with it: move ${where} and run the command again. Until then every \`init --force\` leaves the index as it stood and exits 3.`;
|
|
141
|
+
}
|
|
142
|
+
if (lines.length === 0) {
|
|
143
|
+
return '';
|
|
144
|
+
}
|
|
145
|
+
const unlisted = lines.flatMap((line) => {
|
|
146
|
+
const context = contextOfSource(ws, config, /^export \* from '([^']+)'/.exec(line)?.[1] ?? '');
|
|
147
|
+
return context === undefined ? [] : [context];
|
|
148
|
+
});
|
|
149
|
+
const cost = unlisted.length === 0
|
|
150
|
+
? ''
|
|
151
|
+
: ` Until these lines are written, the tables of ${unlisted.join(', ')} are listed nowhere: no migration will create them.`;
|
|
152
|
+
return ` To write by hand, where it is right:\n${lines.map((line) => ` ${line}`).join('\n')}\n${cost.trimStart()}`.trimEnd();
|
|
153
|
+
}
|
|
154
|
+
/** The lines the command wrote in the regions of the index, or anywhere in it. */
|
|
155
|
+
function written(before, after) {
|
|
156
|
+
const linesOf = (text) => text
|
|
157
|
+
.split('\n')
|
|
158
|
+
.map((line) => line.trim())
|
|
159
|
+
.filter((line) => line !== '');
|
|
160
|
+
const stood = new Set(linesOf(before.text ?? ''));
|
|
161
|
+
const held = [...(after.text ?? '').matchAll(REGION)].map(([, lines = '']) => lines).join('\n');
|
|
162
|
+
return linesOf(held).filter((line) => !stood.has(line));
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=keep-the-picture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keep-the-picture.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/keep-the-picture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAqB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,2DAA2D;AAC3D,MAAM,MAAM,GAAG,6DAA6D,CAAC;AAS7E;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,cAAc,CAAC,EAAa,EAAE,MAAc,EAAE,OAA4B;IACxF,MAAM,KAAK,GAAG,GAAG,MAAM,CAAC,WAAW,qBAAqB,CAAC;IACzD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IACnE,MAAM,KAAK,GAAG,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAEvC,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC1D,OAAO;IACT,CAAC;IAED,qFAAqF;IACrF,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,KAAK,sBAAsB,CAAC,CAAC,EAAE,CAAC;QAC7E,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAE7B,OAAO;IACT,CAAC;IAED,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,WAA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,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { IndexReading } from './index-reading.js';
|
|
2
|
+
/** Which tables file keeps a name several export, when the index does not say. */
|
|
3
|
+
export interface SettleOrder {
|
|
4
|
+
/** The value that keeps each name before any other, by the place that declares it: the one the trunk of a merge exports under it. */
|
|
5
|
+
readonly keeps?: ReadonlyMap<string, string>;
|
|
6
|
+
/** The contexts that keep a name after every other: the one a generator writes a table for, those a branch brings. */
|
|
7
|
+
readonly newcomers?: readonly string[];
|
|
8
|
+
/** The names the command brings to the newcomers: they yield those alone. Every name, when not said. */
|
|
9
|
+
readonly brought?: readonly string[];
|
|
10
|
+
}
|
|
11
|
+
/** One line the index lacks: the constant of a context, exported under its name or under one that carries its context. */
|
|
12
|
+
export interface SettleLine {
|
|
13
|
+
readonly line: string;
|
|
14
|
+
readonly context: string;
|
|
15
|
+
readonly constant: string;
|
|
16
|
+
/** The name the index gives the constant, when it is not its own. */
|
|
17
|
+
readonly alias?: string;
|
|
18
|
+
/** Whether the line exports a type alone: the tables file holds no value under the name. */
|
|
19
|
+
readonly isType: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Every line the schema index of a Drizzle project lacks for each symbol of each file it
|
|
23
|
+
* re-exports whole to be exported under a name, the whole index at once. Two files that export
|
|
24
|
+
* the same symbol under a name, a table of the shared kernel each re-exports, hold one symbol:
|
|
25
|
+
* `export *` brings it, as it brings a name one file alone exports. Different symbols under one
|
|
26
|
+
* name, or a symbol whose name the index gives to something else, are settled: one keeps the
|
|
27
|
+
* name, `export { orders } from`, unless the index already gives it to something, and every other
|
|
28
|
+
* that the index exports under no name yet gets a name that carries its context, one nothing
|
|
29
|
+
* holds, `export { orders as shippingOrders } from`. A name that has a value in a file is exported
|
|
30
|
+
* from it with a plain line, which carries its type too; `export type` is written for a name that
|
|
31
|
+
* is a type and no value in that file. The one that keeps the name is the value the trunk of a
|
|
32
|
+
* merge exports under it, then one of a module that is no tables file of a context, which no name
|
|
33
|
+
* of a context could be given to, one of a newcomer last, else of the file the index re-exports
|
|
34
|
+
* first.
|
|
35
|
+
*/
|
|
36
|
+
export declare function linesToSettle(reading: IndexReading, order: SettleOrder): SettleLine[];
|
|
37
|
+
//# sourceMappingURL=lines-to-settle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines-to-settle.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/lines-to-settle.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,iBAAiB,CAAC;AAEhE,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC1B,qIAAqI;IACrI,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,sHAAsH;IACtH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,wGAAwG;IACxG,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,0HAA0H;AAC1H,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAOD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,GAAG,UAAU,EAAE,CA6BrF"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { namedBindingsOf } from '../../../migration/index.js';
|
|
2
|
+
import { toName } from '../../../naming/to-name.js';
|
|
3
|
+
import { freeName } from './free-name.js';
|
|
4
|
+
import { indexExports } from './index-exports.js';
|
|
5
|
+
import { signatureOf } from './signature-of.js';
|
|
6
|
+
import { symbolOf } from './symbol-of.js';
|
|
7
|
+
/**
|
|
8
|
+
* Every line the schema index of a Drizzle project lacks for each symbol of each file it
|
|
9
|
+
* re-exports whole to be exported under a name, the whole index at once. Two files that export
|
|
10
|
+
* the same symbol under a name, a table of the shared kernel each re-exports, hold one symbol:
|
|
11
|
+
* `export *` brings it, as it brings a name one file alone exports. Different symbols under one
|
|
12
|
+
* name, or a symbol whose name the index gives to something else, are settled: one keeps the
|
|
13
|
+
* name, `export { orders } from`, unless the index already gives it to something, and every other
|
|
14
|
+
* that the index exports under no name yet gets a name that carries its context, one nothing
|
|
15
|
+
* holds, `export { orders as shippingOrders } from`. A name that has a value in a file is exported
|
|
16
|
+
* from it with a plain line, which carries its type too; `export type` is written for a name that
|
|
17
|
+
* is a type and no value in that file. The one that keeps the name is the value the trunk of a
|
|
18
|
+
* merge exports under it, then one of a module that is no tables file of a context, which no name
|
|
19
|
+
* of a context could be given to, one of a newcomer last, else of the file the index re-exports
|
|
20
|
+
* first.
|
|
21
|
+
*/
|
|
22
|
+
export function linesToSettle(reading, order) {
|
|
23
|
+
const exported = indexExports(reading);
|
|
24
|
+
const values = new Set([...exported.values()].map(({ value }) => value));
|
|
25
|
+
const types = new Set([...exported.values()].map(({ type }) => type));
|
|
26
|
+
const isReached = ({ value, type }) => (value === undefined ? types.has(type) : values.has(value));
|
|
27
|
+
const taken = new Set([
|
|
28
|
+
...exported.keys(),
|
|
29
|
+
...namedBindingsOf(reading.text, 'import').flatMap(({ names }) => names.map(({ local }) => local)),
|
|
30
|
+
...reading.stars.flatMap(({ symbols }) => symbols.map(({ name }) => name)),
|
|
31
|
+
]);
|
|
32
|
+
return [...new Set(reading.stars.flatMap(({ symbols }) => symbols.map(({ name }) => name)))].flatMap((constant) => {
|
|
33
|
+
const isExplicit = isGiven(reading, constant);
|
|
34
|
+
const holders = holdersOf(ranked(reading.stars, constant, order), constant);
|
|
35
|
+
const pending = holders.filter((holder) => !isReached(holder));
|
|
36
|
+
if (!isExplicit && holders.length < 2) {
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
// One export by name ends the ambiguity of several `export *`: without it no holder is exported.
|
|
40
|
+
const keeper = isExplicit ? undefined : (pending[0] ?? holders[0]);
|
|
41
|
+
return [
|
|
42
|
+
...(keeper === undefined ? [] : [lineOf(keeper, constant)]),
|
|
43
|
+
...pending.filter((holder) => holder !== keeper).flatMap((holder) => aliased(holder, constant, taken)),
|
|
44
|
+
];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/** The files in the order they would keep a name: the newcomers yield only the names this command brings them. */
|
|
48
|
+
function ranked(stars, constant, order) {
|
|
49
|
+
const { keeps, newcomers = [], brought } = order;
|
|
50
|
+
const yields = brought === undefined || brought.includes(constant);
|
|
51
|
+
const kept = keeps?.get(constant);
|
|
52
|
+
const rank = (star) => {
|
|
53
|
+
if (kept !== undefined && symbolOf(star, constant).value === kept) {
|
|
54
|
+
return -2;
|
|
55
|
+
}
|
|
56
|
+
if (star.context === undefined) {
|
|
57
|
+
return -1;
|
|
58
|
+
}
|
|
59
|
+
return yields && newcomers.includes(star.context) ? 1 : 0;
|
|
60
|
+
};
|
|
61
|
+
return [...stars].sort((one, other) => rank(one) - rank(other));
|
|
62
|
+
}
|
|
63
|
+
/** Whether the index declares the name or exports it by name: it then names that, whatever the files hold. */
|
|
64
|
+
function isGiven({ values, types, given }, constant) {
|
|
65
|
+
return values.includes(constant) || types.includes(constant) || given.some(({ local }) => local === constant);
|
|
66
|
+
}
|
|
67
|
+
/** The different symbols the files export under a name, in their order, each with the first file that holds it. */
|
|
68
|
+
function holdersOf(stars, constant) {
|
|
69
|
+
const holders = new Map();
|
|
70
|
+
for (const star of stars) {
|
|
71
|
+
const symbol = symbolOf(star, constant);
|
|
72
|
+
const signature = signatureOf(symbol);
|
|
73
|
+
if (signature !== '|' && !holders.has(signature)) {
|
|
74
|
+
holders.set(signature, { ...symbol, star });
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return [...holders.values()];
|
|
78
|
+
}
|
|
79
|
+
/** The line that gives a symbol a name of its context; none for a module that is no tables file of a context, which the kit has no name for. */
|
|
80
|
+
function aliased(holder, constant, taken) {
|
|
81
|
+
const { context } = holder.star;
|
|
82
|
+
if (context === undefined) {
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
const alias = freeName(toName(context), constant, (name) => taken.has(name));
|
|
86
|
+
taken.add(alias);
|
|
87
|
+
return [lineOf(holder, constant, alias)];
|
|
88
|
+
}
|
|
89
|
+
function lineOf({ star: { source, context }, value }, constant, alias) {
|
|
90
|
+
const isType = value === undefined;
|
|
91
|
+
const exported = alias === undefined ? constant : `${constant} as ${alias}`;
|
|
92
|
+
return {
|
|
93
|
+
line: `export ${isType ? 'type ' : ''}{ ${exported} } from '${source}';`,
|
|
94
|
+
context: context ?? source,
|
|
95
|
+
constant,
|
|
96
|
+
isType,
|
|
97
|
+
...(alias === undefined ? {} : { alias }),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=lines-to-settle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines-to-settle.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/lines-to-settle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;A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IACnC,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,OAAO,KAAK,EAAE,CAAC;IAE5E,OAAO;QACL,IAAI,EAAE,UAAU,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,YAAY,MAAM,IAAI;QACxE,OAAO,EAAE,OAAO,IAAI,MAAM;QAC1B,QAAQ;QACR,MAAM;QACN,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;KAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a reader of the project answers for a file that is a symbolic link, in a commit (mode
|
|
3
|
+
* 120000) or on disk: no text of the project, which a NUL keeps from being one. The kit does not
|
|
4
|
+
* follow a link: a tables file that is one is not read with certainty. The text a link to a file of
|
|
5
|
+
* the project points at follows the marker, only for a word to be found in.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LINKED = "\0a symbolic link\0";
|
|
8
|
+
/**
|
|
9
|
+
* What a reader answers for a link whose text it does not look into: one that leads out of the
|
|
10
|
+
* project, to another link or to nothing, and a file under a folder that is a link. It may export
|
|
11
|
+
* any name.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LINKED_AWAY = "\0a symbolic link\0\0";
|
|
14
|
+
//# sourceMappingURL=linked.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/linked.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,WAAW,0BAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a reader of the project answers for a file that is a symbolic link, in a commit (mode
|
|
3
|
+
* 120000) or on disk: no text of the project, which a NUL keeps from being one. The kit does not
|
|
4
|
+
* follow a link: a tables file that is one is not read with certainty. The text a link to a file of
|
|
5
|
+
* the project points at follows the marker, only for a word to be found in.
|
|
6
|
+
*/
|
|
7
|
+
export const LINKED = '\0a symbolic link\0';
|
|
8
|
+
/**
|
|
9
|
+
* What a reader answers for a link whose text it does not look into: one that leads out of the
|
|
10
|
+
* project, to another link or to nothing, and a file under a folder that is a link. It may export
|
|
11
|
+
* any name.
|
|
12
|
+
*/
|
|
13
|
+
export const LINKED_AWAY = `${LINKED}\0`;
|
|
14
|
+
//# sourceMappingURL=linked.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/linked.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,qBAAqB,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,MAAM,IAAI,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Name } from '../../../naming/index.js';
|
|
2
|
+
/** How the schema index of a TypeORM project names an entity: what its import writes, and the name its list reads. */
|
|
3
|
+
export interface ListedEntity {
|
|
4
|
+
readonly imported: string;
|
|
5
|
+
readonly local: string;
|
|
6
|
+
}
|
|
7
|
+
/** An entity to list: its context, its constant, and the constants the tables files of the project export. */
|
|
8
|
+
interface EntityToList {
|
|
9
|
+
readonly context: Name;
|
|
10
|
+
readonly constant: string;
|
|
11
|
+
readonly reserved: readonly string[];
|
|
12
|
+
/** Whether a module the index imports from is a file of the context. */
|
|
13
|
+
readonly isOfItsContext: (source: string) => boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* An entity joins the schema index under its own name, and under the name the index already gives
|
|
17
|
+
* it when it imports it from its context. A name the index holds already is the entity of the same
|
|
18
|
+
* name of another context, or a table the index declares itself: two imports of one name would not
|
|
19
|
+
* compile, and one entry would list one table for the two. The second is imported under an alias
|
|
20
|
+
* that carries its context, `import { orders as shippingOrders }`, and listed under it; an alias
|
|
21
|
+
* the index holds, or that a tables file exports and may bring to it, is left to its owner.
|
|
22
|
+
*/
|
|
23
|
+
export declare function listedEntity(index: string, entity: EntityToList): ListedEntity;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=listed-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listed-entity.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/listed-entity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAG5C,sHAAsH;AACtH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,8GAA8G;AAC9G,UAAU,YAAY;IACpB,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,wEAAwE;IACxE,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;CACtD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,YAAY,CAc9E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { scan } from '../../../check/scan/scan.js';
|
|
2
|
+
import { escapeRegExp } from '../../../check/text/escape-reg-exp.js';
|
|
3
|
+
import { namedBindingsOf } from '../../../migration/index.js';
|
|
4
|
+
import { freeName } from './free-name.js';
|
|
5
|
+
/**
|
|
6
|
+
* An entity joins the schema index under its own name, and under the name the index already gives
|
|
7
|
+
* it when it imports it from its context. A name the index holds already is the entity of the same
|
|
8
|
+
* name of another context, or a table the index declares itself: two imports of one name would not
|
|
9
|
+
* compile, and one entry would list one table for the two. The second is imported under an alias
|
|
10
|
+
* that carries its context, `import { orders as shippingOrders }`, and listed under it; an alias
|
|
11
|
+
* the index holds, or that a tables file exports and may bring to it, is left to its owner.
|
|
12
|
+
*/
|
|
13
|
+
export function listedEntity(index, entity) {
|
|
14
|
+
const { context, constant, reserved, isOfItsContext } = entity;
|
|
15
|
+
const { code } = scan(index);
|
|
16
|
+
const isNamed = (name) => new RegExp(`\\b${escapeRegExp(name)}\\b`).test(code);
|
|
17
|
+
const own = namedBindingsOf(index, 'import')
|
|
18
|
+
.filter(({ source }) => isOfItsContext(source))
|
|
19
|
+
.flatMap(({ names }) => names)
|
|
20
|
+
.find(({ name }) => name === constant);
|
|
21
|
+
const free = () => freeName(context, constant, (name) => isNamed(name) || reserved.includes(name));
|
|
22
|
+
const local = own?.local ?? (isNamed(constant) ? free() : constant);
|
|
23
|
+
return { imported: local === constant ? constant : `${constant} as ${local}`, local };
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=listed-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listed-entity.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/listed-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAiBvC;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa,EAAE,MAAoB;IAC9D,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;IAC/D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,MAAM,OAAO,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,MAAM,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEhG,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC;SACzC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;SAC9C,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC;SAC7B,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;IAEzC,MAAM,IAAI,GAAG,GAAW,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3G,MAAM,KAAK,GAAG,GAAG,EAAE,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEpE,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC;AACxF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Config } from '../../../config/index.js';
|
|
2
|
+
import type { Workspace } from '../../../workspace/index.js';
|
|
3
|
+
import type { IndexReading } from './index-reading.js';
|
|
4
|
+
/** A name a tables file exports as a value that something not read with certainty may export too, with the tables file to name it from. */
|
|
5
|
+
export interface MayBeShared {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** The tables file that is not read when it is one, else the one that holds the value. */
|
|
8
|
+
readonly context: string;
|
|
9
|
+
/** The module the index names that tables file by. */
|
|
10
|
+
readonly source: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The values of the tables files that something not read with certainty may export too: each one
|
|
14
|
+
* whose name is written, as a word of the code, comments and strings left out, in a file the index
|
|
15
|
+
* re-exports whole that is not read, in a file of the project it takes names from, or in an
|
|
16
|
+
* `export` of the index that is not read. Each comes with the
|
|
17
|
+
* tables file a line by name would settle it from, the one that is not read when it is one, and
|
|
18
|
+
* is left out once the index exports the name by name from that file. Nothing is decided on it: it only tells a reading that
|
|
19
|
+
* hides nothing from one that may. What is no file of the project is not looked into.
|
|
20
|
+
*/
|
|
21
|
+
export declare function mayShare(ws: Workspace, config: Config, reading: IndexReading): MayBeShared[];
|
|
22
|
+
//# sourceMappingURL=may-share.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"may-share.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/may-share.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,iBAAiB,CAAC;AAEhE,2IAA2I;AAC3I,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0FAA0F;IAC1F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,WAAW,EAAE,CA+B5F"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { codeFrom } from './code-from.js';
|
|
2
|
+
import { workspaceSources } from './workspace-sources.js';
|
|
3
|
+
import { escapeRegExp } from '../../../check/text/escape-reg-exp.js';
|
|
4
|
+
/**
|
|
5
|
+
* The values of the tables files that something not read with certainty may export too: each one
|
|
6
|
+
* whose name is written, as a word of the code, comments and strings left out, in a file the index
|
|
7
|
+
* re-exports whole that is not read, in a file of the project it takes names from, or in an
|
|
8
|
+
* `export` of the index that is not read. Each comes with the
|
|
9
|
+
* tables file a line by name would settle it from, the one that is not read when it is one, and
|
|
10
|
+
* is left out once the index exports the name by name from that file. Nothing is decided on it: it only tells a reading that
|
|
11
|
+
* hides nothing from one that may. What is no file of the project is not looked into.
|
|
12
|
+
*/
|
|
13
|
+
export function mayShare(ws, config, reading) {
|
|
14
|
+
const sources = workspaceSources(ws, config);
|
|
15
|
+
const blind = [
|
|
16
|
+
...reading.stars
|
|
17
|
+
.filter(({ unread }) => unread.length > 0)
|
|
18
|
+
.map((star) => ({ star, code: codeFrom(sources, star.file) })),
|
|
19
|
+
{ star: undefined, code: [...reading.doubts] },
|
|
20
|
+
];
|
|
21
|
+
// A name the index already exports by name from a file is settled for that file, by hand or by an earlier run.
|
|
22
|
+
const isListed = (file, name) => reading.given.some((given) => given.file === file && given.name === name);
|
|
23
|
+
const held = reading.tables.flatMap((tables) => tables.symbols.filter(({ kind }) => kind === 'value').map(({ name }) => ({ name, tables })));
|
|
24
|
+
const shared = held.flatMap(({ name, tables }) => {
|
|
25
|
+
const word = new RegExp(`(?<![\\w$.])${escapeRegExp(name)}(?![\\w$])`);
|
|
26
|
+
return blind
|
|
27
|
+
.filter(({ star, code }) => star?.file !== tables.file && code.some((text) => word.test(text)))
|
|
28
|
+
.map(({ star }) => ({ name, of: star?.context === undefined ? tables : { ...star, context: star.context } }));
|
|
29
|
+
});
|
|
30
|
+
const once = new Map(shared.map((one) => [`${one.of.file}#${one.name}`, one]));
|
|
31
|
+
return [...once.values()]
|
|
32
|
+
.filter(({ name, of }) => !isListed(of.file, name))
|
|
33
|
+
.map(({ name, of }) => ({ name, context: of.context, source: of.source }));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=may-share.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"may-share.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/may-share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAclE;;;;;;;;GAQG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAa,EAAE,MAAc,EAAE,OAAqB;IAC3E,MAAM,OAAO,GAAG,gBAAgB,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAE7C,MAAM,KAAK,GAAY;QACrB,GAAG,OAAO,CAAC,KAAK;aACb,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;aACzC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE;KAC/C,CAAC;IAEF,+GAA+G;IAC/G,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,IAAY,EAAW,EAAE,CACvD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAE5E,MAAM,IAAI,GAAG,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,CAAC,MAAM,EAAE,CAAC;SACtB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAClD,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** What kept the kit from writing names in the schema index, and the lines it would have written. */
|
|
2
|
+
interface NotSettled {
|
|
3
|
+
readonly index: string;
|
|
4
|
+
/** Why, as the end of "nothing written: ...". */
|
|
5
|
+
readonly because: string;
|
|
6
|
+
/** The lines it would have written. */
|
|
7
|
+
readonly lines: readonly string[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The sentence of a settle that wrote nothing, said once per command. A line written on a reading
|
|
11
|
+
* that is not certain could hide a table, the index still compiling: nothing is written, the index
|
|
12
|
+
* stays as the command left it, and the team gets why, with the lines to write by hand.
|
|
13
|
+
*/
|
|
14
|
+
export declare function notSettled({ index, because, lines }: NotSettled): string;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=not-settled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not-settled.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/not-settled.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,UAAU,UAAU;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,GAAG,MAAM,CAOxE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The sentence of a settle that wrote nothing, said once per command. A line written on a reading
|
|
3
|
+
* that is not certain could hide a table, the index still compiling: nothing is written, the index
|
|
4
|
+
* stays as the command left it, and the team gets why, with the lines to write by hand.
|
|
5
|
+
*/
|
|
6
|
+
export function notSettled({ index, because, lines }) {
|
|
7
|
+
const byHand = lines.length === 0
|
|
8
|
+
? ''
|
|
9
|
+
: ` To write by hand, after its \`export *\` lines:\n${lines.map((line) => ` ${line}`).join('\n')}`;
|
|
10
|
+
return `${index}: the kit wrote no name in it: ${because}.${byHand}`;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=not-settled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not-settled.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/not-settled.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAc;IAC9D,MAAM,MAAM,GACV,KAAK,CAAC,MAAM,KAAK,CAAC;QAChB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,qDAAqD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAEzG,OAAO,GAAG,KAAK,kCAAkC,OAAO,IAAI,MAAM,EAAE,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places-of.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/places-of.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAK9C,8FAA8F;AAC9F,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CASlE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { declaredModules } from '../../../model-modules/index.js';
|
|
2
|
+
const PERSISTENCE = 'infrastructure/persistence';
|
|
3
|
+
/** Every place the tables file of a context may stand at, in the order the kit reads them. */
|
|
4
|
+
export function placesOf(config, context) {
|
|
5
|
+
const directory = `${config.contextsDir}/${context}`;
|
|
6
|
+
const file = `${PERSISTENCE}/${context}.schema.ts`;
|
|
7
|
+
return [
|
|
8
|
+
...declaredModules(config, context).map((module) => `${directory}/${module}/${file}`),
|
|
9
|
+
`${directory}/shared/${file}`,
|
|
10
|
+
`${directory}/${file}`,
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=places-of.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places-of.js","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/places-of.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEjD,8FAA8F;AAC9F,MAAM,UAAU,QAAQ,CAAC,MAAc,EAAE,OAAe;IACtD,MAAM,SAAS,GAAG,GAAG,MAAM,CAAC,WAAW,IAAI,OAAO,EAAE,CAAC;IACrD,MAAM,IAAI,GAAG,GAAG,WAAW,IAAI,OAAO,YAAY,CAAC;IAEnD,OAAO;QACL,GAAG,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,SAAS,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACrF,GAAG,SAAS,WAAW,IAAI,EAAE;QAC7B,GAAG,SAAS,IAAI,IAAI,EAAE;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Workspace } from '../../../workspace/index.js';
|
|
2
|
+
import type { FileReader } from './sources-of.js';
|
|
3
|
+
/**
|
|
4
|
+
* Reads a file of the project a workspace holds as the kit reads its sources: a file that is a
|
|
5
|
+
* symbolic link on disk reads as `LINKED`, never as the file it points at: the text a link to a
|
|
6
|
+
* file points at in the project follows, only for a word to be found in. One whose text is not
|
|
7
|
+
* looked into, a link out of the project, to another link or to nothing, or a file a folder of its
|
|
8
|
+
* path that is a link leads to, reads as `LINKED_AWAY`. Whether a target is in the project is told by its path as
|
|
9
|
+
* written against the real path of the project, the way git tells it: a target written through
|
|
10
|
+
* another path of the same folder is outside.
|
|
11
|
+
*/
|
|
12
|
+
export declare function projectReader(ws: Workspace): FileReader;
|
|
13
|
+
//# sourceMappingURL=project-reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-reader.d.ts","sourceRoot":"","sources":["../../../../src/generate/kinds/same-name/project-reader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,SAAS,GAAG,UAAU,CAgBvD"}
|