packtory 0.0.15 → 0.0.16
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/artifacts/artifacts-builder.d.ts +3 -1
- package/artifacts/artifacts-builder.d.ts.map +1 -1
- package/artifacts/artifacts-builder.js +20 -74
- package/artifacts/artifacts-builder.js.map +1 -1
- package/artifacts/content-collection.js +60 -0
- package/artifacts/content-collection.js.map +1 -0
- package/artifacts/folder-writer.js +24 -0
- package/artifacts/folder-writer.js.map +1 -0
- package/bundle-emitter/emitter.d.ts +3 -2
- package/bundle-emitter/emitter.d.ts.map +1 -1
- package/bundle-emitter/emitter.js +10 -8
- package/bundle-emitter/emitter.js.map +1 -1
- package/bundle-emitter/fetch-published-artifacts.d.ts +10 -0
- package/bundle-emitter/fetch-published-artifacts.d.ts.map +1 -0
- package/bundle-emitter/fetch-published-artifacts.js +16 -0
- package/bundle-emitter/fetch-published-artifacts.js.map +1 -0
- package/bundle-emitter/publish-error/auto-mode-error-matching.js +30 -0
- package/bundle-emitter/publish-error/auto-mode-error-matching.js.map +1 -0
- package/bundle-emitter/publish-error/error-shape-helpers.js +10 -0
- package/bundle-emitter/publish-error/error-shape-helpers.js.map +1 -0
- package/bundle-emitter/publish-error/file-mode-error-matching.js +28 -0
- package/bundle-emitter/publish-error/file-mode-error-matching.js.map +1 -0
- package/bundle-emitter/publish-error/publish-error-messages.js +37 -0
- package/bundle-emitter/publish-error/publish-error-messages.js.map +1 -0
- package/bundle-emitter/registry/metadata-auth-retry.js +26 -0
- package/bundle-emitter/registry/metadata-auth-retry.js.map +1 -0
- package/bundle-emitter/registry/oidc-token-exchange.js +80 -0
- package/bundle-emitter/registry/oidc-token-exchange.js.map +1 -0
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts +4 -0
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts.map +1 -0
- package/bundle-emitter/registry/package-metadata-fetcher.js +99 -0
- package/bundle-emitter/registry/package-metadata-fetcher.js.map +1 -0
- package/bundle-emitter/registry/publish-settings-bridge.js +39 -0
- package/bundle-emitter/registry/publish-settings-bridge.js.map +1 -0
- package/bundle-emitter/registry/registry-auth-config.js +82 -0
- package/bundle-emitter/registry/registry-auth-config.js.map +1 -0
- package/bundle-emitter/registry/registry-client.d.ts +10 -0
- package/bundle-emitter/registry/registry-client.d.ts.map +1 -0
- package/bundle-emitter/registry/registry-client.js +38 -0
- package/bundle-emitter/registry/registry-client.js.map +1 -0
- package/bundle-emitter/registry/registry-response-schemas.js +44 -0
- package/bundle-emitter/registry/registry-response-schemas.js.map +1 -0
- package/bundle-emitter/repository-url-normalizer.js +2 -4
- package/bundle-emitter/repository-url-normalizer.js.map +1 -1
- package/checks/rules/duplicate-detection.js +26 -0
- package/checks/rules/duplicate-detection.js.map +1 -0
- package/checks/rules/duplicate-messages.js +26 -0
- package/checks/rules/duplicate-messages.js.map +1 -0
- package/checks/rules/file-ownership.js +16 -0
- package/checks/rules/file-ownership.js.map +1 -0
- package/checks/rules/no-duplicated-files.js +2 -76
- package/checks/rules/no-duplicated-files.js.map +1 -1
- package/checks/rules/required-files.js +2 -1
- package/checks/rules/required-files.js.map +1 -1
- package/checks/rules/set-intersection.js +14 -0
- package/checks/rules/set-intersection.js.map +1 -0
- package/checks/rules/unique-target-paths.js +11 -10
- package/checks/rules/unique-target-paths.js.map +1 -1
- package/common/code-files.js +21 -0
- package/common/code-files.js.map +1 -1
- package/common/max-date.js +6 -0
- package/common/max-date.js.map +1 -0
- package/common/sort-values.js.map +1 -0
- package/common/stable-json.js +42 -0
- package/common/stable-json.js.map +1 -0
- package/common/typed-diff.d.ts +3 -0
- package/common/typed-diff.d.ts.map +1 -0
- package/common/typed-diff.js +5 -0
- package/common/typed-diff.js.map +1 -0
- package/config/config.d.ts +0 -3
- package/config/config.d.ts.map +1 -1
- package/config/cross-package-validation.js +18 -0
- package/config/cross-package-validation.js.map +1 -0
- package/config/dependency-existence-validation.js +20 -0
- package/config/dependency-existence-validation.js.map +1 -0
- package/config/package-config.d.ts +0 -2
- package/config/package-config.d.ts.map +1 -1
- package/config/package-graph-builder.js +15 -0
- package/config/package-graph-builder.js.map +1 -0
- package/config/pre-graph-validation.js +19 -0
- package/config/pre-graph-validation.js.map +1 -0
- package/config/root-config-validation.js +126 -0
- package/config/root-config-validation.js.map +1 -0
- package/config/settings-validation.js +29 -0
- package/config/settings-validation.js.map +1 -0
- package/config/validation.d.ts +2 -2
- package/config/validation.d.ts.map +1 -1
- package/config/validation.js +9 -231
- package/config/validation.js.map +1 -1
- package/dead-code-eliminator/class-purity.js +33 -0
- package/dead-code-eliminator/class-purity.js.map +1 -0
- package/dead-code-eliminator/code-file-analyzer.js +56 -0
- package/dead-code-eliminator/code-file-analyzer.js.map +1 -0
- package/dead-code-eliminator/cross-bundle/bundle-index.js +31 -0
- package/dead-code-eliminator/cross-bundle/bundle-index.js.map +1 -0
- package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js +4 -111
- package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js.map +1 -1
- package/dead-code-eliminator/cross-bundle/import-export-walker.js +69 -0
- package/dead-code-eliminator/cross-bundle/import-export-walker.js.map +1 -0
- package/dead-code-eliminator/cross-bundle/seed-store.js +19 -0
- package/dead-code-eliminator/cross-bundle/seed-store.js.map +1 -0
- package/dead-code-eliminator/eliminator.js +3 -83
- package/dead-code-eliminator/eliminator.js.map +1 -1
- package/dead-code-eliminator/expression-unwrapping.js +17 -0
- package/dead-code-eliminator/expression-unwrapping.js.map +1 -0
- package/dead-code-eliminator/imported-expression-origin.js +95 -0
- package/dead-code-eliminator/imported-expression-origin.js.map +1 -0
- package/dead-code-eliminator/load-bundle.js +1 -1
- package/dead-code-eliminator/load-bundle.js.map +1 -1
- package/dead-code-eliminator/pure-expression.js +116 -0
- package/dead-code-eliminator/pure-expression.js.map +1 -0
- package/dead-code-eliminator/reachability/bfs-closure.js +40 -0
- package/dead-code-eliminator/reachability/bfs-closure.js.map +1 -0
- package/dead-code-eliminator/reachability/binding-id.js +33 -0
- package/dead-code-eliminator/reachability/binding-id.js.map +1 -0
- package/dead-code-eliminator/reachability/identifier-target-collector.js +36 -0
- package/dead-code-eliminator/reachability/identifier-target-collector.js.map +1 -0
- package/dead-code-eliminator/reachability/local-seed-gathering.js +24 -0
- package/dead-code-eliminator/reachability/local-seed-gathering.js.map +1 -0
- package/dead-code-eliminator/reachability/reachability.js +19 -130
- package/dead-code-eliminator/reachability/reachability.js.map +1 -1
- package/dead-code-eliminator/side-effect-classifier.js +2 -394
- package/dead-code-eliminator/side-effect-classifier.js.map +1 -1
- package/dead-code-eliminator/source-map-recomposition.js +27 -0
- package/dead-code-eliminator/source-map-recomposition.js.map +1 -0
- package/dead-code-eliminator/statement-classifiers.js +67 -0
- package/dead-code-eliminator/statement-classifiers.js.map +1 -0
- package/dead-code-eliminator/syntax-kind-sets.js +67 -0
- package/dead-code-eliminator/syntax-kind-sets.js.map +1 -0
- package/dead-code-eliminator/transform/declaration-removal.js +34 -0
- package/dead-code-eliminator/transform/declaration-removal.js.map +1 -0
- package/dead-code-eliminator/transform/declaration-remover.js +2 -72
- package/dead-code-eliminator/transform/declaration-remover.js.map +1 -1
- package/dead-code-eliminator/transform/named-declaration-kinds.js +13 -0
- package/dead-code-eliminator/transform/named-declaration-kinds.js.map +1 -0
- package/dead-code-eliminator/transform/survivor-capture.js +33 -0
- package/dead-code-eliminator/transform/survivor-capture.js.map +1 -0
- package/dependency-scanner/dependency-graph.js +46 -28
- package/dependency-scanner/dependency-graph.js.map +1 -1
- package/dependency-scanner/file-host-predicates.js +10 -0
- package/dependency-scanner/file-host-predicates.js.map +1 -0
- package/dependency-scanner/host-method-binding.js +19 -0
- package/dependency-scanner/host-method-binding.js.map +1 -0
- package/dependency-scanner/node-modules-manifest-synthesizer.js +55 -0
- package/dependency-scanner/node-modules-manifest-synthesizer.js.map +1 -0
- package/dependency-scanner/package-owned-asset-file-path.js +21 -0
- package/dependency-scanner/package-owned-asset-file-path.js.map +1 -0
- package/dependency-scanner/scanner.d.ts +1 -1
- package/dependency-scanner/scanner.d.ts.map +1 -1
- package/dependency-scanner/scanner.js +34 -39
- package/dependency-scanner/scanner.js.map +1 -1
- package/dependency-scanner/source-file-references.d.ts +3 -0
- package/dependency-scanner/source-file-references.d.ts.map +1 -0
- package/dependency-scanner/source-file-references.js +106 -7
- package/dependency-scanner/source-file-references.js.map +1 -1
- package/dependency-scanner/typescript-compiler-options.d.ts +3 -0
- package/dependency-scanner/typescript-compiler-options.d.ts.map +1 -0
- package/dependency-scanner/typescript-compiler-options.js +22 -0
- package/dependency-scanner/typescript-compiler-options.js.map +1 -0
- package/dependency-scanner/typescript-file-host.d.ts.map +1 -1
- package/dependency-scanner/typescript-file-host.js +15 -81
- package/dependency-scanner/typescript-file-host.js.map +1 -1
- package/dependency-scanner/typescript-project-analyzer.d.ts +3 -3
- package/dependency-scanner/typescript-project-analyzer.d.ts.map +1 -1
- package/dependency-scanner/typescript-project-analyzer.js +6 -26
- package/dependency-scanner/typescript-project-analyzer.js.map +1 -1
- package/dependency-scanner/virtual-package-json-host.js +45 -0
- package/dependency-scanner/virtual-package-json-host.js.map +1 -0
- package/directed-graph/graph.js +19 -8
- package/directed-graph/graph.js.map +1 -1
- package/file-manager/file-description.d.ts.map +1 -1
- package/file-manager/file-description.js +4 -0
- package/file-manager/file-description.js.map +1 -0
- package/file-manager/file-manager.js +30 -1
- package/file-manager/file-manager.js.map +1 -1
- package/file-manager/permissions.js +5 -4
- package/file-manager/permissions.js.map +1 -1
- package/linker/linked-bundle.d.ts.map +1 -1
- package/linker/linked-bundle.js +6 -0
- package/linker/linked-bundle.js.map +1 -0
- package/linker/linker.d.ts +1 -1
- package/linker/linker.d.ts.map +1 -1
- package/linker/linker.js +2 -1
- package/linker/linker.js.map +1 -1
- package/linker/replacement-lookup.js +41 -0
- package/linker/replacement-lookup.js.map +1 -0
- package/linker/resource-graph.js +2 -1
- package/linker/resource-graph.js.map +1 -1
- package/linker/substitute-bundles.js +4 -42
- package/linker/substitute-bundles.js.map +1 -1
- package/linker/substituted-resource-graph.js +2 -1
- package/linker/substituted-resource-graph.js.map +1 -1
- package/pack-emitter/pack-emitter.d.ts +8 -0
- package/pack-emitter/pack-emitter.d.ts.map +1 -0
- package/pack-emitter/pack-emitter.js +28 -0
- package/pack-emitter/pack-emitter.js.map +1 -0
- package/package-surface/bin-field.js +9 -0
- package/package-surface/bin-field.js.map +1 -0
- package/package-surface/explicit-bin.js +25 -0
- package/package-surface/explicit-bin.js.map +1 -0
- package/package-surface/explicit-exports.js +12 -0
- package/package-surface/explicit-exports.js.map +1 -0
- package/package-surface/explicit-specifier-build.js +28 -0
- package/package-surface/explicit-specifier-build.js.map +1 -0
- package/package-surface/explicit-specifier-resolve.js +17 -0
- package/package-surface/explicit-specifier-resolve.js.map +1 -0
- package/package-surface/export-map.js +10 -0
- package/package-surface/export-map.js.map +1 -0
- package/package-surface/implicit-bin.js +23 -0
- package/package-surface/implicit-bin.js.map +1 -0
- package/package-surface/implicit-exports.js +11 -0
- package/package-surface/implicit-exports.js.map +1 -0
- package/package-surface/implicit-root-exports.js +14 -0
- package/package-surface/implicit-root-exports.js.map +1 -0
- package/package-surface/implicit-specifier-build.js +26 -0
- package/package-surface/implicit-specifier-build.js.map +1 -0
- package/package-surface/implicit-specifier-resolve.js +17 -0
- package/package-surface/implicit-specifier-resolve.js.map +1 -0
- package/package-surface/package-json-export.js +10 -0
- package/package-surface/package-json-export.js.map +1 -0
- package/package-surface/package-shape.js +10 -0
- package/package-surface/package-shape.js.map +1 -0
- package/package-surface/public-module-usage.js +1 -1
- package/package-surface/public-module-usage.js.map +1 -1
- package/package-surface/public-specifiers.js +17 -0
- package/package-surface/public-specifiers.js.map +1 -0
- package/package-surface/root-registry.js +35 -0
- package/package-surface/root-registry.js.map +1 -0
- package/package-surface/specifier-syntax.js +24 -0
- package/package-surface/specifier-syntax.js.map +1 -0
- package/package-surface/substitution-exports.js +67 -0
- package/package-surface/substitution-exports.js.map +1 -0
- package/package.json +23 -10
- package/packages/package-processor.composition.js +54 -25
- package/packages/package-processor.composition.js.map +1 -1
- package/packages/packtory/packtory.entry-point.d.ts +24 -14
- package/packages/packtory/packtory.entry-point.d.ts.map +1 -1
- package/packages/packtory/packtory.entry-point.js +7 -3
- package/packages/packtory/packtory.entry-point.js.map +1 -1
- package/packtory/map-config.d.ts +3 -2
- package/packtory/map-config.d.ts.map +1 -1
- package/packtory/map-config.js +2 -1
- package/packtory/map-config.js.map +1 -1
- package/packtory/options/bundle-dependency-resolution.js +20 -0
- package/packtory/options/bundle-dependency-resolution.js.map +1 -0
- package/packtory/options/dead-code-elimination-resolution.js +11 -0
- package/packtory/options/dead-code-elimination-resolution.js.map +1 -0
- package/packtory/options/prepare-package-options.d.ts +18 -0
- package/packtory/options/prepare-package-options.d.ts.map +1 -0
- package/packtory/options/prepare-package-options.js +46 -0
- package/packtory/options/prepare-package-options.js.map +1 -0
- package/packtory/options/required-value-helpers.js +18 -0
- package/packtory/options/required-value-helpers.js.map +1 -0
- package/packtory/options/setting-resolvers.d.ts +6 -0
- package/packtory/options/setting-resolvers.d.ts.map +1 -0
- package/packtory/options/setting-resolvers.js +42 -0
- package/packtory/options/setting-resolvers.js.map +1 -0
- package/packtory/options/surface-resolution.js +16 -0
- package/packtory/options/surface-resolution.js.map +1 -0
- package/packtory/options/version-trigger.js +31 -0
- package/packtory/options/version-trigger.js.map +1 -0
- package/packtory/package-processor-build.js +2 -1
- package/packtory/package-processor-build.js.map +1 -1
- package/packtory/package-processor-publish.d.ts +5 -0
- package/packtory/package-processor-publish.d.ts.map +1 -1
- package/packtory/package-processor-publish.js +25 -40
- package/packtory/package-processor-publish.js.map +1 -1
- package/packtory/packtory-pack.js +221 -0
- package/packtory/packtory-pack.js.map +1 -0
- package/packtory/packtory-publish.js +3 -51
- package/packtory/packtory-publish.js.map +1 -1
- package/packtory/packtory-release-analysis.js +69 -0
- package/packtory/packtory-release-analysis.js.map +1 -0
- package/packtory/packtory-release-diff.js +48 -0
- package/packtory/packtory-release-diff.js.map +1 -0
- package/packtory/packtory-resolve.js +3 -71
- package/packtory/packtory-resolve.js.map +1 -1
- package/packtory/packtory-results.d.ts +73 -1
- package/packtory/packtory-results.d.ts.map +1 -1
- package/packtory/packtory-results.js +15 -0
- package/packtory/packtory-results.js.map +1 -1
- package/packtory/packtory.d.ts +15 -1
- package/packtory/packtory.d.ts.map +1 -1
- package/packtory/packtory.js +58 -5
- package/packtory/packtory.js.map +1 -1
- package/packtory/publish-failure-mapping.js +7 -0
- package/packtory/publish-failure-mapping.js.map +1 -0
- package/packtory/release-analysis.js +147 -0
- package/packtory/release-analysis.js.map +1 -0
- package/packtory/release-diff-failure-mapping.js +7 -0
- package/packtory/release-diff-failure-mapping.js.map +1 -0
- package/packtory/report-attachment.js +12 -1
- package/packtory/report-attachment.js.map +1 -1
- package/packtory/stages/package-analysis-stage.js +24 -0
- package/packtory/stages/package-analysis-stage.js.map +1 -0
- package/packtory/stages/package-resolution-stage.js +44 -0
- package/packtory/stages/package-resolution-stage.js.map +1 -0
- package/packtory/stages/publish-stage.js +44 -0
- package/packtory/stages/publish-stage.js.map +1 -0
- package/packtory/stages/release-diff-stage.js +84 -0
- package/packtory/stages/release-diff-stage.js.map +1 -0
- package/published-package/published-package.d.ts +39 -0
- package/published-package/published-package.d.ts.map +1 -0
- package/published-package/published-package.js +11 -0
- package/published-package/published-package.js.map +1 -0
- package/readme.md +27 -12
- package/report/aggregator/artifact-entry-merger.js.map +1 -0
- package/report/aggregator/package-report-materialization.js +63 -0
- package/report/aggregator/package-report-materialization.js.map +1 -0
- package/report/aggregator/report-aggregator.js +36 -0
- package/report/aggregator/report-aggregator.js.map +1 -0
- package/report/{report-aggregator.js → aggregator/report-event-handlers.js} +8 -95
- package/report/aggregator/report-event-handlers.js.map +1 -0
- package/report/{report-aggregator.d.ts → aggregator/report-types.d.ts} +2 -2
- package/report/aggregator/report-types.d.ts.map +1 -0
- package/report/aggregator/report-types.js +4 -0
- package/report/aggregator/report-types.js.map +1 -0
- package/report/config-redactor.js.map +1 -1
- package/report/inspectors/inspect-artifact-sizes.js +34 -0
- package/report/inspectors/inspect-artifact-sizes.js.map +1 -0
- package/report/inspectors/inspect-linker-rewrites.js +15 -0
- package/report/inspectors/inspect-linker-rewrites.js.map +1 -0
- package/report/inspectors/inspect-package-json-provenance.js +16 -0
- package/report/inspectors/inspect-package-json-provenance.js.map +1 -0
- package/report/inspectors/inspect-scan-results.js +10 -0
- package/report/inspectors/inspect-scan-results.js.map +1 -0
- package/report/preview/preview-document-diff.d.ts +13 -0
- package/report/preview/preview-document-diff.d.ts.map +1 -0
- package/report/preview/preview-document-diff.js +29 -0
- package/report/preview/preview-document-diff.js.map +1 -0
- package/report/release-diff/file-hunks.js +10 -0
- package/report/release-diff/file-hunks.js.map +1 -0
- package/report/release-diff/file-set-diff.d.ts +49 -0
- package/report/release-diff/file-set-diff.d.ts.map +1 -0
- package/report/release-diff/file-set-diff.js +71 -0
- package/report/release-diff/file-set-diff.js.map +1 -0
- package/report/release-diff/release-version-transition.js +17 -0
- package/report/release-diff/release-version-transition.js.map +1 -0
- package/resource-resolver/bundle-resource-lookup.js +24 -0
- package/resource-resolver/bundle-resource-lookup.js.map +1 -0
- package/resource-resolver/content.js +8 -4
- package/resource-resolver/content.js.map +1 -1
- package/resource-resolver/dependency-resolution-walker.js +25 -0
- package/resource-resolver/dependency-resolution-walker.js.map +1 -0
- package/resource-resolver/resolved-bundle.d.ts +1 -0
- package/resource-resolver/resolved-bundle.d.ts.map +1 -1
- package/resource-resolver/resolved-bundle.js +4 -0
- package/resource-resolver/resolved-bundle.js.map +1 -0
- package/resource-resolver/resource-resolve-options.js.map +1 -1
- package/resource-resolver/resource-resolver.d.ts.map +1 -1
- package/resource-resolver/resource-resolver.js +22 -57
- package/resource-resolver/resource-resolver.js.map +1 -1
- package/sbom/sbom-canonicalizer.js +46 -0
- package/sbom/sbom-canonicalizer.js.map +1 -0
- package/sbom/sbom-file.d.ts +2 -2
- package/sbom/sbom-file.d.ts.map +1 -1
- package/sbom/sbom-file.js +2 -5
- package/sbom/sbom-file.js.map +1 -1
- package/tar/extract-tar.js +11 -8
- package/tar/extract-tar.js.map +1 -1
- package/tar/tarball-builder.d.ts +4 -0
- package/tar/tarball-builder.d.ts.map +1 -1
- package/tar/tarball-builder.js +24 -11
- package/tar/tarball-builder.js.map +1 -1
- package/vendor-materializer/vendor-entry.d.ts +1 -0
- package/vendor-materializer/vendor-entry.d.ts.map +1 -0
- package/vendor-materializer/vendor-entry.js +8 -0
- package/vendor-materializer/vendor-entry.js.map +1 -0
- package/vendor-materializer/vendor-materializer.d.ts +5 -0
- package/vendor-materializer/vendor-materializer.d.ts.map +1 -0
- package/vendor-materializer/vendor-materializer.js +232 -0
- package/vendor-materializer/vendor-materializer.js.map +1 -0
- package/version-manager/dependencies/bundle-dependency-grouping.js +23 -0
- package/version-manager/dependencies/bundle-dependency-grouping.js.map +1 -0
- package/version-manager/dependencies/dependency-groups.js +12 -0
- package/version-manager/dependencies/dependency-groups.js.map +1 -0
- package/version-manager/{versioned-bundle-dependencies.js → dependencies/external-dependency-classification.js} +4 -42
- package/version-manager/dependencies/external-dependency-classification.js.map +1 -0
- package/version-manager/dependencies/versioned-bundle-dependencies.js +9 -0
- package/version-manager/dependencies/versioned-bundle-dependencies.js.map +1 -0
- package/version-manager/imports/hash-import-scanner.js +21 -0
- package/version-manager/imports/hash-import-scanner.js.map +1 -0
- package/version-manager/imports/imports-key-matcher.js +21 -0
- package/version-manager/imports/imports-key-matcher.js.map +1 -0
- package/version-manager/{versioned-bundle-imports.js → imports/versioned-bundle-imports.js} +3 -36
- package/version-manager/imports/versioned-bundle-imports.js.map +1 -0
- package/version-manager/manager.js +1 -1
- package/version-manager/manager.js.map +1 -1
- package/version-manager/manifest/builder.js +3 -5
- package/version-manager/manifest/builder.js.map +1 -1
- package/version-manager/manifest/serialize.js +2 -41
- package/version-manager/manifest/serialize.js.map +1 -1
- package/version-manager/optional-bundle-fields.js +9 -0
- package/version-manager/optional-bundle-fields.js.map +1 -0
- package/version-manager/representative-root.js +30 -0
- package/version-manager/representative-root.js.map +1 -0
- package/version-manager/specifier-classifier.js +14 -11
- package/version-manager/specifier-classifier.js.map +1 -1
- package/version-manager/versioned-bundle.d.ts +7 -23
- package/version-manager/versioned-bundle.d.ts.map +1 -1
- package/version-manager/versioned-bundle.js +7 -40
- package/version-manager/versioned-bundle.js.map +1 -1
- package/zip/zip-builder.d.ts +5 -0
- package/zip/zip-builder.d.ts.map +1 -0
- package/zip/zip-builder.js +80 -0
- package/zip/zip-builder.js.map +1 -0
- package/bundle-emitter/publish-settings-bridge.js +0 -133
- package/bundle-emitter/publish-settings-bridge.js.map +0 -1
- package/bundle-emitter/registry-client.d.ts +0 -9
- package/bundle-emitter/registry-client.d.ts.map +0 -1
- package/bundle-emitter/registry-client.js +0 -265
- package/bundle-emitter/registry-client.js.map +0 -1
- package/package-surface/modules.js +0 -319
- package/package-surface/modules.js.map +0 -1
- package/packtory/prepare-package-options.d.ts +0 -14
- package/packtory/prepare-package-options.d.ts.map +0 -1
- package/packtory/prepare-package-options.js +0 -128
- package/packtory/prepare-package-options.js.map +0 -1
- package/report/artifact-entry-merger.js.map +0 -1
- package/report/inspectors.js +0 -74
- package/report/inspectors.js.map +0 -1
- package/report/report-aggregator.d.ts.map +0 -1
- package/report/report-aggregator.js.map +0 -1
- package/version-manager/manifest/sort-values.js.map +0 -1
- package/version-manager/versioned-bundle-dependencies.js.map +0 -1
- package/version-manager/versioned-bundle-imports.d.ts +0 -4
- package/version-manager/versioned-bundle-imports.d.ts.map +0 -1
- package/version-manager/versioned-bundle-imports.js.map +0 -1
- /package/{version-manager/manifest → common}/sort-values.js +0 -0
- /package/report/{artifact-entry-merger.js → aggregator/artifact-entry-merger.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getRoot } from "./root-registry.js";
|
|
2
|
+
import { resolveExplicitExportKey } from "./specifier-syntax.js";
|
|
3
|
+
export function resolveExplicitPublicModuleSourceFilePath(bundle, surface, specifier) {
|
|
4
|
+
const exportKey = resolveExplicitExportKey(bundle.name, specifier);
|
|
5
|
+
if (exportKey === undefined) {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
const { modules } = surface.packageInterface;
|
|
9
|
+
if (modules === undefined) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const matchingEntry = modules.find((entry) => {
|
|
13
|
+
return entry.export === exportKey;
|
|
14
|
+
});
|
|
15
|
+
return matchingEntry === undefined ? undefined : getRoot(bundle, matchingEntry.root).js.sourceFilePath;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=explicit-specifier-resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explicit-specifier-resolve.js","sourceRoot":"","sources":["../../../../source/package-surface/explicit-specifier-resolve.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIjE,MAAM,UAAU,yCAAyC,CACrD,MAA6B,EAC7B,OAAwB,EACxB,SAAiB;IAEjB,MAAM,SAAS,GAAG,wBAAwB,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACnE,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAC7C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QACzC,OAAO,KAAK,CAAC,MAAM,KAAK,SAAS,CAAC;IACtC,CAAC,CAAC,CAAC;IACH,OAAO,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC;AAC3G,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { buildExplicitExportsField } from "./explicit-exports.js";
|
|
2
|
+
import { buildImplicitExportsField } from "./implicit-exports.js";
|
|
3
|
+
export function buildExportsField(bundle, substitutionPublicModuleSourcePaths) {
|
|
4
|
+
const record = bundle.surface.mode === 'explicit'
|
|
5
|
+
? buildExplicitExportsField(bundle, bundle.surface)
|
|
6
|
+
: buildImplicitExportsField(bundle, bundle.surface, substitutionPublicModuleSourcePaths);
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- the assembled record conforms to PackageJson exports
|
|
8
|
+
return record;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=export-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-map.js","sourceRoot":"","sources":["../../../../source/package-surface/export-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,UAAU,iBAAiB,CAC7B,MAAkB,EAClB,mCAAwD;IAExD,MAAM,MAAM,GACR,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU;QAC9B,CAAC,CAAC,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC;QACnD,CAAC,CAAC,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,mCAAmC,CAAC,CAAC;IACjG,+HAA+H;IAC/H,OAAO,MAAsB,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { toImportTarget } from "./package-shape.js";
|
|
2
|
+
function isShebangContent(content) {
|
|
3
|
+
return content.startsWith('#!');
|
|
4
|
+
}
|
|
5
|
+
function unscopedPackageName(packageName) {
|
|
6
|
+
return packageName.replace(/^@[^/]+\//u, '');
|
|
7
|
+
}
|
|
8
|
+
function getExecutableShebangRoots(bundle) {
|
|
9
|
+
return Object.values(bundle.roots).filter((root) => {
|
|
10
|
+
return root.js.isExecutable && isShebangContent(root.js.content);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export function buildImplicitBinField(bundle) {
|
|
14
|
+
const [root, extraRoot] = getExecutableShebangRoots(bundle);
|
|
15
|
+
if (root === undefined) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
if (extraRoot !== undefined) {
|
|
19
|
+
throw new Error(`Package "${bundle.name}" has multiple executable shebang roots; declare packageInterface.bins explicitly`);
|
|
20
|
+
}
|
|
21
|
+
return { [unscopedPackageName(bundle.name)]: toImportTarget(root.js.targetFilePath) };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=implicit-bin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implicit-bin.js","sourceRoot":"","sources":["../../../../source/package-surface/implicit-bin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAA6C,MAAM,oBAAoB,CAAC;AAI/F,SAAS,gBAAgB,CAAC,OAAe;IACrC,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,mBAAmB,CAAC,WAAmB;IAC5C,OAAO,WAAW,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC;AAED,SAAS,yBAAyB,CAAC,MAAwC;IACvE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/C,OAAO,IAAI,CAAC,EAAE,CAAC,YAAY,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,MAAyB;IAC3D,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAC5D,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACX,YAAY,MAAM,CAAC,IAAI,mFAAmF,CAC7G,CAAC;IACN,CAAC;IACD,OAAO,EAAE,CAAC,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { buildImplicitRootExports } from "./implicit-root-exports.js";
|
|
2
|
+
import { decorateWithPackageJsonExport } from "./package-json-export.js";
|
|
3
|
+
import { collectSubstitutionExports } from "./substitution-exports.js";
|
|
4
|
+
export function buildImplicitExportsField(bundle, surface, substitutionPublicModuleSourcePaths) {
|
|
5
|
+
const merged = {
|
|
6
|
+
...buildImplicitRootExports(bundle, surface),
|
|
7
|
+
...collectSubstitutionExports(bundle, substitutionPublicModuleSourcePaths)
|
|
8
|
+
};
|
|
9
|
+
return decorateWithPackageJsonExport(bundle, merged);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=implicit-exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implicit-exports.js","sourceRoot":"","sources":["../../../../source/package-surface/implicit-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAIvE,MAAM,UAAU,yBAAyB,CACrC,MAA6B,EAC7B,OAAwB,EACxB,mCAAwD;IAExD,MAAM,MAAM,GAAyC;QACjD,GAAG,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC;QAC5C,GAAG,0BAA0B,CAAC,MAAM,EAAE,mCAAmC,CAAC;KAC7E,CAAC;IACF,OAAO,6BAA6B,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { buildExportEntry } from "./package-shape.js";
|
|
2
|
+
import { getRoot } from "./root-registry.js";
|
|
3
|
+
export function buildImplicitRootExports(bundle, surface) {
|
|
4
|
+
const rootExports = {
|
|
5
|
+
'.': buildExportEntry(getRoot(bundle, surface.defaultModuleRoot))
|
|
6
|
+
};
|
|
7
|
+
for (const [rootId, root] of Object.entries(bundle.roots)) {
|
|
8
|
+
if (rootId !== surface.defaultModuleRoot) {
|
|
9
|
+
rootExports[`./${root.js.targetFilePath}`] = buildExportEntry(root);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return rootExports;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=implicit-root-exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implicit-root-exports.js","sourceRoot":"","sources":["../../../../source/package-surface/implicit-root-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA2D,MAAM,oBAAoB,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C,MAAM,UAAU,wBAAwB,CACpC,MAA0B,EAC1B,OAAwB;IAExB,MAAM,WAAW,GAAgC;QAC7C,GAAG,EAAE,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;KACpE,CAAC;IAEF,KAAK,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,MAAM,KAAK,OAAO,CAAC,iBAAiB,EAAE,CAAC;YACvC,WAAW,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;QACxE,CAAC;IACL,CAAC;IAED,OAAO,WAAW,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getRoot, isMatchingRootSourcePath } from "./root-registry.js";
|
|
2
|
+
function getDefaultRootSpecifier(bundle, surface, sourceFilePath) {
|
|
3
|
+
return isMatchingRootSourcePath(getRoot(bundle, surface.defaultModuleRoot), sourceFilePath)
|
|
4
|
+
? bundle.name
|
|
5
|
+
: undefined;
|
|
6
|
+
}
|
|
7
|
+
function getDeclarationRootSpecifier(bundle, sourceFilePath) {
|
|
8
|
+
const declarationRoot = Object.values(bundle.roots).find((root) => {
|
|
9
|
+
return root.declarationFile?.sourceFilePath === sourceFilePath;
|
|
10
|
+
});
|
|
11
|
+
return declarationRoot === undefined ? undefined : `${bundle.name}/${declarationRoot.js.targetFilePath}`;
|
|
12
|
+
}
|
|
13
|
+
function getContentSpecifier(bundle, sourceFilePath) {
|
|
14
|
+
const content = bundle.contents.find((entry) => {
|
|
15
|
+
return entry.fileDescription.sourceFilePath === sourceFilePath;
|
|
16
|
+
});
|
|
17
|
+
return content === undefined ? undefined : `${bundle.name}/${content.fileDescription.targetFilePath}`;
|
|
18
|
+
}
|
|
19
|
+
export function getImplicitPublicModuleSpecifier(bundle, surface, sourceFilePath) {
|
|
20
|
+
const defaultSpecifier = getDefaultRootSpecifier(bundle, surface, sourceFilePath);
|
|
21
|
+
if (defaultSpecifier !== undefined) {
|
|
22
|
+
return defaultSpecifier;
|
|
23
|
+
}
|
|
24
|
+
return getDeclarationRootSpecifier(bundle, sourceFilePath) ?? getContentSpecifier(bundle, sourceFilePath);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=implicit-specifier-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implicit-specifier-build.js","sourceRoot":"","sources":["../../../../source/package-surface/implicit-specifier-build.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAIvE,SAAS,uBAAuB,CAC5B,MAAmD,EACnD,OAAwB,EACxB,cAAsB;IAEtB,OAAO,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAAE,cAAc,CAAC;QACvF,CAAC,CAAC,MAAM,CAAC,IAAI;QACb,CAAC,CAAC,SAAS,CAAC;AACpB,CAAC;AAED,SAAS,2BAA2B,CAChC,MAAmD,EACnD,cAAsB;IAEtB,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9D,OAAO,IAAI,CAAC,eAAe,EAAE,cAAc,KAAK,cAAc,CAAC;IACnE,CAAC,CAAC,CAAC;IACH,OAAO,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,eAAe,CAAC,EAAE,CAAC,cAAc,EAAE,CAAC;AAC7G,CAAC;AAED,SAAS,mBAAmB,CACxB,MAAsD,EACtD,cAAsB;IAEtB,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;QAC3C,OAAO,KAAK,CAAC,eAAe,CAAC,cAAc,KAAK,cAAc,CAAC;IACnE,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC;AAC1G,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC5C,MAA2B,EAC3B,OAAwB,EACxB,cAAsB;IAEtB,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAClF,IAAI,gBAAgB,KAAK,SAAS,EAAE,CAAC;QACjC,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IACD,OAAO,2BAA2B,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI,mBAAmB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAC9G,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getRoot } from "./root-registry.js";
|
|
2
|
+
import { resolveImplicitSpecifier } from "./specifier-syntax.js";
|
|
3
|
+
export function resolveImplicitPublicModuleSourceFilePath(bundle, surface, specifier) {
|
|
4
|
+
const [kind, targetFilePath] = resolveImplicitSpecifier(bundle.name, specifier);
|
|
5
|
+
const handlers = {
|
|
6
|
+
root: () => {
|
|
7
|
+
return getRoot(bundle, surface.defaultModuleRoot).js.sourceFilePath;
|
|
8
|
+
},
|
|
9
|
+
content: () => {
|
|
10
|
+
return bundle.contents.find((entry) => {
|
|
11
|
+
return entry.fileDescription.targetFilePath === targetFilePath;
|
|
12
|
+
})?.fileDescription.sourceFilePath;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return kind === 'private' ? undefined : handlers[kind]();
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=implicit-specifier-resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implicit-specifier-resolve.js","sourceRoot":"","sources":["../../../../source/package-surface/implicit-specifier-resolve.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAoC,MAAM,uBAAuB,CAAC;AAQnG,MAAM,UAAU,yCAAyC,CACrD,MAA6B,EAC7B,OAAwB,EACxB,SAAiB;IAEjB,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,GAAG,wBAAwB,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAChF,MAAM,QAAQ,GAAuB;QACjC,IAAI,EAAE,GAAW,EAAE;YACf,OAAO,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC;QACxE,CAAC;QACD,OAAO,EAAE,GAAuB,EAAE;YAC9B,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;gBAClC,OAAO,KAAK,CAAC,eAAe,CAAC,cAAc,KAAK,cAAc,CAAC;YACnE,CAAC,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC;QACvC,CAAC;KACJ,CAAC;IAEF,OAAO,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const packageJsonExportKey = './package.json';
|
|
2
|
+
const packageJsonExportTarget = './package.json';
|
|
3
|
+
export function decorateWithPackageJsonExport(bundle, exportsField) {
|
|
4
|
+
if (bundle.exportPackageJson !== true) {
|
|
5
|
+
return exportsField;
|
|
6
|
+
}
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- spread preserves the generic record shape
|
|
8
|
+
return { ...exportsField, [packageJsonExportKey]: packageJsonExportTarget };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=package-json-export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json-export.js","sourceRoot":"","sources":["../../../../source/package-surface/package-json-export.ts"],"names":[],"mappings":"AAEA,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAC9C,MAAM,uBAAuB,GAAG,gBAAgB,CAAC;AAEjD,MAAM,UAAU,6BAA6B,CACzC,MAA6B,EAC7B,YAAsB;IAEtB,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI,EAAE,CAAC;QACpC,OAAO,YAAY,CAAC;IACxB,CAAC;IAED,sHAAsH;IACtH,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC,oBAAoB,CAAC,EAAE,uBAAuB,EAAc,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function toImportTarget(targetFilePath) {
|
|
2
|
+
return `./${targetFilePath}`;
|
|
3
|
+
}
|
|
4
|
+
export function buildExportEntry(root) {
|
|
5
|
+
return {
|
|
6
|
+
import: toImportTarget(root.js.targetFilePath),
|
|
7
|
+
...(root.declarationFile === undefined ? {} : { types: toImportTarget(root.declarationFile.targetFilePath) })
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=package-shape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-shape.js","sourceRoot":"","sources":["../../../../source/package-surface/package-shape.ts"],"names":[],"mappings":"AA+BA,MAAM,UAAU,cAAc,CAAC,cAAsB;IACjD,OAAO,KAAK,cAAc,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAyB;IACtD,OAAO;QACH,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC;QAC9C,GAAG,CAAC,IAAI,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,CAAC;KAChH,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts as typescript } from 'ts-morph';
|
|
2
2
|
import { isCodeFile } from "../common/code-files.js";
|
|
3
|
-
import { resolvePublicModuleSourceFilePath } from "./
|
|
3
|
+
import { resolvePublicModuleSourceFilePath } from "./public-specifiers.js";
|
|
4
4
|
function recordUsage(usages, bundleName, sourceFilePath) {
|
|
5
5
|
const existing = usages.get(bundleName) ?? new Set();
|
|
6
6
|
existing.add(sourceFilePath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-module-usage.js","sourceRoot":"","sources":["../../../../source/package-surface/public-module-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,iCAAiC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"public-module-usage.js","sourceRoot":"","sources":["../../../../source/package-surface/public-module-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAE3E,SAAS,WAAW,CAAC,MAAgC,EAAE,UAAkB,EAAE,cAAsB;IAC7F,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;IAC7D,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC7B,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACrC,CAAC;AAED,QAAQ,CAAC,CAAC,uBAAuB,CAAC,MAAsB;IACpD,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC;QAC7D,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YAC5D,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAC7C,MAAM,OAAO,CAAC,QAAQ,CAAC;YAC3B,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAkC;IACvE,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;IAE9C,KAAK,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;QACrD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACjC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;gBAC3B,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC;oBAChC,MAAM,cAAc,GAAG,iCAAiC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;oBAC5E,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;wBAC/B,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;oBACrD,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getExplicitPublicModuleSpecifier } from "./explicit-specifier-build.js";
|
|
2
|
+
import { resolveExplicitPublicModuleSourceFilePath } from "./explicit-specifier-resolve.js";
|
|
3
|
+
import { getImplicitPublicModuleSpecifier } from "./implicit-specifier-build.js";
|
|
4
|
+
import { resolveImplicitPublicModuleSourceFilePath } from "./implicit-specifier-resolve.js";
|
|
5
|
+
export function getPublicModuleSpecifierForSourcePath(bundle, sourceFilePath) {
|
|
6
|
+
if (bundle.surface.mode === 'explicit') {
|
|
7
|
+
return getExplicitPublicModuleSpecifier(bundle, bundle.surface, sourceFilePath);
|
|
8
|
+
}
|
|
9
|
+
return getImplicitPublicModuleSpecifier(bundle, bundle.surface, sourceFilePath);
|
|
10
|
+
}
|
|
11
|
+
export function resolvePublicModuleSourceFilePath(bundle, specifier) {
|
|
12
|
+
if (bundle.surface.mode === 'explicit') {
|
|
13
|
+
return resolveExplicitPublicModuleSourceFilePath(bundle, bundle.surface, specifier);
|
|
14
|
+
}
|
|
15
|
+
return resolveImplicitPublicModuleSourceFilePath(bundle, bundle.surface, specifier);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=public-specifiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-specifiers.js","sourceRoot":"","sources":["../../../../source/package-surface/public-specifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAC;AAG5F,MAAM,UAAU,qCAAqC,CAAC,MAAkB,EAAE,cAAsB;IAC5F,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACrC,OAAO,gCAAgC,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IACpF,CAAC;IACD,OAAO,gCAAgC,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,MAAkB,EAAE,SAAiB;IACnF,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACrC,OAAO,yCAAyC,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACxF,CAAC;IACD,OAAO,yCAAyC,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AACxF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { isImplicitPackageSurface } from "./surface.js";
|
|
2
|
+
export function getRoot(bundle, rootId) {
|
|
3
|
+
const root = bundle.roots[rootId];
|
|
4
|
+
if (root === undefined) {
|
|
5
|
+
throw new Error(`Package "${bundle.name}" references unknown root "${rootId}"`);
|
|
6
|
+
}
|
|
7
|
+
return root;
|
|
8
|
+
}
|
|
9
|
+
export function isMatchingRootSourcePath(root, sourceFilePath) {
|
|
10
|
+
if (root.js.sourceFilePath === sourceFilePath) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return root.declarationFile?.sourceFilePath === sourceFilePath;
|
|
14
|
+
}
|
|
15
|
+
function getPublicRootIds(bundle) {
|
|
16
|
+
if (isImplicitPackageSurface(bundle.surface)) {
|
|
17
|
+
return new Set(Object.keys(bundle.roots));
|
|
18
|
+
}
|
|
19
|
+
const rootIds = new Set();
|
|
20
|
+
for (const entry of bundle.surface.packageInterface.modules ?? []) {
|
|
21
|
+
rootIds.add(entry.root);
|
|
22
|
+
}
|
|
23
|
+
for (const entry of bundle.surface.packageInterface.bins ?? []) {
|
|
24
|
+
rootIds.add(entry.root);
|
|
25
|
+
}
|
|
26
|
+
return rootIds;
|
|
27
|
+
}
|
|
28
|
+
export function getEntryRootIds(bundle) {
|
|
29
|
+
const publicRootIds = getPublicRootIds(bundle);
|
|
30
|
+
if (isImplicitPackageSurface(bundle.surface)) {
|
|
31
|
+
return publicRootIds;
|
|
32
|
+
}
|
|
33
|
+
return new Set([...publicRootIds, ...(bundle.surface.packageInterface.privateRoots ?? [])]);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=root-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-registry.js","sourceRoot":"","sources":["../../../../source/package-surface/root-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAGxD,MAAM,UAAU,OAAO,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B,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3C,OAAO,aAAa,CAAC;IACzB,CAAC;IAED,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const exportKeyPrefixLength = 2;
|
|
2
|
+
export function toPackageSpecifier(packageName, exportKey) {
|
|
3
|
+
return exportKey === '.' ? packageName : `${packageName}/${exportKey.slice(exportKeyPrefixLength)}`;
|
|
4
|
+
}
|
|
5
|
+
export function resolveExplicitExportKey(packageName, specifier) {
|
|
6
|
+
if (specifier === packageName) {
|
|
7
|
+
return '.';
|
|
8
|
+
}
|
|
9
|
+
if (specifier.startsWith(`${packageName}/`)) {
|
|
10
|
+
return `./${specifier.slice(packageName.length + 1)}`;
|
|
11
|
+
}
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
export function resolveImplicitSpecifier(bundleName, specifier) {
|
|
15
|
+
if (specifier === bundleName) {
|
|
16
|
+
return ['root'];
|
|
17
|
+
}
|
|
18
|
+
const prefix = `${bundleName}/`;
|
|
19
|
+
if (!specifier.startsWith(prefix)) {
|
|
20
|
+
return ['private'];
|
|
21
|
+
}
|
|
22
|
+
return ['content', specifier.slice(prefix.length)];
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=specifier-syntax.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specifier-syntax.js","sourceRoot":"","sources":["../../../../source/package-surface/specifier-syntax.ts"],"names":[],"mappings":"AAAA,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAIhC,MAAM,UAAU,kBAAkB,CAAC,WAAmB,EAAE,SAAiB;IACrE,OAAO,SAAS,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC;AACxG,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,WAAmB,EAAE,SAAiB;IAC3E,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC;IACf,CAAC;IACD,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,WAAW,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,KAAK,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,UAAkB,EAAE,SAAiB;IAC1E,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3B,OAAO,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAED,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,CAAC;IAChC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAChC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { toImportTarget } from "./package-shape.js";
|
|
2
|
+
const jsExtensionToDeclarationExtension = new Map([
|
|
3
|
+
['.mjs', '.d.mts'],
|
|
4
|
+
['.cjs', '.d.cts'],
|
|
5
|
+
['.js', '.d.ts']
|
|
6
|
+
]);
|
|
7
|
+
function isRootSourcePath(bundle, sourceFilePath) {
|
|
8
|
+
return Object.values(bundle.roots).some((root) => {
|
|
9
|
+
return root.js.sourceFilePath === sourceFilePath;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function isDeclarationTargetFilePath(targetFilePath) {
|
|
13
|
+
return targetFilePath.endsWith('.d.ts') || targetFilePath.endsWith('.d.mts') || targetFilePath.endsWith('.d.cts');
|
|
14
|
+
}
|
|
15
|
+
function findContent(bundle, sourceFilePath) {
|
|
16
|
+
const content = bundle.contents.find((entry) => {
|
|
17
|
+
return entry.fileDescription.sourceFilePath === sourceFilePath;
|
|
18
|
+
});
|
|
19
|
+
if (content === undefined) {
|
|
20
|
+
throw new Error(`Package "${bundle.name}" is missing content for "${sourceFilePath}"`);
|
|
21
|
+
}
|
|
22
|
+
return content;
|
|
23
|
+
}
|
|
24
|
+
function findContentTargetPath(bundle, targetFilePath) {
|
|
25
|
+
const match = bundle.contents.find((entry) => {
|
|
26
|
+
return entry.fileDescription.targetFilePath === targetFilePath;
|
|
27
|
+
});
|
|
28
|
+
return match?.fileDescription.targetFilePath;
|
|
29
|
+
}
|
|
30
|
+
function findDeclarationCompanionTargetPath(bundle, jsTargetFilePath) {
|
|
31
|
+
for (const [jsExtension, declarationExtension] of jsExtensionToDeclarationExtension) {
|
|
32
|
+
if (jsTargetFilePath.endsWith(jsExtension)) {
|
|
33
|
+
const candidatePath = `${jsTargetFilePath.slice(0, -jsExtension.length)}${declarationExtension}`;
|
|
34
|
+
return findContentTargetPath(bundle, candidatePath);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
function buildSubstitutionExportEntry(bundle, sourceFilePath) {
|
|
40
|
+
if (isRootSourcePath(bundle, sourceFilePath)) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
const jsTargetFilePath = findContent(bundle, sourceFilePath).fileDescription.targetFilePath;
|
|
44
|
+
if (isDeclarationTargetFilePath(jsTargetFilePath)) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
const declarationTargetFilePath = findDeclarationCompanionTargetPath(bundle, jsTargetFilePath);
|
|
48
|
+
return [
|
|
49
|
+
`./${jsTargetFilePath}`,
|
|
50
|
+
{
|
|
51
|
+
import: toImportTarget(jsTargetFilePath),
|
|
52
|
+
...(declarationTargetFilePath === undefined ? {} : { types: toImportTarget(declarationTargetFilePath) })
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
export function collectSubstitutionExports(bundle, substitutionPublicModuleSourcePaths) {
|
|
57
|
+
const substitutionExports = {};
|
|
58
|
+
for (const sourceFilePath of substitutionPublicModuleSourcePaths) {
|
|
59
|
+
const entry = buildSubstitutionExportEntry(bundle, sourceFilePath);
|
|
60
|
+
if (entry !== undefined) {
|
|
61
|
+
const [exportKey, exportEntry] = entry;
|
|
62
|
+
substitutionExports[exportKey] = exportEntry;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return substitutionExports;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=substitution-exports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"substitution-exports.js","sourceRoot":"","sources":["../../../../source/package-surface/substitution-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,oBAAoB,CAAC;AAIvF,MAAM,iCAAiC,GAAgC,IAAI,GAAG,CAAC;IAC3E,CAAC,MAAM,EAAE,QAAQ,CAAC;IAClB,CAAC,MAAM,EAAE,QAAQ,CAAC;IAClB,CAAC,KAAK,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,SAAS,gBAAgB,CAAC,MAAiC,EAAE,cAAsB;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;QAC7C,OAAO,IAAI,CAAC,EAAE,CAAC,cAAc,KAAK,cAAc,CAAC;IACrD,CAAC,CAAC,CAAC;AACP,CAAC;AAED,SAAS,2BAA2B,CAAC,cAAsB;IACvD,OAAO,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,IA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8.3",
|
|
17
|
+
"hosted-git-info": "10.1.1",
|
|
18
|
+
"libnpmpublish": "11.2.0",
|
|
17
19
|
"npm-package-arg": "14.0.0",
|
|
18
|
-
"npm-registry-fetch": "
|
|
20
|
+
"npm-registry-fetch": "20.0.0",
|
|
19
21
|
"remeda": "2.34.1",
|
|
20
|
-
"semver": "7.8.
|
|
22
|
+
"semver": "7.8.1",
|
|
21
23
|
"spdx-expression-parse": "4.0.0",
|
|
22
24
|
"tar-stream": "3.1.8",
|
|
23
25
|
"true-myth": "9.3.1",
|
|
@@ -42,8 +44,13 @@
|
|
|
42
44
|
"import": "./common/clock.js",
|
|
43
45
|
"types": "./common/clock.d.ts"
|
|
44
46
|
},
|
|
45
|
-
"./common/
|
|
46
|
-
"import": "./common/
|
|
47
|
+
"./common/typed-diff.js": {
|
|
48
|
+
"import": "./common/typed-diff.js",
|
|
49
|
+
"types": "./common/typed-diff.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./file-manager/file-manager.js": {
|
|
52
|
+
"import": "./file-manager/file-manager.js",
|
|
53
|
+
"types": "./file-manager/file-manager.d.ts"
|
|
47
54
|
},
|
|
48
55
|
"./package.json": "./package.json",
|
|
49
56
|
"./packages/package-processor.composition.js": {
|
|
@@ -56,6 +63,10 @@
|
|
|
56
63
|
"./packtory/scheduler.js": {
|
|
57
64
|
"import": "./packtory/scheduler.js",
|
|
58
65
|
"types": "./packtory/scheduler.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./report/preview/preview-document-diff.js": {
|
|
68
|
+
"import": "./report/preview/preview-document-diff.js",
|
|
69
|
+
"types": "./report/preview/preview-document-diff.d.ts"
|
|
59
70
|
}
|
|
60
71
|
},
|
|
61
72
|
"keywords": [
|
|
@@ -77,18 +88,20 @@
|
|
|
77
88
|
"url": "git+ssh://git@github.com/enormora/packtory.git"
|
|
78
89
|
},
|
|
79
90
|
"sideEffects": [
|
|
80
|
-
"./bundle-emitter/publish-
|
|
91
|
+
"./bundle-emitter/publish-error/publish-error-messages.js",
|
|
81
92
|
"./bundle-emitter/repository-coherence.js",
|
|
82
93
|
"./config/checks-schema.js",
|
|
83
94
|
"./config/package-schemas.js",
|
|
84
95
|
"./config/packtory-config-without-registry-schema.js",
|
|
85
|
-
"./dead-code-eliminator/
|
|
86
|
-
"./dead-code-eliminator/
|
|
96
|
+
"./dead-code-eliminator/pure-expression.js",
|
|
97
|
+
"./dead-code-eliminator/statement-classifiers.js",
|
|
98
|
+
"./dead-code-eliminator/syntax-kind-sets.js",
|
|
99
|
+
"./dead-code-eliminator/transform/named-declaration-kinds.js",
|
|
87
100
|
"./packages/package-processor.composition.js",
|
|
88
101
|
"./packages/packtory/packtory.entry-point.js",
|
|
89
102
|
"./sbom/sbom-builder.js",
|
|
90
103
|
"./tar/tarball-builder.js"
|
|
91
104
|
],
|
|
92
105
|
"type": "module",
|
|
93
|
-
"version": "0.0.
|
|
106
|
+
"version": "0.0.16"
|
|
94
107
|
}
|
|
@@ -13,11 +13,13 @@ import npmFetch from 'npm-registry-fetch';
|
|
|
13
13
|
import { ModuleKind, ModuleResolutionKind, Project, ScriptTarget } from 'ts-morph';
|
|
14
14
|
import { createArtifactsBuilder } from "../artifacts/artifacts-builder.js";
|
|
15
15
|
import { createBundleEmitter } from "../bundle-emitter/emitter.js";
|
|
16
|
-
import { createRegistryClient } from "../bundle-emitter/registry-client.js";
|
|
16
|
+
import { createRegistryClient } from "../bundle-emitter/registry/registry-client.js";
|
|
17
|
+
import { createPackEmitter } from "../pack-emitter/pack-emitter.js";
|
|
18
|
+
import { createVendorMaterializer } from "../vendor-materializer/vendor-materializer.js";
|
|
17
19
|
import { getCiRepositoryUrl } from "../bundle-emitter/repository-coherence.js";
|
|
18
20
|
import { createDeadCodeEliminator } from "../dead-code-eliminator/eliminator.js";
|
|
19
21
|
import { createDependencyScanner } from "../dependency-scanner/scanner.js";
|
|
20
|
-
import {
|
|
22
|
+
import { getReferencedModules } from "../dependency-scanner/source-file-references.js";
|
|
21
23
|
import { createSourceMapFileLocator } from "../dependency-scanner/source-map-file-locator.js";
|
|
22
24
|
import { createFileSystemAdapters } from "../dependency-scanner/typescript-file-host.js";
|
|
23
25
|
import { createTypescriptProjectAnalyzer } from "../dependency-scanner/typescript-project-analyzer.js";
|
|
@@ -28,6 +30,7 @@ import { createProgressBroadcaster } from "../progress/progress-broadcaster.js";
|
|
|
28
30
|
import { withStageTimings } from "../report/decorators.js";
|
|
29
31
|
import { createResourceResolver } from "../resource-resolver/resource-resolver.js";
|
|
30
32
|
import { createTarballBuilder } from "../tar/tarball-builder.js";
|
|
33
|
+
import { createZipBuilder } from "../zip/zip-builder.js";
|
|
31
34
|
import { createVersionManager } from "../version-manager/manager.js";
|
|
32
35
|
import { createClock } from "../common/clock.js";
|
|
33
36
|
import { createNpmOidcIdTokenResolver } from "../npm-oidc-id-token-resolver.js";
|
|
@@ -47,7 +50,7 @@ function createDependencyScannerWith(fileManager) {
|
|
|
47
50
|
const fileSystemAdapters = createFileSystemAdapters({ fileSystemHost: new RealFileSystemHost() });
|
|
48
51
|
const typescriptProjectAnalyzer = createTypescriptProjectAnalyzer({
|
|
49
52
|
Project,
|
|
50
|
-
|
|
53
|
+
getReferencedModules,
|
|
51
54
|
fileSystemAdapters
|
|
52
55
|
});
|
|
53
56
|
return createDependencyScanner({ sourceMapFileLocator, typescriptProjectAnalyzer });
|
|
@@ -73,27 +76,16 @@ function buildSbomFileBuilder(fileManager) {
|
|
|
73
76
|
projectFolder: process.cwd()
|
|
74
77
|
});
|
|
75
78
|
}
|
|
76
|
-
function buildBundleEmitter(options,
|
|
79
|
+
function buildBundleEmitter(options, artifactsBuilder) {
|
|
77
80
|
const registryClient = buildRegistryClient(options, createClock());
|
|
78
|
-
const artifactsBuilder = createArtifactsBuilder({
|
|
79
|
-
fileManager,
|
|
80
|
-
tarballBuilder: createTarballBuilder(),
|
|
81
|
-
progressBroadcaster: progressBroadcaster.provider
|
|
82
|
-
});
|
|
83
81
|
return createBundleEmitter({
|
|
84
82
|
registryClient,
|
|
85
83
|
artifactsBuilder,
|
|
86
84
|
ciRepositoryUrl: getCiRepositoryUrl(options.ciEnvironment)
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const dependencyScanner = createDependencyScannerWith(fileManager);
|
|
92
|
-
const progressBroadcaster = createProgressBroadcaster();
|
|
93
|
-
const bundleEmitter = buildBundleEmitter(options, fileManager, progressBroadcaster);
|
|
94
|
-
const resourceResolver = createResourceResolver({ fileManager, dependencyScanner });
|
|
95
|
-
const sbomFileBuilder = buildSbomFileBuilder(fileManager);
|
|
96
|
-
const deadCodeEliminator = createDeadCodeEliminator({
|
|
87
|
+
function buildDeadCodeEliminator(progressBroadcaster) {
|
|
88
|
+
return createDeadCodeEliminator({
|
|
97
89
|
progressBroadcaster: progressBroadcaster.provider,
|
|
98
90
|
createProject: () => {
|
|
99
91
|
return new Project({
|
|
@@ -110,16 +102,53 @@ export function buildPackageProcessorComposition(options) {
|
|
|
110
102
|
});
|
|
111
103
|
}
|
|
112
104
|
});
|
|
105
|
+
}
|
|
106
|
+
function buildCompositionParts(options) {
|
|
107
|
+
const fileManager = createFileManager({ hostFileSystem: fs.promises });
|
|
108
|
+
const dependencyScanner = createDependencyScannerWith(fileManager);
|
|
109
|
+
const progressBroadcaster = createProgressBroadcaster();
|
|
110
|
+
const artifactsBuilder = createArtifactsBuilder({
|
|
111
|
+
fileManager,
|
|
112
|
+
tarballBuilder: createTarballBuilder({ fileManager }),
|
|
113
|
+
zipBuilder: createZipBuilder({ fileManager }),
|
|
114
|
+
progressBroadcaster: progressBroadcaster.provider
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
fileManager,
|
|
118
|
+
progressBroadcaster,
|
|
119
|
+
artifactsBuilder,
|
|
120
|
+
bundleEmitter: buildBundleEmitter(options, artifactsBuilder),
|
|
121
|
+
resourceResolver: createResourceResolver({ fileManager, dependencyScanner }),
|
|
122
|
+
sbomFileBuilder: buildSbomFileBuilder(fileManager),
|
|
123
|
+
deadCodeEliminator: buildDeadCodeEliminator(progressBroadcaster)
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
export function buildPackageProcessorComposition(options) {
|
|
127
|
+
const parts = buildCompositionParts(options);
|
|
128
|
+
const versionManager = createVersionManager({ progressBroadcaster: parts.progressBroadcaster.provider });
|
|
113
129
|
const basePackageProcessor = createPackageProcessor({
|
|
114
|
-
progressBroadcaster: progressBroadcaster.provider,
|
|
115
|
-
versionManager
|
|
116
|
-
bundleEmitter,
|
|
130
|
+
progressBroadcaster: parts.progressBroadcaster.provider,
|
|
131
|
+
versionManager,
|
|
132
|
+
bundleEmitter: parts.bundleEmitter,
|
|
117
133
|
linker: createBundleLinker(),
|
|
118
|
-
resourceResolver,
|
|
119
|
-
sbomFileBuilder,
|
|
120
|
-
deadCodeEliminator
|
|
134
|
+
resourceResolver: parts.resourceResolver,
|
|
135
|
+
sbomFileBuilder: parts.sbomFileBuilder,
|
|
136
|
+
deadCodeEliminator: parts.deadCodeEliminator
|
|
137
|
+
});
|
|
138
|
+
const packageProcessor = withStageTimings(basePackageProcessor, parts.progressBroadcaster.provider);
|
|
139
|
+
const packEmitter = createPackEmitter({
|
|
140
|
+
artifactsBuilder: parts.artifactsBuilder,
|
|
141
|
+
fileManager: parts.fileManager
|
|
121
142
|
});
|
|
122
|
-
const
|
|
123
|
-
return {
|
|
143
|
+
const vendorMaterializer = createVendorMaterializer({ fileManager: parts.fileManager });
|
|
144
|
+
return {
|
|
145
|
+
packageProcessor,
|
|
146
|
+
progressBroadcaster: parts.progressBroadcaster,
|
|
147
|
+
deadCodeEliminator: parts.deadCodeEliminator,
|
|
148
|
+
artifactsBuilder: parts.artifactsBuilder,
|
|
149
|
+
versionManager,
|
|
150
|
+
packEmitter,
|
|
151
|
+
vendorMaterializer
|
|
152
|
+
};
|
|
124
153
|
}
|
|
125
154
|
//# sourceMappingURL=package-processor.composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-processor.composition.js","sourceRoot":"","sources":["../../../../source/packages/package-processor.composition.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACnF,OAAO,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"package-processor.composition.js","sourceRoot":"","sources":["../../../../source/packages/package-processor.composition.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAyB,MAAM,mCAAmC,CAAC;AAClG,OAAO,EAAE,mBAAmB,EAAsB,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAuB,MAAM,+CAA+C,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAoB,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAA2B,MAAM,+CAA+C,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAsB,MAAM,2CAA2C,CAAC;AAEnG,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAA0B,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAA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