packtory 0.0.91 → 0.0.92
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.js +4 -37
- package/artifacts/artifacts-builder.js.map +1 -1
- package/artifacts/content-collection.js +2 -59
- package/artifacts/content-collection.js.map +1 -1
- package/artifacts/folder-writer.js +2 -25
- package/artifacts/folder-writer.js.map +1 -1
- package/bundle-emitter/emitter.d.ts +0 -8
- package/bundle-emitter/emitter.d.ts.map +1 -1
- package/bundle-emitter/emitter.js +6 -106
- package/bundle-emitter/emitter.js.map +1 -1
- package/bundle-emitter/extract-package-tarball.js +2 -13
- package/bundle-emitter/extract-package-tarball.js.map +1 -1
- package/bundle-emitter/fetch-published-artifacts.js +2 -16
- package/bundle-emitter/fetch-published-artifacts.js.map +1 -1
- package/bundle-emitter/publication-outcome.d.ts +0 -3
- package/bundle-emitter/publication-outcome.d.ts.map +1 -1
- package/bundle-emitter/publication-outcome.js +0 -5
- package/bundle-emitter/publication-outcome.js.map +1 -1
- package/bundle-emitter/publish-error/auto-mode-error-matching.js +2 -28
- package/bundle-emitter/publish-error/auto-mode-error-matching.js.map +1 -1
- package/bundle-emitter/publish-error/error-shape-helpers.js +0 -9
- package/bundle-emitter/publish-error/error-shape-helpers.js.map +1 -1
- package/bundle-emitter/publish-error/file-mode-error-matching.js +2 -33
- package/bundle-emitter/publish-error/file-mode-error-matching.js.map +1 -1
- package/bundle-emitter/publish-error/publish-error-messages.js +0 -24
- package/bundle-emitter/publish-error/publish-error-messages.js.map +1 -1
- package/bundle-emitter/registry/metadata-auth-retry.js +1 -24
- package/bundle-emitter/registry/metadata-auth-retry.js.map +1 -1
- package/bundle-emitter/registry/oidc-token-exchange.js +3 -68
- package/bundle-emitter/registry/oidc-token-exchange.js.map +1 -1
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts +0 -13
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts.map +1 -1
- package/bundle-emitter/registry/package-metadata-fetcher.js +7 -186
- package/bundle-emitter/registry/package-metadata-fetcher.js.map +1 -1
- package/bundle-emitter/registry/publish-settings-bridge.js +3 -34
- package/bundle-emitter/registry/publish-settings-bridge.js.map +1 -1
- package/bundle-emitter/registry/registry-auth-config.js +0 -106
- package/bundle-emitter/registry/registry-auth-config.js.map +1 -1
- package/bundle-emitter/registry/registry-client.d.ts +1 -13
- package/bundle-emitter/registry/registry-client.d.ts.map +1 -1
- package/bundle-emitter/registry/registry-client.js +4 -71
- package/bundle-emitter/registry/registry-client.js.map +1 -1
- package/bundle-emitter/registry/registry-package-path.js +0 -3
- package/bundle-emitter/registry/registry-package-path.js.map +1 -1
- package/bundle-emitter/registry/registry-response-schemas.js +2 -50
- package/bundle-emitter/registry/registry-response-schemas.js.map +1 -1
- package/bundle-emitter/registry/tarball-integrity.d.ts +0 -1
- package/bundle-emitter/registry/tarball-integrity.d.ts.map +1 -1
- package/bundle-emitter/registry/tarball-integrity.js +1 -31
- package/bundle-emitter/registry/tarball-integrity.js.map +1 -1
- package/bundle-emitter/registry/validate-tarball-host.js +1 -26
- package/bundle-emitter/registry/validate-tarball-host.js.map +1 -1
- package/bundle-emitter/release-artifact-canonicalizer.js +5 -31
- package/bundle-emitter/release-artifact-canonicalizer.js.map +1 -1
- package/checks/check-runner.js +0 -8
- package/checks/check-runner.js.map +1 -1
- package/checks/rule.js +2 -12
- package/checks/rule.js.map +1 -1
- package/checks/rules/duplicate-detection.js +1 -23
- package/checks/rules/duplicate-detection.js.map +1 -1
- package/checks/rules/duplicate-messages.js +0 -22
- package/checks/rules/duplicate-messages.js.map +1 -1
- package/checks/rules/file-ownership.js +0 -15
- package/checks/rules/file-ownership.js.map +1 -1
- package/checks/rules/max-bundle-size.js +1 -55
- package/checks/rules/max-bundle-size.js.map +1 -1
- package/checks/rules/no-dev-dependency-imports.js +1 -51
- package/checks/rules/no-dev-dependency-imports.js.map +1 -1
- package/checks/rules/no-duplicated-files.js +3 -53
- package/checks/rules/no-duplicated-files.js.map +1 -1
- package/checks/rules/no-side-effects.js +1 -50
- package/checks/rules/no-side-effects.js.map +1 -1
- package/checks/rules/no-unexposed-executables.js +2 -43
- package/checks/rules/no-unexposed-executables.js.map +1 -1
- package/checks/rules/no-unused-bundle-dependencies.js +2 -30
- package/checks/rules/no-unused-bundle-dependencies.js.map +1 -1
- package/checks/rules/registry.js +9 -22
- package/checks/rules/registry.js.map +1 -1
- package/checks/rules/required-files.js +3 -41
- package/checks/rules/required-files.js.map +1 -1
- package/checks/rules/type-script-declaration-integrity.js +3 -81
- package/checks/rules/type-script-declaration-integrity.js.map +1 -1
- package/checks/rules/type-script-declaration-paths.js +1 -55
- package/checks/rules/type-script-declaration-paths.js.map +1 -1
- package/checks/rules/type-script-declaration-project.js +3 -202
- package/checks/rules/type-script-declaration-project.js.map +1 -1
- package/checks/rules/type-script-declaration-reachability.js +2 -38
- package/checks/rules/type-script-declaration-reachability.js.map +1 -1
- package/checks/rules/type-script-declaration-roots.js +0 -29
- package/checks/rules/type-script-declaration-roots.js.map +1 -1
- package/checks/rules/type-script-integrity.js +2 -72
- package/checks/rules/type-script-integrity.js.map +1 -1
- package/checks/rules/type-script-package-resolution.js +1 -42
- package/checks/rules/type-script-package-resolution.js.map +1 -1
- package/checks/rules/type-script-resolution-summary.js +0 -53
- package/checks/rules/type-script-resolution-summary.js.map +1 -1
- package/checks/rules/unique-target-paths.js +2 -34
- package/checks/rules/unique-target-paths.js.map +1 -1
- package/common/bundled-dependency-groups.js +0 -27
- package/common/bundled-dependency-groups.js.map +1 -1
- package/common/code-files.js +0 -28
- package/common/code-files.js.map +1 -1
- package/common/declaration-companion-paths.js +0 -24
- package/common/declaration-companion-paths.js.map +1 -1
- package/common/package-name-map.js +0 -7
- package/common/package-name-map.js.map +1 -1
- package/common/stable-json.js +2 -42
- package/common/stable-json.js.map +1 -1
- package/common/worklist.js +0 -22
- package/common/worklist.js.map +1 -1
- package/config/additional-files.js +2 -6
- package/config/additional-files.js.map +1 -1
- package/config/additional-package-json-attributes-schema.js +2 -6
- package/config/additional-package-json-attributes-schema.js.map +1 -1
- package/config/automatic-versioning-settings.js +2 -6
- package/config/automatic-versioning-settings.js.map +1 -1
- package/config/changelog-settings.d.ts +0 -44
- package/config/changelog-settings.d.ts.map +1 -1
- package/config/changelog-settings.js +3 -120
- package/config/changelog-settings.js.map +1 -1
- package/config/common-package-settings-schemas.js +3 -19
- package/config/common-package-settings-schemas.js.map +1 -1
- package/config/config.d.ts +1 -6
- package/config/config.d.ts.map +1 -1
- package/config/config.js +1 -3
- package/config/config.js.map +1 -1
- package/config/cross-package-validation.js +0 -17
- package/config/cross-package-validation.js.map +1 -1
- package/config/dead-code-elimination-settings.d.ts +0 -1
- package/config/dead-code-elimination-settings.d.ts.map +1 -1
- package/config/dead-code-elimination-settings.js +2 -36
- package/config/dead-code-elimination-settings.js.map +1 -1
- package/config/dependency-existence-validation.js +1 -19
- package/config/dependency-existence-validation.js.map +1 -1
- package/config/dependency-policy.js +2 -5
- package/config/dependency-policy.js.map +1 -1
- package/config/main-package-json-schema.js +2 -13
- package/config/main-package-json-schema.js.map +1 -1
- package/config/manual-versioning-settings.d.ts +0 -12
- package/config/manual-versioning-settings.d.ts.map +1 -1
- package/config/manual-versioning-settings.js +2 -29
- package/config/manual-versioning-settings.js.map +1 -1
- package/config/optional-package-settings-schema.js +7 -16
- package/config/optional-package-settings-schema.js.map +1 -1
- package/config/package-config.d.ts +0 -4
- package/config/package-config.d.ts.map +1 -1
- package/config/package-config.js +1 -2
- package/config/package-config.js.map +1 -1
- package/config/package-graph-builder.js +2 -14
- package/config/package-graph-builder.js.map +1 -1
- package/config/package-interface.js +2 -25
- package/config/package-interface.js.map +1 -1
- package/config/package-json.d.ts +0 -2
- package/config/package-json.d.ts.map +1 -1
- package/config/package-json.js +0 -16
- package/config/package-json.js.map +1 -1
- package/config/packtory-config-without-registry-schema.js +0 -6
- package/config/packtory-config-without-registry-schema.js.map +1 -1
- package/config/per-package-settings-schema.js +6 -22
- package/config/per-package-settings-schema.js.map +1 -1
- package/config/pre-graph-validation.js +5 -20
- package/config/pre-graph-validation.js.map +1 -1
- package/config/publish-settings.d.ts +0 -3
- package/config/publish-settings.d.ts.map +1 -1
- package/config/publish-settings.js +3 -25
- package/config/publish-settings.js.map +1 -1
- package/config/publish-settings.report.js +1 -17
- package/config/publish-settings.report.js.map +1 -1
- package/config/registry-settings.d.ts +0 -41
- package/config/registry-settings.d.ts.map +1 -1
- package/config/registry-settings.js +2 -40
- package/config/registry-settings.js.map +1 -1
- package/config/registry-settings.report.js +0 -46
- package/config/registry-settings.report.js.map +1 -1
- package/config/root-config-validation.js +0 -141
- package/config/root-config-validation.js.map +1 -1
- package/config/root.js +2 -6
- package/config/root.js.map +1 -1
- package/config/sbom-settings.js +1 -4
- package/config/sbom-settings.js.map +1 -1
- package/config/settings-validation.js +0 -28
- package/config/settings-validation.js.map +1 -1
- package/config/versioning-settings.d.ts +1 -18
- package/config/versioning-settings.d.ts.map +1 -1
- package/config/versioning-settings.js +3 -10
- package/config/versioning-settings.js.map +1 -1
- package/dead-code-eliminator/analyzed-bundle.d.ts +0 -11
- package/dead-code-eliminator/analyzed-bundle.d.ts.map +1 -1
- package/dead-code-eliminator/analyzed-bundle.js +0 -7
- package/dead-code-eliminator/analyzed-bundle.js.map +1 -1
- package/dead-code-eliminator/class-purity.js +2 -48
- package/dead-code-eliminator/class-purity.js.map +1 -1
- package/dead-code-eliminator/code-file-analyzer.js +4 -62
- package/dead-code-eliminator/code-file-analyzer.js.map +1 -1
- package/dead-code-eliminator/cross-bundle/bundle-index.js +1 -27
- package/dead-code-eliminator/cross-bundle/bundle-index.js.map +1 -1
- package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js +3 -18
- package/dead-code-eliminator/cross-bundle/cross-bundle-seeds.js.map +1 -1
- package/dead-code-eliminator/cross-bundle/import-export-walker.js +4 -75
- package/dead-code-eliminator/cross-bundle/import-export-walker.js.map +1 -1
- package/dead-code-eliminator/cross-bundle/seed-store.js +1 -22
- package/dead-code-eliminator/cross-bundle/seed-store.js.map +1 -1
- package/dead-code-eliminator/dependency-metadata.js +3 -205
- package/dead-code-eliminator/dependency-metadata.js.map +1 -1
- package/dead-code-eliminator/elimination-emitter.js +0 -52
- package/dead-code-eliminator/elimination-emitter.js.map +1 -1
- package/dead-code-eliminator/eliminator.js +8 -64
- package/dead-code-eliminator/eliminator.js.map +1 -1
- package/dead-code-eliminator/expression-unwrapping.js +1 -16
- package/dead-code-eliminator/expression-unwrapping.js.map +1 -1
- package/dead-code-eliminator/imported-expression-origin.js +2 -101
- package/dead-code-eliminator/imported-expression-origin.js.map +1 -1
- package/dead-code-eliminator/liveness/asset-side-effects.js +1 -9
- package/dead-code-eliminator/liveness/asset-side-effects.js.map +1 -1
- package/dead-code-eliminator/liveness/boolean-facts.js +2 -98
- package/dead-code-eliminator/liveness/boolean-facts.js.map +1 -1
- package/dead-code-eliminator/liveness/external-module-resolution.js +2 -172
- package/dead-code-eliminator/liveness/external-module-resolution.js.map +1 -1
- package/dead-code-eliminator/liveness/external-purity-summary.js +3 -294
- package/dead-code-eliminator/liveness/external-purity-summary.js.map +1 -1
- package/dead-code-eliminator/liveness/external-purity.js +3 -39
- package/dead-code-eliminator/liveness/external-purity.js.map +1 -1
- package/dead-code-eliminator/liveness/module-analysis.js +2 -27
- package/dead-code-eliminator/liveness/module-analysis.js.map +1 -1
- package/dead-code-eliminator/liveness/resource-retention.js +1 -78
- package/dead-code-eliminator/liveness/resource-retention.js.map +1 -1
- package/dead-code-eliminator/liveness/runtime-code.js +1 -15
- package/dead-code-eliminator/liveness/runtime-code.js.map +1 -1
- package/dead-code-eliminator/load-bundle.js +5 -70
- package/dead-code-eliminator/load-bundle.js.map +1 -1
- package/dead-code-eliminator/pure-expression.js +5 -178
- package/dead-code-eliminator/pure-expression.js.map +1 -1
- package/dead-code-eliminator/reachability/bfs-closure.js +0 -50
- package/dead-code-eliminator/reachability/bfs-closure.js.map +1 -1
- package/dead-code-eliminator/reachability/binding-extractor.js +2 -100
- package/dead-code-eliminator/reachability/binding-extractor.js.map +1 -1
- package/dead-code-eliminator/reachability/binding-id.js +0 -32
- package/dead-code-eliminator/reachability/binding-id.js.map +1 -1
- package/dead-code-eliminator/reachability/identifier-target-collector.js +1 -39
- package/dead-code-eliminator/reachability/identifier-target-collector.js.map +1 -1
- package/dead-code-eliminator/reachability/impure-statements.js +2 -11
- package/dead-code-eliminator/reachability/impure-statements.js.map +1 -1
- package/dead-code-eliminator/reachability/local-seed-gathering.js +4 -43
- package/dead-code-eliminator/reachability/local-seed-gathering.js.map +1 -1
- package/dead-code-eliminator/reachability/reachability.js +4 -38
- package/dead-code-eliminator/reachability/reachability.js.map +1 -1
- package/dead-code-eliminator/side-effect-classifier.js +4 -39
- package/dead-code-eliminator/side-effect-classifier.js.map +1 -1
- package/dead-code-eliminator/side-effects-field.js +1 -23
- package/dead-code-eliminator/side-effects-field.js.map +1 -1
- package/dead-code-eliminator/source-map-recomposition.js +2 -29
- package/dead-code-eliminator/source-map-recomposition.js.map +1 -1
- package/dead-code-eliminator/statement-classifiers.js +4 -94
- package/dead-code-eliminator/statement-classifiers.js.map +1 -1
- package/dead-code-eliminator/syntax-kind-sets.js +0 -16
- package/dead-code-eliminator/syntax-kind-sets.js.map +1 -1
- package/dead-code-eliminator/transform/atom-translator.d.ts +0 -8
- package/dead-code-eliminator/transform/atom-translator.d.ts.map +1 -1
- package/dead-code-eliminator/transform/atom-translator.js +2 -57
- package/dead-code-eliminator/transform/atom-translator.js.map +1 -1
- package/dead-code-eliminator/transform/declaration-removal.js +4 -135
- package/dead-code-eliminator/transform/declaration-removal.js.map +1 -1
- package/dead-code-eliminator/transform/declaration-remover.js +2 -17
- package/dead-code-eliminator/transform/declaration-remover.js.map +1 -1
- package/dead-code-eliminator/transform/line-index.d.ts +0 -7
- package/dead-code-eliminator/transform/line-index.d.ts.map +1 -1
- package/dead-code-eliminator/transform/line-index.js +0 -20
- package/dead-code-eliminator/transform/line-index.js.map +1 -1
- package/dead-code-eliminator/transform/named-declaration-kinds.js +0 -3
- package/dead-code-eliminator/transform/named-declaration-kinds.js.map +1 -1
- package/dead-code-eliminator/transform/source-map-composer.js +3 -84
- package/dead-code-eliminator/transform/source-map-composer.js.map +1 -1
- package/dead-code-eliminator/variable-declaration-bindings.js +1 -25
- package/dead-code-eliminator/variable-declaration-bindings.js.map +1 -1
- package/dependency-scanner/dependency-graph.js +3 -74
- package/dependency-scanner/dependency-graph.js.map +1 -1
- package/dependency-scanner/external-dependencies.d.ts +0 -9
- package/dependency-scanner/external-dependencies.d.ts.map +1 -1
- package/dependency-scanner/external-dependencies.js +1 -55
- package/dependency-scanner/external-dependencies.js.map +1 -1
- package/dependency-scanner/file-host-predicates.js +0 -9
- package/dependency-scanner/file-host-predicates.js.map +1 -1
- package/dependency-scanner/host-method-binding.js +0 -18
- package/dependency-scanner/host-method-binding.js.map +1 -1
- package/dependency-scanner/injected-dynamic-imports.js +1 -232
- package/dependency-scanner/injected-dynamic-imports.js.map +1 -1
- package/dependency-scanner/node-modules-manifest-synthesizer.js +4 -52
- package/dependency-scanner/node-modules-manifest-synthesizer.js.map +1 -1
- package/dependency-scanner/package-owned-asset-file-path.js +1 -9
- package/dependency-scanner/package-owned-asset-file-path.js.map +1 -1
- package/dependency-scanner/scanner.js +4 -102
- package/dependency-scanner/scanner.js.map +1 -1
- package/dependency-scanner/source-file-references.js +6 -174
- package/dependency-scanner/source-file-references.js.map +1 -1
- package/dependency-scanner/source-map-file-locator.js +2 -66
- package/dependency-scanner/source-map-file-locator.js.map +1 -1
- package/dependency-scanner/typescript-compiler-options.js +1 -21
- package/dependency-scanner/typescript-compiler-options.js.map +1 -1
- package/dependency-scanner/typescript-file-host.js +5 -49
- package/dependency-scanner/typescript-file-host.js.map +1 -1
- package/dependency-scanner/typescript-project-analyzer.js +3 -35
- package/dependency-scanner/typescript-project-analyzer.js.map +1 -1
- package/dependency-scanner/virtual-package-json-host.js +4 -45
- package/dependency-scanner/virtual-package-json-host.js.map +1 -1
- package/directed-graph/graph.d.ts +0 -1
- package/directed-graph/graph.d.ts.map +1 -1
- package/directed-graph/graph.js +1 -240
- package/directed-graph/graph.js.map +1 -1
- package/file-manager/compare.js +2 -23
- package/file-manager/compare.js.map +1 -1
- package/file-manager/equal.js +0 -5
- package/file-manager/equal.js.map +1 -1
- package/file-manager/file-description.d.ts +0 -1
- package/file-manager/file-description.d.ts.map +1 -1
- package/file-manager/file-description.js +0 -3
- package/file-manager/file-description.js.map +1 -1
- package/file-manager/permissions.js +1 -28
- package/file-manager/permissions.js.map +1 -1
- package/git/current-git-head.js +0 -24
- package/git/current-git-head.js.map +1 -1
- package/git/git-command.js +1 -49
- package/git/git-command.js.map +1 -1
- package/linker/linked-bundle.d.ts +0 -8
- package/linker/linked-bundle.d.ts.map +1 -1
- package/linker/linked-bundle.js +0 -5
- package/linker/linked-bundle.js.map +1 -1
- package/linker/linker.js +5 -51
- package/linker/linker.js.map +1 -1
- package/linker/replacement-lookup.js +8 -295
- package/linker/replacement-lookup.js.map +1 -1
- package/linker/resource-graph.js +2 -44
- package/linker/resource-graph.js.map +1 -1
- package/linker/source-modifier/import-paths.js +3 -76
- package/linker/source-modifier/import-paths.js.map +1 -1
- package/linker/substitute-bundles.js +3 -140
- package/linker/substitute-bundles.js.map +1 -1
- package/linker/substituted-resource-graph.js +2 -99
- package/linker/substituted-resource-graph.js.map +1 -1
- package/npm-oidc-id-token-resolver.js +0 -82
- package/npm-oidc-id-token-resolver.js.map +1 -1
- package/pack-emitter/pack-emitter.d.ts +0 -20
- package/pack-emitter/pack-emitter.d.ts.map +1 -1
- package/pack-emitter/pack-emitter.js +0 -27
- package/pack-emitter/pack-emitter.js.map +1 -1
- package/package-surface/bin-field.js +2 -8
- package/package-surface/bin-field.js.map +1 -1
- package/package-surface/explicit-bin.js +2 -24
- package/package-surface/explicit-bin.js.map +1 -1
- package/package-surface/explicit-exports.js +3 -26
- package/package-surface/explicit-exports.js.map +1 -1
- package/package-surface/export-map.js +2 -9
- package/package-surface/export-map.js.map +1 -1
- package/package-surface/implicit-bin.js +1 -25
- package/package-surface/implicit-bin.js.map +1 -1
- package/package-surface/implicit-exports.js +3 -10
- package/package-surface/implicit-exports.js.map +1 -1
- package/package-surface/implicit-root-exports.js +2 -13
- package/package-surface/implicit-root-exports.js.map +1 -1
- package/package-surface/package-json-export.js +0 -9
- package/package-surface/package-json-export.js.map +1 -1
- package/package-surface/package-shape.js +1 -10
- package/package-surface/package-shape.js.map +1 -1
- package/package-surface/package-surface-index.js +3 -165
- package/package-surface/package-surface-index.js.map +1 -1
- package/package-surface/public-module-usage.js +3 -46
- package/package-surface/public-module-usage.js.map +1 -1
- package/package-surface/public-specifiers.js +1 -7
- package/package-surface/public-specifiers.js.map +1 -1
- package/package-surface/root-registry.js +0 -26
- package/package-surface/root-registry.js.map +1 -1
- package/package-surface/specifier-syntax.js +0 -4
- package/package-surface/specifier-syntax.js.map +1 -1
- package/package-surface/substitution-exports.js +3 -101
- package/package-surface/substitution-exports.js.map +1 -1
- package/package-surface/surface.d.ts +0 -2
- package/package-surface/surface.d.ts.map +1 -1
- package/package-surface/surface.js +0 -12
- package/package-surface/surface.js.map +1 -1
- package/package.json +1 -1
- package/packages/package-processor.composition.d.ts +0 -22
- package/packages/package-processor.composition.d.ts.map +1 -1
- package/packages/package-processor.composition.js +34 -160
- package/packages/package-processor.composition.js.map +1 -1
- package/packtory/map-config.d.ts +3 -22
- package/packtory/map-config.d.ts.map +1 -1
- package/packtory/map-config.js +4 -35
- package/packtory/map-config.js.map +1 -1
- package/packtory/normalize-paths.js +1 -25
- package/packtory/normalize-paths.js.map +1 -1
- package/packtory/options/bundle-dependency-resolution.js +1 -17
- package/packtory/options/bundle-dependency-resolution.js.map +1 -1
- package/packtory/options/dead-code-elimination-resolution.js +1 -10
- package/packtory/options/dead-code-elimination-resolution.js.map +1 -1
- package/packtory/options/prepare-package-options.d.ts +0 -14
- package/packtory/options/prepare-package-options.d.ts.map +1 -1
- package/packtory/options/prepare-package-options.js +5 -46
- package/packtory/options/prepare-package-options.js.map +1 -1
- package/packtory/options/required-value-helpers.js +0 -17
- package/packtory/options/required-value-helpers.js.map +1 -1
- package/packtory/options/setting-resolvers.d.ts +0 -18
- package/packtory/options/setting-resolvers.d.ts.map +1 -1
- package/packtory/options/setting-resolvers.js +3 -47
- package/packtory/options/setting-resolvers.js.map +1 -1
- package/packtory/options/surface-resolution.js +2 -15
- package/packtory/options/surface-resolution.js.map +1 -1
- package/packtory/options/version-provider-context.js +2 -24
- package/packtory/options/version-provider-context.js.map +1 -1
- package/packtory/options/version-trigger.js +2 -39
- package/packtory/options/version-trigger.js.map +1 -1
- package/packtory/pack-output-preflight.js +3 -60
- package/packtory/pack-output-preflight.js.map +1 -1
- package/packtory/package-processor-build.js +3 -97
- package/packtory/package-processor-build.js.map +1 -1
- package/packtory/package-processor-publish.d.ts +0 -13
- package/packtory/package-processor-publish.d.ts.map +1 -1
- package/packtory/package-processor-publish.js +5 -293
- package/packtory/package-processor-publish.js.map +1 -1
- package/packtory/package-processor.d.ts +1 -34
- package/packtory/package-processor.d.ts.map +1 -1
- package/packtory/package-processor.js +2 -10
- package/packtory/package-processor.js.map +1 -1
- package/packtory/packtory-pack.js +10 -298
- package/packtory/packtory-pack.js.map +1 -1
- package/packtory/packtory-package-dependencies.js +7 -135
- package/packtory/packtory-package-dependencies.js.map +1 -1
- package/packtory/packtory-package-tree.js +4 -43
- package/packtory/packtory-package-tree.js.map +1 -1
- package/packtory/packtory-publish.js +4 -17
- package/packtory/packtory-publish.js.map +1 -1
- package/packtory/packtory-release-analysis.js +6 -64
- package/packtory/packtory-release-analysis.js.map +1 -1
- package/packtory/packtory-release-diff.js +5 -48
- package/packtory/packtory-release-diff.js.map +1 -1
- package/packtory/packtory-release-plan.js +6 -87
- package/packtory/packtory-release-plan.js.map +1 -1
- package/packtory/packtory-resolve.js +5 -16
- package/packtory/packtory-resolve.js.map +1 -1
- package/packtory/packtory.d.ts +1 -28
- package/packtory/packtory.d.ts.map +1 -1
- package/packtory/packtory.js +12 -225
- package/packtory/packtory.js.map +1 -1
- package/packtory/publish-failure-mapping.js +0 -6
- package/packtory/publish-failure-mapping.js.map +1 -1
- package/packtory/published-release-state.d.ts +0 -19
- package/packtory/published-release-state.d.ts.map +1 -1
- package/packtory/published-release-state.js +0 -11
- package/packtory/published-release-state.js.map +1 -1
- package/packtory/release-analysis.js +5 -153
- package/packtory/release-analysis.js.map +1 -1
- package/packtory/release-diff-failure-mapping.js +0 -6
- package/packtory/release-diff-failure-mapping.js.map +1 -1
- package/packtory/release-plan.js +7 -135
- package/packtory/release-plan.js.map +1 -1
- package/packtory/report-attachment.js +2 -35
- package/packtory/report-attachment.js.map +1 -1
- package/packtory/resolved-package.d.ts +0 -11
- package/packtory/resolved-package.d.ts.map +1 -1
- package/packtory/resolved-package.js +3 -97
- package/packtory/resolved-package.js.map +1 -1
- package/packtory/scheduler.d.ts +0 -47
- package/packtory/scheduler.d.ts.map +1 -1
- package/packtory/scheduler.js +1 -99
- package/packtory/scheduler.js.map +1 -1
- package/packtory/stages/package-analysis-stage.js +2 -50
- package/packtory/stages/package-analysis-stage.js.map +1 -1
- package/packtory/stages/package-resolution-stage.js +5 -80
- package/packtory/stages/package-resolution-stage.js.map +1 -1
- package/packtory/stages/publish-stage.js +3 -54
- package/packtory/stages/publish-stage.js.map +1 -1
- package/packtory/stages/release-diff-stage.js +5 -84
- package/packtory/stages/release-diff-stage.js.map +1 -1
- package/progress/progress-broadcaster.d.ts +0 -1
- package/progress/progress-broadcaster.d.ts.map +1 -1
- package/progress/progress-broadcaster.js +0 -45
- package/progress/progress-broadcaster.js.map +1 -1
- package/published-package/published-package.d.ts +0 -2
- package/published-package/published-package.d.ts.map +1 -1
- package/published-package/published-package.js +1 -12
- package/published-package/published-package.js.map +1 -1
- package/report/aggregator/artifact-entry-merger.js +0 -20
- package/report/aggregator/artifact-entry-merger.js.map +1 -1
- package/report/aggregator/package-report-materialization.js +2 -75
- package/report/aggregator/package-report-materialization.js.map +1 -1
- package/report/aggregator/report-aggregator.js +2 -37
- package/report/aggregator/report-aggregator.js.map +1 -1
- package/report/aggregator/report-event-handlers.js +2 -141
- package/report/aggregator/report-event-handlers.js.map +1 -1
- package/report/aggregator/report-types.d.ts +0 -21
- package/report/aggregator/report-types.d.ts.map +1 -1
- package/report/aggregator/report-types.js +0 -3
- package/report/aggregator/report-types.js.map +1 -1
- package/report/config-redactor.js +3 -29
- package/report/config-redactor.js.map +1 -1
- package/report/decorators.js +0 -76
- package/report/decorators.js.map +1 -1
- package/report/inspectors/inspect-artifact-sizes.js +1 -34
- package/report/inspectors/inspect-artifact-sizes.js.map +1 -1
- package/report/inspectors/inspect-linker-rewrites.js +1 -14
- package/report/inspectors/inspect-linker-rewrites.js.map +1 -1
- package/report/inspectors/inspect-package-json-provenance.js +0 -15
- package/report/inspectors/inspect-package-json-provenance.js.map +1 -1
- package/report/inspectors/inspect-scan-results.js +0 -15
- package/report/inspectors/inspect-scan-results.js.map +1 -1
- package/report/release-diff/release-version-transition.js +0 -18
- package/report/release-diff/release-version-transition.js.map +1 -1
- package/resource-resolver/bundle-resource-lookup.js +0 -25
- package/resource-resolver/bundle-resource-lookup.js.map +1 -1
- package/resource-resolver/content.js +3 -81
- package/resource-resolver/content.js.map +1 -1
- package/resource-resolver/dependency-resolution-walker.js +2 -73
- package/resource-resolver/dependency-resolution-walker.js.map +1 -1
- package/resource-resolver/resolved-bundle.d.ts +0 -17
- package/resource-resolver/resolved-bundle.d.ts.map +1 -1
- package/resource-resolver/resolved-bundle.js +0 -3
- package/resource-resolver/resolved-bundle.js.map +1 -1
- package/resource-resolver/resource-resolve-options.d.ts +0 -5
- package/resource-resolver/resource-resolve-options.d.ts.map +1 -1
- package/resource-resolver/resource-resolve-options.js +1 -13
- package/resource-resolver/resource-resolve-options.js.map +1 -1
- package/resource-resolver/resource-resolver.js +5 -83
- package/resource-resolver/resource-resolver.js.map +1 -1
- package/sbom/extract-license.js +1 -11
- package/sbom/extract-license.js.map +1 -1
- package/sbom/license-resolver.js +2 -23
- package/sbom/license-resolver.js.map +1 -1
- package/sbom/sbom-builder.js +2 -57
- package/sbom/sbom-builder.js.map +1 -1
- package/sbom/sbom-canonicalizer.js +3 -45
- package/sbom/sbom-canonicalizer.js.map +1 -1
- package/sbom/sbom-file.d.ts +0 -10
- package/sbom/sbom-file.d.ts.map +1 -1
- package/sbom/sbom-file.js +5 -54
- package/sbom/sbom-file.js.map +1 -1
- package/sbom/sbom-serializer.js +1 -14
- package/sbom/sbom-serializer.js.map +1 -1
- package/sbom/tool-version.js +1 -49
- package/sbom/tool-version.js.map +1 -1
- package/sbom.cdx.json +5 -5
- package/tar/extract-tar.js +3 -83
- package/tar/extract-tar.js.map +1 -1
- package/tar/gzipped-pack.js +0 -20
- package/tar/gzipped-pack.js.map +1 -1
- package/tar/tarball-builder.js +4 -44
- package/tar/tarball-builder.js.map +1 -1
- package/vendor-materializer/vendor-entry.js +1 -20
- package/vendor-materializer/vendor-entry.js.map +1 -1
- package/vendor-materializer/vendor-materializer.js +8 -240
- package/vendor-materializer/vendor-materializer.js.map +1 -1
- package/version-manager/dependencies/bundle-dependency-grouping.js +2 -32
- package/version-manager/dependencies/bundle-dependency-grouping.js.map +1 -1
- package/version-manager/dependencies/dependency-groups.js +1 -11
- package/version-manager/dependencies/dependency-groups.js.map +1 -1
- package/version-manager/dependencies/external-dependency-classification.js +3 -82
- package/version-manager/dependencies/external-dependency-classification.js.map +1 -1
- package/version-manager/dependencies/versioned-bundle-dependencies.js +3 -8
- package/version-manager/dependencies/versioned-bundle-dependencies.js.map +1 -1
- package/version-manager/imports/hash-import-scanner.js +2 -20
- package/version-manager/imports/hash-import-scanner.js.map +1 -1
- package/version-manager/imports/imports-key-matcher.js +0 -22
- package/version-manager/imports/imports-key-matcher.js.map +1 -1
- package/version-manager/imports/versioned-bundle-imports.js +2 -44
- package/version-manager/imports/versioned-bundle-imports.js.map +1 -1
- package/version-manager/manager.d.ts +0 -5
- package/version-manager/manager.d.ts.map +1 -1
- package/version-manager/manager.js +6 -46
- package/version-manager/manager.js.map +1 -1
- package/version-manager/manifest/builder.js +1 -51
- package/version-manager/manifest/builder.js.map +1 -1
- package/version-manager/manifest/serialize.js +1 -8
- package/version-manager/manifest/serialize.js.map +1 -1
- package/version-manager/optional-bundle-fields.js +1 -5
- package/version-manager/optional-bundle-fields.js.map +1 -1
- package/version-manager/representative-root.js +1 -9
- package/version-manager/representative-root.js.map +1 -1
- package/version-manager/specifier-classifier.js +2 -42
- package/version-manager/specifier-classifier.js.map +1 -1
- package/version-manager/specifier-errors.js +0 -58
- package/version-manager/specifier-errors.js.map +1 -1
- package/version-manager/versioned-bundle.d.ts +1 -3
- package/version-manager/versioned-bundle.d.ts.map +1 -1
- package/version-manager/versioned-bundle.js +6 -31
- package/version-manager/versioned-bundle.js.map +1 -1
- package/zip/zip-builder.js +2 -81
- package/zip/zip-builder.js.map +1 -1
- package/artifacts/artifacts-builder.d.ts +0 -28
- package/artifacts/artifacts-builder.d.ts.map +0 -1
- package/bundle-emitter/registry/registry-auth-config.d.ts +0 -17
- package/bundle-emitter/registry/registry-auth-config.d.ts.map +0 -1
- package/checks/check-runner.d.ts +0 -18
- package/checks/check-runner.d.ts.map +0 -1
- package/checks/rule.d.ts +0 -42
- package/checks/rule.d.ts.map +0 -1
- package/checks/rules/max-bundle-size.d.ts +0 -13
- package/checks/rules/max-bundle-size.d.ts.map +0 -1
- package/checks/rules/no-dev-dependency-imports.d.ts +0 -11
- package/checks/rules/no-dev-dependency-imports.d.ts.map +0 -1
- package/checks/rules/no-duplicated-files.d.ts +0 -11
- package/checks/rules/no-duplicated-files.d.ts.map +0 -1
- package/checks/rules/no-side-effects.d.ts +0 -15
- package/checks/rules/no-side-effects.d.ts.map +0 -1
- package/checks/rules/no-unexposed-executables.d.ts +0 -8
- package/checks/rules/no-unexposed-executables.d.ts.map +0 -1
- package/checks/rules/no-unused-bundle-dependencies.d.ts +0 -8
- package/checks/rules/no-unused-bundle-dependencies.d.ts.map +0 -1
- package/checks/rules/registry.d.ts +0 -23
- package/checks/rules/registry.d.ts.map +0 -1
- package/checks/rules/required-files.d.ts +0 -15
- package/checks/rules/required-files.d.ts.map +0 -1
- package/checks/rules/type-script-declaration-integrity.d.ts +0 -9
- package/checks/rules/type-script-declaration-integrity.d.ts.map +0 -1
- package/checks/rules/type-script-declaration-project.d.ts +0 -29
- package/checks/rules/type-script-declaration-project.d.ts.map +0 -1
- package/checks/rules/type-script-integrity.d.ts +0 -24
- package/checks/rules/type-script-integrity.d.ts.map +0 -1
- package/checks/rules/type-script-package-resolution.d.ts +0 -29
- package/checks/rules/type-script-package-resolution.d.ts.map +0 -1
- package/checks/rules/unique-target-paths.d.ts +0 -8
- package/checks/rules/unique-target-paths.d.ts.map +0 -1
- package/dependency-scanner/dependency-graph.d.ts +0 -38
- package/dependency-scanner/dependency-graph.d.ts.map +0 -1
- package/dependency-scanner/scanner.d.ts +0 -20
- package/dependency-scanner/scanner.d.ts.map +0 -1
- package/dependency-scanner/source-file-references.d.ts +0 -30
- package/dependency-scanner/source-file-references.d.ts.map +0 -1
- package/dependency-scanner/source-map-file-locator.d.ts +0 -10
- package/dependency-scanner/source-map-file-locator.d.ts.map +0 -1
- package/dependency-scanner/typescript-compiler-options.d.ts +0 -8
- package/dependency-scanner/typescript-compiler-options.d.ts.map +0 -1
- package/dependency-scanner/typescript-file-host.d.ts +0 -12
- package/dependency-scanner/typescript-file-host.d.ts.map +0 -1
- package/dependency-scanner/typescript-project-analyzer.d.ts +0 -19
- package/dependency-scanner/typescript-project-analyzer.d.ts.map +0 -1
- package/git/current-git-head.d.ts +0 -12
- package/git/current-git-head.d.ts.map +0 -1
- package/linker/linker.d.ts +0 -13
- package/linker/linker.d.ts.map +0 -1
- package/resource-resolver/resource-resolver.d.ts +0 -15
- package/resource-resolver/resource-resolver.d.ts.map +0 -1
- package/sbom/license-resolver.d.ts +0 -14
- package/sbom/license-resolver.d.ts.map +0 -1
- package/sbom/sbom-serializer.d.ts +0 -8
- package/sbom/sbom-serializer.d.ts.map +0 -1
- package/tar/tarball-builder.d.ts +0 -14
- package/tar/tarball-builder.d.ts.map +0 -1
- package/vendor-materializer/vendor-entry.d.ts +0 -12
- package/vendor-materializer/vendor-entry.d.ts.map +0 -1
- package/vendor-materializer/vendor-materializer.d.ts +0 -55
- package/vendor-materializer/vendor-materializer.d.ts.map +0 -1
- package/zip/zip-builder.d.ts +0 -22
- package/zip/zip-builder.d.ts.map +0 -1
|
@@ -28,10 +28,4 @@ const packageConfigWithRequiredSourcesFolderSchema = z.readonly(z.object({
|
|
|
28
28
|
commonPackageSettings: z.extend(commonPackageSettingsSourcesFolderRequiredSchema, optionalPackageSettingsSchema.shape),
|
|
29
29
|
packages: z.readonly(z.tuple([packageSchemaWithMandatoryMainPackageJson], packageSchemaWithMandatoryMainPackageJson))
|
|
30
30
|
}));
|
|
31
|
-
export const packtoryConfigWithoutRegistrySchema = z.union([
|
|
32
|
-
packageConfigWithOptionalCommonPackageSettingsSchema,
|
|
33
|
-
packageConfigWithRequiredCommonPackageSettingsSchema,
|
|
34
|
-
packageConfigWithRequiredMainPackageJsonSchema,
|
|
35
|
-
packageConfigWithRequiredSourcesFolderSchema
|
|
36
|
-
]);
|
|
37
31
|
//# sourceMappingURL=packtory-config-without-registry-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packtory-config-without-registry-schema.js","sourceRoot":"","sources":["../../../../source/config/packtory-config-without-registry-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACH,kDAAkD,EAClD,gDAAgD,EAChD,mCAAmC,EACnC,mCAAmC,EACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACH,kCAAkC,EAClC,yCAAyC,EACzC,uCAAuC,EACvC,sCAAsC,EACzC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,2BAA2B,GAAG;IAChC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;CACnC,CAAC;AAEF,MAAM,oDAAoD,GAAG,CAAC,CAAC,QAAQ,CACnE,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAC7B,CAAC,CAAC,MAAM,CAAC,mCAAmC,EAAE,6BAA6B,CAAC,KAAK,CAAC,CACrF;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAE,kCAAkC,CAAE,EAAE,kCAAkC,CAAC,CAAC;CAC5G,CAAC,CACL,CAAC;AAEF,MAAM,oDAAoD,GAAG,CAAC,CAAC,QAAQ,CACnE,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,mCAAmC,EAAE,6BAA6B,CAAC,KAAK,CAAC;IACzG,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,sCAAsC,CAAE,EAAE,sCAAsC,CAAC,CAC9F;CACJ,CAAC,CACL,CAAC;AAEF,MAAM,8CAA8C,GAAG,CAAC,CAAC,QAAQ,CAC7D,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAC3B,kDAAkD,EAClD,6BAA6B,CAAC,KAAK,CACtC;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,uCAAuC,CAAE,EAAE,uCAAuC,CAAC,CAChG;CACJ,CAAC,CACL,CAAC;AAEF,MAAM,4CAA4C,GAAG,CAAC,CAAC,QAAQ,CAC3D,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAC3B,gDAAgD,EAChD,6BAA6B,CAAC,KAAK,CACtC;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,yCAAyC,CAAE,EAAE,yCAAyC,CAAC,CACpG;CACJ,CAAC,CACL,CAAC
|
|
1
|
+
{"version":3,"file":"packtory-config-without-registry-schema.js","sourceRoot":"","sources":["../../../../source/config/packtory-config-without-registry-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACH,kDAAkD,EAClD,gDAAgD,EAChD,mCAAmC,EACnC,mCAAmC,EACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACH,kCAAkC,EAClC,yCAAyC,EACzC,uCAAuC,EACvC,sCAAsC,EACzC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,2BAA2B,GAAG;IAChC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;CACnC,CAAC;AAEF,MAAM,oDAAoD,GAAG,CAAC,CAAC,QAAQ,CACnE,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAC7B,CAAC,CAAC,MAAM,CAAC,mCAAmC,EAAE,6BAA6B,CAAC,KAAK,CAAC,CACrF;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAE,kCAAkC,CAAE,EAAE,kCAAkC,CAAC,CAAC;CAC5G,CAAC,CACL,CAAC;AAEF,MAAM,oDAAoD,GAAG,CAAC,CAAC,QAAQ,CACnE,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAAC,mCAAmC,EAAE,6BAA6B,CAAC,KAAK,CAAC;IACzG,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,sCAAsC,CAAE,EAAE,sCAAsC,CAAC,CAC9F;CACJ,CAAC,CACL,CAAC;AAEF,MAAM,8CAA8C,GAAG,CAAC,CAAC,QAAQ,CAC7D,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAC3B,kDAAkD,EAClD,6BAA6B,CAAC,KAAK,CACtC;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,uCAAuC,CAAE,EAAE,uCAAuC,CAAC,CAChG;CACJ,CAAC,CACL,CAAC;AAEF,MAAM,4CAA4C,GAAG,CAAC,CAAC,QAAQ,CAC3D,CAAC,CAAC,MAAM,CAAC;IACL,GAAG,2BAA2B;IAC9B,qBAAqB,EAAE,CAAC,CAAC,MAAM,CAC3B,gDAAgD,EAChD,6BAA6B,CAAC,KAAK,CACtC;IACD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,KAAK,CAAC,CAAE,yCAAyC,CAAE,EAAE,yCAAyC,CAAC,CACpG;CACJ,CAAC,CACL,CAAC"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const rootsSchema = z.readonly(z.record(nonEmptyStringSchema, rootSchema));
|
|
8
|
-
const basePerPackageSettingsShape = {
|
|
9
|
-
name: nonEmptyStringSchema,
|
|
10
|
-
exportPackageJson: z.optional(z.literal(true)),
|
|
11
|
-
versioning: z.optional(versioningSettingsSchema),
|
|
12
|
-
bundleDependencies: z.optional(z.readonly(z.array(nonEmptyStringSchema))),
|
|
13
|
-
bundlePeerDependencies: z.optional(z.readonly(z.array(nonEmptyStringSchema))),
|
|
14
|
-
checks: z.optional(checksPerPackageSchema)
|
|
15
|
-
};
|
|
16
|
-
const perPackageSettingsShape = {
|
|
17
|
-
...basePerPackageSettingsShape,
|
|
18
|
-
roots: rootsSchema,
|
|
19
|
-
defaultModuleRoot: z.optional(nonEmptyStringSchema),
|
|
20
|
-
packageInterface: z.optional(packageInterfaceSchema)
|
|
21
|
-
};
|
|
22
|
-
export const perPackageSettingsSchema = z.strictObject(perPackageSettingsShape);
|
|
1
|
+
import 'zod/mini';
|
|
2
|
+
import "./checks-schema.js";
|
|
3
|
+
import "./base-validations.js";
|
|
4
|
+
import "./package-interface.js";
|
|
5
|
+
import "./root.js";
|
|
6
|
+
import "./versioning-settings.js";
|
|
23
7
|
//# sourceMappingURL=per-package-settings-schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"per-package-settings-schema.js","sourceRoot":"","sources":["../../../../source/config/per-package-settings-schema.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"per-package-settings-schema.js","sourceRoot":"","sources":["../../../../source/config/per-package-settings-schema.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC;AAC7B,OAAuC,oBAAoB,CAAC;AAC5D,OAAqC,uBAAuB,CAAC;AAC7D,OAAuC,wBAAwB,CAAC;AAChE,OAA2B,WAAW,CAAC;AACvC,OAAyC,0BAA0B,CAAC"}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
export function packageListToRecord(packages) {
|
|
7
|
-
return indexBy(packages, function (packageConfig) {
|
|
8
|
-
return packageConfig.name;
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export function collectPreGraphIssues(packtoryConfig) {
|
|
12
|
-
const packageConfigs = packageListToRecord(packtoryConfig.packages);
|
|
13
|
-
return [
|
|
14
|
-
...validateChangelogSettings(packtoryConfig),
|
|
15
|
-
...validatePublishSettingsArePlaced(packtoryConfig),
|
|
16
|
-
...validateAllowScriptsConsistency(packtoryConfig),
|
|
17
|
-
...validateDependenciesExist(packageConfigs),
|
|
18
|
-
...validatePackageSurfaceRules(packageConfigs)
|
|
19
|
-
];
|
|
20
|
-
}
|
|
1
|
+
import 'remeda';
|
|
2
|
+
import "./changelog-settings.js";
|
|
3
|
+
import "./dependency-existence-validation.js";
|
|
4
|
+
import "./root-config-validation.js";
|
|
5
|
+
import "./settings-validation.js";
|
|
21
6
|
//# sourceMappingURL=pre-graph-validation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pre-graph-validation.js","sourceRoot":"","sources":["../../../../source/config/pre-graph-validation.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"pre-graph-validation.js","sourceRoot":"","sources":["../../../../source/config/pre-graph-validation.ts"],"names":[],"mappings":"AAAA,OAAwB,QAAQ,CAAC;AAEjC,OAA0C,yBAAyB,CAAC;AACpE,OAA0C,sCAAsC,CAAC;AACjF,OAA4C,6BAA6B,CAAC;AAC1E,OAAkF,0BAA0B,CAAC"}
|
|
@@ -19,7 +19,4 @@ export declare const publishSettingsSchema: z.ZodMiniReadonly<z.ZodMiniDiscrimin
|
|
|
19
19
|
allowScripts: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
20
|
}, z.core.$strict>], "access">>;
|
|
21
21
|
export type PublishSettings = z.infer<typeof publishSettingsSchema>;
|
|
22
|
-
export type PublicPublishSettings = Extract<PublishSettings, {
|
|
23
|
-
readonly access: 'public';
|
|
24
|
-
}>;
|
|
25
22
|
//# sourceMappingURL=publish-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/publish-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAgB7B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;+BAcjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"publish-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/publish-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAgB7B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;+BAcjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const provenanceConfigSchema = z.readonly(z.discriminatedUnion('type', [
|
|
5
|
-
z.strictObject({
|
|
6
|
-
type: z.literal('auto')
|
|
7
|
-
}),
|
|
8
|
-
z.strictObject({
|
|
9
|
-
type: z.literal('file'),
|
|
10
|
-
path: nonEmptyStringSchema
|
|
11
|
-
})
|
|
12
|
-
]));
|
|
13
|
-
export const publishSettingsSchema = z.readonly(z.discriminatedUnion('access', [
|
|
14
|
-
z.strictObject({
|
|
15
|
-
access: z.literal('public'),
|
|
16
|
-
provenance: z.optional(provenanceConfigSchema),
|
|
17
|
-
sbom: z.optional(sbomSettingsSchema),
|
|
18
|
-
allowScripts: z.optional(z.boolean())
|
|
19
|
-
}),
|
|
20
|
-
z.strictObject({
|
|
21
|
-
access: z.literal('restricted'),
|
|
22
|
-
sbom: z.optional(sbomSettingsSchema),
|
|
23
|
-
allowScripts: z.optional(z.boolean())
|
|
24
|
-
})
|
|
25
|
-
]));
|
|
1
|
+
import 'zod/mini';
|
|
2
|
+
import "./base-validations.js";
|
|
3
|
+
import "./sbom-settings.js";
|
|
26
4
|
//# sourceMappingURL=publish-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-settings.js","sourceRoot":"","sources":["../../../../source/config/publish-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"publish-settings.js","sourceRoot":"","sources":["../../../../source/config/publish-settings.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC;AAC7B,OAAqC,uBAAuB,CAAC;AAC7D,OAAmC,oBAAoB,CAAC"}
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
function redactProvenance(provenance) {
|
|
3
|
-
if (provenance.type === 'file') {
|
|
4
|
-
return { type: 'file', path: provenance.path, inlined: false };
|
|
5
|
-
}
|
|
6
|
-
return { type: 'auto' };
|
|
7
|
-
}
|
|
8
|
-
export function redactPublishSettings(settings) {
|
|
9
|
-
return pickBy({
|
|
10
|
-
access: settings.access,
|
|
11
|
-
allowScripts: settings.allowScripts,
|
|
12
|
-
sbom: settings.sbom,
|
|
13
|
-
provenance: settings.access === 'public' && settings.provenance !== undefined
|
|
14
|
-
? redactProvenance(settings.provenance)
|
|
15
|
-
: undefined
|
|
16
|
-
}, isDefined);
|
|
17
|
-
}
|
|
1
|
+
import 'remeda';
|
|
18
2
|
//# sourceMappingURL=publish-settings.report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-settings.report.js","sourceRoot":"","sources":["../../../../source/config/publish-settings.report.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"publish-settings.report.js","sourceRoot":"","sources":["../../../../source/config/publish-settings.report.ts"],"names":[],"mappings":"AAAA,OAAkC,QAAQ,CAAC"}
|
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
|
-
declare const publishAuthStrategySchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
3
|
-
type: z.ZodMiniLiteral<"bearer-token">;
|
|
4
|
-
token: z.ZodMiniString<string>;
|
|
5
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
6
|
-
type: z.ZodMiniLiteral<"basic">;
|
|
7
|
-
username: z.ZodMiniString<string>;
|
|
8
|
-
password: z.ZodMiniString<string>;
|
|
9
|
-
email: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
11
|
-
type: z.ZodMiniLiteral<"npm-oidc">;
|
|
12
|
-
provider: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
13
|
-
auto: "auto";
|
|
14
|
-
"github-actions": "github-actions";
|
|
15
|
-
env: "env";
|
|
16
|
-
}>>;
|
|
17
|
-
idTokenEnvVar: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
18
|
-
}, z.core.$strict>>], "type">;
|
|
19
|
-
declare const metadataAuthStrategySchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
20
|
-
type: z.ZodMiniLiteral<"bearer-token">;
|
|
21
|
-
token: z.ZodMiniString<string>;
|
|
22
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
23
|
-
type: z.ZodMiniLiteral<"basic">;
|
|
24
|
-
username: z.ZodMiniString<string>;
|
|
25
|
-
password: z.ZodMiniString<string>;
|
|
26
|
-
email: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
27
|
-
}, z.core.$strict>>], "type">;
|
|
28
|
-
declare const metadataAuthModeSchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"auto">, z.ZodMiniLiteral<"anonymous">, z.ZodMiniLiteral<"inherit-publish-auth">, z.ZodMiniDiscriminatedUnion<[z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
29
|
-
type: z.ZodMiniLiteral<"bearer-token">;
|
|
30
|
-
token: z.ZodMiniString<string>;
|
|
31
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
32
|
-
type: z.ZodMiniLiteral<"basic">;
|
|
33
|
-
username: z.ZodMiniString<string>;
|
|
34
|
-
password: z.ZodMiniString<string>;
|
|
35
|
-
email: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
36
|
-
}, z.core.$strict>>], "type">]>;
|
|
37
2
|
export declare const registrySettingsSchema: z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
38
3
|
registryUrl: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
39
4
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniDiscriminatedUnion<[z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
@@ -81,12 +46,6 @@ export declare const registrySettingsSchema: z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
|
81
46
|
}, z.core.$strict>>], "type">]>>;
|
|
82
47
|
}, z.core.$strict>>]>>;
|
|
83
48
|
}, z.core.$strict>>;
|
|
84
|
-
export type PublishAuthStrategy = z.infer<typeof publishAuthStrategySchema>;
|
|
85
|
-
export type NpmOidcPublishAuth = Extract<PublishAuthStrategy, {
|
|
86
|
-
readonly type: 'npm-oidc';
|
|
87
|
-
}>;
|
|
88
|
-
export type MetadataAuthStrategy = z.infer<typeof metadataAuthStrategySchema>;
|
|
89
|
-
export type MetadataAuthMode = z.infer<typeof metadataAuthModeSchema>;
|
|
90
49
|
export type RegistrySettings = z.infer<typeof registrySettingsSchema>;
|
|
91
50
|
export {};
|
|
92
51
|
//# sourceMappingURL=registry-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/registry-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"registry-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/registry-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;eAoDtB,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAKlC,CAAC;AAEF,MAAM,MAIM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,41 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const bearerTokenAuthSchema = z.readonly(z.strictObject({
|
|
4
|
-
type: z.literal('bearer-token'),
|
|
5
|
-
token: nonEmptyStringSchema
|
|
6
|
-
}));
|
|
7
|
-
const basicAuthSchema = z.readonly(z.strictObject({
|
|
8
|
-
type: z.literal('basic'),
|
|
9
|
-
username: nonEmptyStringSchema,
|
|
10
|
-
password: nonEmptyStringSchema,
|
|
11
|
-
email: z.optional(nonEmptyStringSchema)
|
|
12
|
-
}));
|
|
13
|
-
const npmOidcAuthSchema = z.readonly(z.strictObject({
|
|
14
|
-
type: z.literal('npm-oidc'),
|
|
15
|
-
provider: z.optional(z.enum(['auto', 'github-actions', 'env'])),
|
|
16
|
-
idTokenEnvVar: z.optional(nonEmptyStringSchema)
|
|
17
|
-
}));
|
|
18
|
-
const publishAuthStrategySchema = z.discriminatedUnion('type', [
|
|
19
|
-
bearerTokenAuthSchema,
|
|
20
|
-
basicAuthSchema,
|
|
21
|
-
npmOidcAuthSchema
|
|
22
|
-
]);
|
|
23
|
-
const metadataAuthStrategySchema = z.discriminatedUnion('type', [bearerTokenAuthSchema, basicAuthSchema]);
|
|
24
|
-
const metadataAuthModeSchema = z.union([
|
|
25
|
-
z.literal('auto'),
|
|
26
|
-
z.literal('anonymous'),
|
|
27
|
-
z.literal('inherit-publish-auth'),
|
|
28
|
-
metadataAuthStrategySchema
|
|
29
|
-
]);
|
|
30
|
-
const authConfigSchema = z.union([
|
|
31
|
-
z.readonly(publishAuthStrategySchema),
|
|
32
|
-
z.readonly(z.strictObject({
|
|
33
|
-
publish: publishAuthStrategySchema,
|
|
34
|
-
metadata: z.optional(metadataAuthModeSchema)
|
|
35
|
-
}))
|
|
36
|
-
]);
|
|
37
|
-
export const registrySettingsSchema = z.readonly(z.strictObject({
|
|
38
|
-
registryUrl: z.optional(nonEmptyStringSchema),
|
|
39
|
-
auth: z.optional(authConfigSchema)
|
|
40
|
-
}));
|
|
1
|
+
import 'zod/mini';
|
|
2
|
+
import "./base-validations.js";
|
|
41
3
|
//# sourceMappingURL=registry-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-settings.js","sourceRoot":"","sources":["../../../../source/config/registry-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"registry-settings.js","sourceRoot":"","sources":["../../../../source/config/registry-settings.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC;AAC7B,OAAqC,uBAAuB,CAAC"}
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
const redactedValue = '[redacted]';
|
|
2
|
-
function redactPublishAuth(auth) {
|
|
3
|
-
if (auth.type === 'bearer-token') {
|
|
4
|
-
return { type: 'bearer-token', token: redactedValue };
|
|
5
|
-
}
|
|
6
|
-
if (auth.type === 'basic') {
|
|
7
|
-
return {
|
|
8
|
-
type: 'basic',
|
|
9
|
-
username: auth.username,
|
|
10
|
-
password: redactedValue,
|
|
11
|
-
...auth.email === undefined ? {} : { email: auth.email }
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
type: 'npm-oidc',
|
|
16
|
-
...auth.provider === undefined ? {} : { provider: auth.provider },
|
|
17
|
-
...auth.idTokenEnvVar === undefined ? {} : { idTokenEnvVar: auth.idTokenEnvVar }
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function isMetadataAuthStrategy(metadata) {
|
|
21
|
-
return typeof metadata !== 'string';
|
|
22
|
-
}
|
|
23
|
-
function isExpandedRegistryAuth(auth) {
|
|
24
|
-
return Object.hasOwn(auth, 'publish');
|
|
25
|
-
}
|
|
26
|
-
function redactMetadata(metadata) {
|
|
27
|
-
if (isMetadataAuthStrategy(metadata)) {
|
|
28
|
-
return { strategy: redactPublishAuth(metadata) };
|
|
29
|
-
}
|
|
30
|
-
return { mode: metadata };
|
|
31
|
-
}
|
|
32
|
-
function redactAuth(auth) {
|
|
33
|
-
if (isExpandedRegistryAuth(auth)) {
|
|
34
|
-
return {
|
|
35
|
-
publish: redactPublishAuth(auth.publish),
|
|
36
|
-
...auth.metadata === undefined ? {} : { metadata: redactMetadata(auth.metadata) }
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return redactPublishAuth(auth);
|
|
40
|
-
}
|
|
41
|
-
export function redactRegistrySettings(settings) {
|
|
42
|
-
return {
|
|
43
|
-
...settings.registryUrl === undefined ? {} : { registryUrl: settings.registryUrl },
|
|
44
|
-
...settings.auth === undefined ? {} : { auth: redactAuth(settings.auth) }
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
1
|
//# sourceMappingURL=registry-settings.report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-settings.report.js","sourceRoot":"","sources":["../../../../source/config/registry-settings.report.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry-settings.report.js","sourceRoot":"","sources":["../../../../source/config/registry-settings.report.ts"],"names":[],"mappings":""}
|
|
@@ -1,142 +1 @@
|
|
|
1
|
-
function unknownRootIssue(packageConfig, referenceName, rootId) {
|
|
2
|
-
if (packageConfig.roots[rootId] === undefined) {
|
|
3
|
-
return `Package "${packageConfig.name}" ${referenceName} references unknown root "${rootId}"`;
|
|
4
|
-
}
|
|
5
|
-
return undefined;
|
|
6
|
-
}
|
|
7
|
-
function duplicateEntryIssue(packageConfig, seenValues, value, label) {
|
|
8
|
-
if (seenValues.has(value)) {
|
|
9
|
-
return `Package "${packageConfig.name}" declares duplicate ${label} "${value}"`;
|
|
10
|
-
}
|
|
11
|
-
return undefined;
|
|
12
|
-
}
|
|
13
|
-
function definedIssues(...issues) {
|
|
14
|
-
return issues.filter(function (issue) {
|
|
15
|
-
return issue !== undefined;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function validateExplicitRootEntries(packageConfig, validation) {
|
|
19
|
-
const issues = [];
|
|
20
|
-
const seenValues = new Set();
|
|
21
|
-
const rootIds = new Set();
|
|
22
|
-
for (const entry of validation.entries) {
|
|
23
|
-
const entryName = validation.entryNameFor(entry);
|
|
24
|
-
issues.push(...definedIssues(unknownRootIssue(packageConfig, `${validation.referenceLabel} "${entryName}"`, entry.root), duplicateEntryIssue(packageConfig, seenValues, entryName, validation.duplicateLabel)));
|
|
25
|
-
seenValues.add(entryName);
|
|
26
|
-
rootIds.add(entry.root);
|
|
27
|
-
}
|
|
28
|
-
return { issues, rootIds };
|
|
29
|
-
}
|
|
30
|
-
function validateExplicitPublicEntries(packageConfig) {
|
|
31
|
-
const modules = validateExplicitRootEntries(packageConfig, {
|
|
32
|
-
duplicateLabel: 'export key',
|
|
33
|
-
entries: packageConfig.packageInterface.modules ?? [],
|
|
34
|
-
entryNameFor(entry) {
|
|
35
|
-
return entry.export;
|
|
36
|
-
},
|
|
37
|
-
referenceLabel: 'module export'
|
|
38
|
-
});
|
|
39
|
-
const bins = validateExplicitRootEntries(packageConfig, {
|
|
40
|
-
duplicateLabel: 'bin name',
|
|
41
|
-
entries: packageConfig.packageInterface.bins ?? [],
|
|
42
|
-
entryNameFor(entry) {
|
|
43
|
-
return entry.name;
|
|
44
|
-
},
|
|
45
|
-
referenceLabel: 'bin'
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
issues: [...modules.issues, ...bins.issues],
|
|
49
|
-
rootIds: new Set([...modules.rootIds, ...bins.rootIds])
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function validateExplicitPrivateRoots(packageConfig, publicRootIds) {
|
|
53
|
-
const issues = [];
|
|
54
|
-
const seenRootIds = new Set();
|
|
55
|
-
const rootIds = new Set();
|
|
56
|
-
const privateRoots = packageConfig.packageInterface.privateRoots ?? [];
|
|
57
|
-
for (const rootId of privateRoots) {
|
|
58
|
-
issues.push(...definedIssues(unknownRootIssue(packageConfig, `private root "${rootId}"`, rootId), duplicateEntryIssue(packageConfig, seenRootIds, rootId, 'private root'), publicRootIds.has(rootId)
|
|
59
|
-
? `Package "${packageConfig.name}" root "${rootId}" cannot be both public and private`
|
|
60
|
-
: undefined));
|
|
61
|
-
seenRootIds.add(rootId);
|
|
62
|
-
rootIds.add(rootId);
|
|
63
|
-
}
|
|
64
|
-
return { issues, rootIds };
|
|
65
|
-
}
|
|
66
|
-
function collectExplicitUnusedRootIssues(packageConfig, usedRootIds) {
|
|
67
|
-
const issues = [];
|
|
68
|
-
for (const rootId of Object.keys(packageConfig.roots)) {
|
|
69
|
-
if (!usedRootIds.has(rootId)) {
|
|
70
|
-
issues.push(`Package "${packageConfig.name}" defines unused root "${rootId}" in explicit mode`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return issues;
|
|
74
|
-
}
|
|
75
|
-
function validateExplicitRootConfiguration(packageConfig) {
|
|
76
|
-
const publicEntries = validateExplicitPublicEntries(packageConfig);
|
|
77
|
-
const privateRoots = validateExplicitPrivateRoots(packageConfig, publicEntries.rootIds);
|
|
78
|
-
const usedRootIds = new Set([...publicEntries.rootIds, ...privateRoots.rootIds]);
|
|
79
|
-
return [
|
|
80
|
-
...publicEntries.issues,
|
|
81
|
-
...privateRoots.issues,
|
|
82
|
-
...collectExplicitUnusedRootIssues(packageConfig, usedRootIds)
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
function validateDuplicateRootJavaScriptTargets(packageConfig) {
|
|
86
|
-
const issues = [];
|
|
87
|
-
const jsPaths = new Map();
|
|
88
|
-
for (const [rootId, root] of Object.entries(packageConfig.roots)) {
|
|
89
|
-
const previous = jsPaths.get(root.js);
|
|
90
|
-
if (previous === undefined) {
|
|
91
|
-
jsPaths.set(root.js, rootId);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
issues.push(`Package "${packageConfig.name}" maps both root "${previous}" and "${rootId}" to "${root.js}"`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return issues;
|
|
98
|
-
}
|
|
99
|
-
function validateImplicitRootConfiguration(packageConfig) {
|
|
100
|
-
const { defaultModuleRoot } = packageConfig;
|
|
101
|
-
const issues = [];
|
|
102
|
-
if (defaultModuleRoot === undefined && Object.keys(packageConfig.roots).length > 1) {
|
|
103
|
-
issues.push(`Package "${packageConfig.name}" must define defaultModuleRoot when multiple roots exist`);
|
|
104
|
-
}
|
|
105
|
-
if (defaultModuleRoot !== undefined && packageConfig.roots[defaultModuleRoot] === undefined) {
|
|
106
|
-
issues.push(`Package "${packageConfig.name}" references unknown defaultModuleRoot "${defaultModuleRoot}"`);
|
|
107
|
-
}
|
|
108
|
-
return issues;
|
|
109
|
-
}
|
|
110
|
-
function hasInvalidExplicitDefaultModuleRoot(packageConfig) {
|
|
111
|
-
const packageRecord = packageConfig;
|
|
112
|
-
const { defaultModuleRoot } = packageRecord;
|
|
113
|
-
return typeof defaultModuleRoot === 'string';
|
|
114
|
-
}
|
|
115
|
-
function validateExplicitModeConfiguration(packageConfig) {
|
|
116
|
-
const issues = validateExplicitRootConfiguration(packageConfig);
|
|
117
|
-
if (hasInvalidExplicitDefaultModuleRoot(packageConfig)) {
|
|
118
|
-
const message = [
|
|
119
|
-
`Package "${packageConfig.name}" cannot combine defaultModuleRoot with packageInterface;`,
|
|
120
|
-
'remove defaultModuleRoot in explicit mode'
|
|
121
|
-
]
|
|
122
|
-
.join(' ');
|
|
123
|
-
return [message, ...issues];
|
|
124
|
-
}
|
|
125
|
-
return issues;
|
|
126
|
-
}
|
|
127
|
-
function validateRootConfiguration(packageConfig) {
|
|
128
|
-
const duplicateRootIssues = validateDuplicateRootJavaScriptTargets(packageConfig);
|
|
129
|
-
if (packageConfig.packageInterface === undefined) {
|
|
130
|
-
return [...duplicateRootIssues, ...validateImplicitRootConfiguration(packageConfig)];
|
|
131
|
-
}
|
|
132
|
-
return [...duplicateRootIssues, ...validateExplicitModeConfiguration(packageConfig)];
|
|
133
|
-
}
|
|
134
|
-
export function validatePackageSurfaceRules(packageConfigs) {
|
|
135
|
-
const issues = [];
|
|
136
|
-
const packageList = Object.values(packageConfigs);
|
|
137
|
-
for (const packageConfig of packageList) {
|
|
138
|
-
issues.push(...validateRootConfiguration(packageConfig));
|
|
139
|
-
}
|
|
140
|
-
return issues;
|
|
141
|
-
}
|
|
142
1
|
//# sourceMappingURL=root-config-validation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root-config-validation.js","sourceRoot":"","sources":["../../../../source/config/root-config-validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"root-config-validation.js","sourceRoot":"","sources":["../../../../source/config/root-config-validation.ts"],"names":[],"mappings":""}
|
package/config/root.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export const rootSchema = z.readonly(z.strictObject({
|
|
4
|
-
js: nonEmptyStringSchema,
|
|
5
|
-
declarationFile: z.optional(nonEmptyStringSchema)
|
|
6
|
-
}));
|
|
1
|
+
import 'zod/mini';
|
|
2
|
+
import "./base-validations.js";
|
|
7
3
|
//# sourceMappingURL=root.js.map
|
package/config/root.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../../source/config/root.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"root.js","sourceRoot":"","sources":["../../../../source/config/root.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC;AAC7B,OAAqC,uBAAuB,CAAC"}
|
package/config/sbom-settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sbom-settings.js","sourceRoot":"","sources":["../../../../source/config/sbom-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"sbom-settings.js","sourceRoot":"","sources":["../../../../source/config/sbom-settings.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC"}
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
export function validatePublishSettingsArePlaced(packtoryConfig) {
|
|
2
|
-
if (packtoryConfig.commonPackageSettings?.publishSettings !== undefined) {
|
|
3
|
-
return [];
|
|
4
|
-
}
|
|
5
|
-
const everyPackageHasIt = packtoryConfig.packages.every(function (packageConfig) {
|
|
6
|
-
return packageConfig.publishSettings !== undefined;
|
|
7
|
-
});
|
|
8
|
-
if (everyPackageHasIt) {
|
|
9
|
-
return [];
|
|
10
|
-
}
|
|
11
|
-
return ['publishSettings must be set in commonPackageSettings or in every package'];
|
|
12
|
-
}
|
|
13
|
-
export function validateAllowScriptsConsistency(packtoryConfig) {
|
|
14
|
-
const commonAttributes = packtoryConfig.commonPackageSettings?.additionalPackageJsonAttributes;
|
|
15
|
-
const commonPublishSettings = packtoryConfig.commonPackageSettings?.publishSettings;
|
|
16
|
-
return packtoryConfig.packages.flatMap(function (packageConfig) {
|
|
17
|
-
const mergedAttributes = { ...commonAttributes, ...packageConfig.additionalPackageJsonAttributes };
|
|
18
|
-
const resolvedPublishSettings = packageConfig.publishSettings ?? commonPublishSettings;
|
|
19
|
-
if (!Object.hasOwn(mergedAttributes, 'scripts')) {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
if (resolvedPublishSettings?.allowScripts === true) {
|
|
23
|
-
return [];
|
|
24
|
-
}
|
|
25
|
-
const prefix = `Package "${packageConfig.name}": "scripts" in additionalPackageJsonAttributes`;
|
|
26
|
-
return [`${prefix} requires "publishSettings.allowScripts: true"`];
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
1
|
//# sourceMappingURL=settings-validation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-validation.js","sourceRoot":"","sources":["../../../../source/config/settings-validation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings-validation.js","sourceRoot":"","sources":["../../../../source/config/settings-validation.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
2
|
import { automaticVersioningSettingsSchema } from './automatic-versioning-settings.ts';
|
|
3
|
-
import { type ManualVersioningSettings
|
|
4
|
-
export declare const versioningSettingsSchema: z.ZodMiniReadonly<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
5
|
-
automatic: z.ZodMiniLiteral<true>;
|
|
6
|
-
minimumVersion: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniUnion<readonly [z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
8
|
-
automatic: z.ZodMiniLiteral<false>;
|
|
9
|
-
version: z.ZodMiniString<string>;
|
|
10
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
11
|
-
automatic: z.ZodMiniLiteral<false>;
|
|
12
|
-
provideVersion: z.ZodMiniCustom<import("./manual-versioning-settings.ts").VersionProvider, import("./manual-versioning-settings.ts").VersionProvider>;
|
|
13
|
-
}, z.core.$strict>>, z.ZodMiniReadonly<z.ZodMiniObject<{
|
|
14
|
-
automatic: z.ZodMiniLiteral<false>;
|
|
15
|
-
source: z.ZodMiniLiteral<"pull-request-labels">;
|
|
16
|
-
}, z.core.$strict>>]>>]>>;
|
|
3
|
+
import { type ManualVersioningSettings } from './manual-versioning-settings.ts';
|
|
17
4
|
type AutomaticVersioningSettings = z.infer<typeof automaticVersioningSettingsSchema>;
|
|
18
5
|
export type VersioningSettings = AutomaticVersioningSettings | ManualVersioningSettings;
|
|
19
|
-
export declare function hasVersionProvider(versioning: VersioningSettings): versioning is Extract<VersioningSettings, {
|
|
20
|
-
readonly provideVersion: unknown;
|
|
21
|
-
}>;
|
|
22
|
-
export declare function hasVersionSource(versioning: VersioningSettings): versioning is SourceManualVersioningSettings;
|
|
23
6
|
export {};
|
|
24
7
|
//# sourceMappingURL=versioning-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/versioning-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAEH,KAAK,
|
|
1
|
+
{"version":3,"file":"versioning-settings.d.ts","sourceRoot":"","sources":["../../../../source/config/versioning-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAEH,KAAK,0BAER,MAAM,iCAAiC,CAAC;KAMpC,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAErF,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAAG,wBAAwB,CAAC;AAExF,OAE6C,EAAsC,CAElF"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
export const versioningSettingsSchema = z.readonly(z.union([automaticVersioningSettingsSchema, manualVersioningSettingsSchema]));
|
|
5
|
-
export function hasVersionProvider(versioning) {
|
|
6
|
-
return Object.hasOwn(versioning, 'provideVersion');
|
|
7
|
-
}
|
|
8
|
-
export function hasVersionSource(versioning) {
|
|
9
|
-
return Object.hasOwn(versioning, 'source');
|
|
10
|
-
}
|
|
1
|
+
import 'zod/mini';
|
|
2
|
+
import "./automatic-versioning-settings.js";
|
|
3
|
+
import "./manual-versioning-settings.js";
|
|
11
4
|
//# sourceMappingURL=versioning-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versioning-settings.js","sourceRoot":"","sources":["../../../../source/config/versioning-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"versioning-settings.js","sourceRoot":"","sources":["../../../../source/config/versioning-settings.ts"],"names":[],"mappings":"AAAA,OAAkB,UAAU,CAAC;AAC7B,OAAkD,oCAAoC,CAAC;AACvF,OAIO,iCAAiC,CAAC"}
|