packtory 0.0.74 → 0.0.76
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 +19 -0
- package/artifacts/artifacts-builder.d.ts.map +1 -1
- package/bundle-emitter/emitter.d.ts +7 -0
- package/bundle-emitter/emitter.d.ts.map +1 -1
- package/bundle-emitter/publication-outcome.d.ts +3 -0
- package/bundle-emitter/publication-outcome.d.ts.map +1 -1
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts +9 -0
- package/bundle-emitter/registry/package-metadata-fetcher.d.ts.map +1 -1
- package/bundle-emitter/registry/registry-auth-config.d.ts +14 -0
- package/bundle-emitter/registry/registry-auth-config.d.ts.map +1 -1
- package/bundle-emitter/registry/registry-client.d.ts +10 -0
- package/bundle-emitter/registry/registry-client.d.ts.map +1 -1
- package/bundle-emitter/registry/tarball-integrity.d.ts +1 -0
- package/bundle-emitter/registry/tarball-integrity.d.ts.map +1 -1
- package/bundle-emitter/repository-coherence.d.ts +13 -0
- package/bundle-emitter/repository-coherence.d.ts.map +1 -0
- package/bundle-emitter/repository-url-normalizer.d.ts +2 -0
- package/bundle-emitter/repository-url-normalizer.d.ts.map +1 -0
- package/checks/check-runner.d.ts +12 -0
- package/checks/check-runner.d.ts.map +1 -1
- package/checks/rule.d.ts +37 -0
- package/checks/rule.d.ts.map +1 -1
- package/checks/rules/max-bundle-size.d.ts +10 -0
- package/checks/rules/max-bundle-size.d.ts.map +1 -1
- package/checks/rules/no-dev-dependency-imports.d.ts +7 -0
- package/checks/rules/no-dev-dependency-imports.d.ts.map +1 -1
- package/checks/rules/no-duplicated-files.d.ts +7 -0
- package/checks/rules/no-duplicated-files.d.ts.map +1 -1
- package/checks/rules/no-side-effects.d.ts +11 -0
- package/checks/rules/no-side-effects.d.ts.map +1 -1
- package/checks/rules/no-unused-bundle-dependencies.d.ts +4 -0
- package/checks/rules/no-unused-bundle-dependencies.d.ts.map +1 -1
- package/checks/rules/registry.d.ts +12 -0
- package/checks/rules/registry.d.ts.map +1 -1
- package/checks/rules/required-files.d.ts +11 -0
- package/checks/rules/required-files.d.ts.map +1 -1
- package/checks/rules/type-script-declaration-integrity.d.ts +6 -0
- package/checks/rules/type-script-declaration-integrity.d.ts.map +1 -1
- package/checks/rules/type-script-declaration-project.d.ts +27 -0
- package/checks/rules/type-script-declaration-project.d.ts.map +1 -1
- package/checks/rules/type-script-integrity.d.ts +18 -0
- package/checks/rules/type-script-integrity.d.ts.map +1 -1
- package/checks/rules/type-script-package-resolution.d.ts +24 -0
- package/checks/rules/type-script-package-resolution.d.ts.map +1 -1
- package/checks/rules/unique-target-paths.d.ts +4 -0
- package/checks/rules/unique-target-paths.d.ts.map +1 -1
- package/common/clock.d.ts +6 -0
- package/common/clock.d.ts.map +1 -1
- package/common/max-date.d.ts +2 -0
- package/common/max-date.d.ts.map +1 -0
- package/common/package-layout.d.ts +13 -0
- package/common/package-layout.d.ts.map +1 -0
- package/common/schema-validation.d.ts +14 -0
- package/common/schema-validation.d.ts.map +1 -0
- package/common/sort-values.d.ts +2 -0
- package/common/sort-values.d.ts.map +1 -0
- package/config/base-validations.d.ts +4 -0
- package/config/base-validations.d.ts.map +1 -0
- package/config/changelog-settings.d.ts +44 -0
- package/config/changelog-settings.d.ts.map +1 -1
- package/config/config.d.ts +6 -0
- package/config/config.d.ts.map +1 -1
- package/config/dead-code-elimination-settings.d.ts +1 -0
- package/config/dead-code-elimination-settings.d.ts.map +1 -1
- package/config/manual-versioning-settings.d.ts +11 -0
- package/config/manual-versioning-settings.d.ts.map +1 -1
- package/config/package-config.d.ts +5 -0
- package/config/package-config.d.ts.map +1 -1
- package/config/package-json.d.ts +2 -0
- package/config/package-json.d.ts.map +1 -1
- package/config/packtory-config-schema.d.ts +1459 -0
- package/config/packtory-config-schema.d.ts.map +1 -0
- package/config/publish-settings.d.ts +3 -0
- package/config/publish-settings.d.ts.map +1 -1
- package/config/registry-settings.d.ts +41 -0
- package/config/registry-settings.d.ts.map +1 -1
- package/config/validation.d.ts +15 -0
- package/config/validation.d.ts.map +1 -1
- package/config/versioning-settings.d.ts +17 -0
- package/config/versioning-settings.d.ts.map +1 -1
- package/dead-code-eliminator/analyzed-bundle.d.ts +9 -0
- package/dead-code-eliminator/analyzed-bundle.d.ts.map +1 -1
- package/dead-code-eliminator/eliminator.js +228 -2
- package/dead-code-eliminator/eliminator.js.map +1 -1
- package/dependency-scanner/dependency-graph.d.ts +31 -0
- package/dependency-scanner/dependency-graph.d.ts.map +1 -1
- package/dependency-scanner/external-dependencies.d.ts +1 -0
- package/dependency-scanner/external-dependencies.d.ts.map +1 -1
- package/dependency-scanner/scanner.d.ts +14 -0
- package/dependency-scanner/scanner.d.ts.map +1 -1
- package/dependency-scanner/source-file-references.d.ts +26 -0
- package/dependency-scanner/source-file-references.d.ts.map +1 -1
- package/dependency-scanner/source-file-references.js +1 -1
- package/dependency-scanner/source-file-references.js.map +1 -1
- package/dependency-scanner/source-map-file-locator.d.ts +7 -0
- package/dependency-scanner/source-map-file-locator.d.ts.map +1 -1
- package/dependency-scanner/typescript-compiler-options.d.ts +5 -0
- package/dependency-scanner/typescript-compiler-options.d.ts.map +1 -1
- package/dependency-scanner/typescript-file-host.d.ts +9 -0
- package/dependency-scanner/typescript-file-host.d.ts.map +1 -1
- package/dependency-scanner/typescript-project-analyzer.d.ts +14 -0
- package/dependency-scanner/typescript-project-analyzer.d.ts.map +1 -1
- package/directed-graph/graph.d.ts +27 -0
- package/directed-graph/graph.d.ts.map +1 -1
- package/file-manager/file-description.d.ts +1 -0
- package/file-manager/file-description.d.ts.map +1 -1
- package/file-manager/file-manager.d.ts +25 -0
- package/file-manager/file-manager.d.ts.map +1 -1
- package/git/current-git-head.d.ts +10 -0
- package/git/current-git-head.d.ts.map +1 -1
- package/linker/linked-bundle.d.ts +8 -0
- package/linker/linked-bundle.d.ts.map +1 -1
- package/linker/linker.d.ts +9 -0
- package/linker/linker.d.ts.map +1 -1
- package/linker/substitute-bundles.js +1 -1
- package/linker/substitute-bundles.js.map +1 -1
- package/pack-emitter/pack-emitter.d.ts +15 -0
- package/pack-emitter/pack-emitter.d.ts.map +1 -1
- package/package-surface/surface.d.ts +2 -0
- package/package-surface/surface.d.ts.map +1 -1
- package/package.json +29 -13
- package/packages/package-processor.composition.d.ts +31 -0
- package/packages/package-processor.composition.d.ts.map +1 -0
- package/packages/packtory.composition.d.ts +9 -0
- package/packages/packtory.composition.d.ts.map +1 -0
- package/packtory/changelog-source-attribution.d.ts +21 -0
- package/packtory/changelog-source-attribution.d.ts.map +1 -0
- package/packtory/generated-attribution-paths.d.ts +18 -0
- package/packtory/generated-attribution-paths.d.ts.map +1 -0
- package/packtory/map-config.d.ts +24 -0
- package/packtory/map-config.d.ts.map +1 -1
- package/packtory/options/prepare-package-options.d.ts +12 -0
- package/packtory/options/prepare-package-options.d.ts.map +1 -1
- package/packtory/options/setting-resolvers.d.ts +14 -0
- package/packtory/options/setting-resolvers.d.ts.map +1 -1
- package/packtory/package-processor-publish.d.ts +12 -0
- package/packtory/package-processor-publish.d.ts.map +1 -1
- package/packtory/package-processor.d.ts +25 -0
- package/packtory/package-processor.d.ts.map +1 -1
- package/packtory/packtory-results.d.ts +28 -0
- package/packtory/packtory-results.d.ts.map +1 -1
- package/packtory/packtory.d.ts +17 -0
- package/packtory/packtory.d.ts.map +1 -1
- package/packtory/partial-result.d.ts +12 -0
- package/packtory/partial-result.d.ts.map +1 -0
- package/packtory/published-release-state.d.ts +18 -0
- package/packtory/published-release-state.d.ts.map +1 -1
- package/packtory/resolved-package.d.ts +6 -0
- package/packtory/resolved-package.d.ts.map +1 -1
- package/packtory/scheduler.d.ts +41 -0
- package/packtory/scheduler.d.ts.map +1 -1
- package/progress/progress-broadcaster.d.ts +9 -0
- package/progress/progress-broadcaster.d.ts.map +1 -1
- package/published-package/published-package.d.ts +2 -0
- package/published-package/published-package.d.ts.map +1 -1
- package/readme.md +10 -40
- package/report/aggregator/report-types.d.ts +21 -0
- package/report/aggregator/report-types.d.ts.map +1 -1
- package/report/preview/preview-document-diff.d.ts +5 -0
- package/report/preview/preview-document-diff.d.ts.map +1 -1
- package/report/release-diff/file-set-diff.d.ts +2 -0
- package/report/release-diff/file-set-diff.d.ts.map +1 -1
- package/resource-resolver/resolved-bundle.d.ts +14 -0
- package/resource-resolver/resolved-bundle.d.ts.map +1 -1
- package/resource-resolver/resource-resolve-options.d.ts +5 -0
- package/resource-resolver/resource-resolve-options.d.ts.map +1 -1
- package/resource-resolver/resource-resolver.d.ts +10 -0
- package/resource-resolver/resource-resolver.d.ts.map +1 -1
- package/sbom/license-resolver.d.ts +11 -0
- package/sbom/license-resolver.d.ts.map +1 -1
- package/sbom/sbom-file.d.ts +8 -0
- package/sbom/sbom-file.d.ts.map +1 -1
- package/sbom/sbom-serializer.d.ts +5 -0
- package/sbom/sbom-serializer.d.ts.map +1 -1
- package/sbom.cdx.json +5 -5
- package/tar/tarball-builder.d.ts +8 -0
- package/tar/tarball-builder.d.ts.map +1 -1
- package/vendor-materializer/vendor-entry.d.ts +9 -0
- package/vendor-materializer/vendor-entry.d.ts.map +1 -1
- package/vendor-materializer/vendor-materializer.d.ts +32 -0
- package/vendor-materializer/vendor-materializer.d.ts.map +1 -1
- package/version-manager/manager.d.ts +4 -0
- package/version-manager/manager.d.ts.map +1 -1
- package/version-manager/versioned-bundle.d.ts +2 -0
- package/version-manager/versioned-bundle.d.ts.map +1 -1
- package/zip/zip-builder.d.ts +17 -0
- package/zip/zip-builder.d.ts.map +1 -1
|
@@ -5,5 +5,24 @@ import type { ArtifactSourcePackage } from '../published-package/published-packa
|
|
|
5
5
|
import type { TarballBuilder } from '../tar/tarball-builder.ts';
|
|
6
6
|
import { type VendorEntry } from '../vendor-materializer/vendor-entry.ts';
|
|
7
7
|
import type { ZipBuilder } from '../zip/zip-builder.ts';
|
|
8
|
+
export type ArtifactsBuilderDependencies = {
|
|
9
|
+
readonly fileManager: FileManager;
|
|
10
|
+
readonly tarballBuilder: TarballBuilder;
|
|
11
|
+
readonly zipBuilder: ZipBuilder;
|
|
12
|
+
readonly progressBroadcaster: ProgressBroadcastProvider;
|
|
13
|
+
};
|
|
14
|
+
type TarballArtifact = {
|
|
15
|
+
readonly tarData: Buffer;
|
|
16
|
+
};
|
|
17
|
+
type ZipArtifact = {
|
|
18
|
+
readonly zipData: Buffer;
|
|
19
|
+
};
|
|
20
|
+
export type ArtifactsBuilder = {
|
|
21
|
+
collectContents: (bundle: ArtifactSourcePackage, prefix?: string, extraFiles?: readonly FileDescription[]) => readonly FileDescription[];
|
|
22
|
+
buildTarball: (bundle: ArtifactSourcePackage, extraFiles?: readonly FileDescription[], vendorEntries?: readonly VendorEntry[]) => Promise<TarballArtifact>;
|
|
23
|
+
buildZip: (bundle: ArtifactSourcePackage, extraFiles?: readonly FileDescription[], vendorEntries?: readonly VendorEntry[]) => Promise<ZipArtifact>;
|
|
24
|
+
buildFolder: (bundle: ArtifactSourcePackage, targetFolder: string, extraFiles?: readonly FileDescription[], vendorEntries?: readonly VendorEntry[]) => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
export declare function createArtifactsBuilder(dependencies: ArtifactsBuilderDependencies): ArtifactsBuilder;
|
|
8
27
|
export {};
|
|
9
28
|
//# sourceMappingURL=artifacts-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts-builder.d.ts","sourceRoot":"","sources":["../../../../source/artifacts/artifacts-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC;
|
|
1
|
+
{"version":3,"file":"artifacts-builder.d.ts","sourceRoot":"","sources":["../../../../source/artifacts/artifacts-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM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AAE,SAAS,eAAe,EAAE,EACvC,aAAa,CAAC,EAAE,SAAS,WAAW,EAAE,KACrC,OAAO,CAAC,IAAI,CAAC,CAAC;CACtB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,4BAA4B,GAAG,gBAAgB,CA2CnG"}
|
|
@@ -34,6 +34,12 @@ type AutomaticVersioningSettings = {
|
|
|
34
34
|
};
|
|
35
35
|
type VersioningSettings = AutomaticVersioningSettings | FixedVersioningSettings | ProvidedVersioningSettings;
|
|
36
36
|
type PreviousReleaseArtifacts = Awaited<ReturnType<typeof fetchPublishedArtifacts>>;
|
|
37
|
+
export type BundleEmitterDependencies = {
|
|
38
|
+
readonly artifactsBuilder: ArtifactsBuilder;
|
|
39
|
+
readonly registryClient: RegistryClient;
|
|
40
|
+
readonly ciRepositoryUrl: string | undefined;
|
|
41
|
+
readonly readCurrentGitHead: () => Promise<string | undefined>;
|
|
42
|
+
};
|
|
37
43
|
type PublishOptions = {
|
|
38
44
|
readonly bundle: ArtifactPublishPackage;
|
|
39
45
|
readonly registrySettings: RegistrySettings;
|
|
@@ -70,5 +76,6 @@ export type BundleEmitter = {
|
|
|
70
76
|
findCurrentHeadPublishedVersion: (options: CurrentHeadPublishedVersionLookupOptions) => Promise<CurrentHeadPublishedVersion | undefined>;
|
|
71
77
|
checkBundleAlreadyPublished: (options: AlreadyPublishedCheckOptions) => Promise<BundlePublishedCheckResult>;
|
|
72
78
|
};
|
|
79
|
+
export declare function createBundleEmitter(dependencies: BundleEmitterDependencies): BundleEmitter;
|
|
73
80
|
export {};
|
|
74
81
|
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emitter/emitter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emit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AC5C,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;CAC3C,CAAC;AAEF,KAAK,wCAAwC,GAAG;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;CAC/C,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B,CAAC;AAQF,KAAK,0BAA0B,GAAG;IAC9B,QAAQ,CAAC,wBAAwB,EAAE,OAAO,CAAC;IAC3C,QAAQ,CAAC,wBAAwB,EAAE,wBAAwB,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAClE,uBAAuB,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1F,+BAA+B,EAAE,CAC7B,OAAO,EAAE,wCAAwC,KAChD,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAC;IACtD,2BAA2B,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,OAAO,CAAC,0BAA0B,CAAC,CAAC;CAC/G,CAAC;AA8CF,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,yBAAyB,GAAG,aAAa,CAgG1F"}
|
|
@@ -9,5 +9,8 @@ type StagedForApproval = {
|
|
|
9
9
|
readonly stageId: string;
|
|
10
10
|
};
|
|
11
11
|
export type PublicationOutcome = NoPublication | PublishedToRegistry | StagedForApproval;
|
|
12
|
+
export declare const noPublication: PublicationOutcome;
|
|
13
|
+
export declare const publishedToRegistry: PublicationOutcome;
|
|
14
|
+
export declare function stagedForApproval(stageId: string): PublicationOutcome;
|
|
12
15
|
export {};
|
|
13
16
|
//# sourceMappingURL=publication-outcome.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication-outcome.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emitter/publication-outcome.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CAAE;
|
|
1
|
+
{"version":3,"file":"publication-outcome.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emitter/publication-outcome.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CAAE,CAAC;AAChD,KAAK,mBAAmB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAAE,CAAC;AAC3D,KAAK,iBAAiB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAAE,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAEzF,eAAO,MAAM,aAAa,EAAE,kBAAqC,CAAC;AAClE,eAAO,MAAM,mBAAmB,EAAE,kBAA0C,CAAC;AAE7E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAErE"}
|
|
@@ -16,5 +16,14 @@ export type PackageReleaseMetadata = {
|
|
|
16
16
|
readonly version: string;
|
|
17
17
|
readonly gitHead: string | undefined;
|
|
18
18
|
};
|
|
19
|
+
type NpmFetchResponse = Awaited<ReturnType<typeof _npmFetch>>;
|
|
20
|
+
export type NpmFetch = {
|
|
21
|
+
(url: string, options?: NpmFetchOptions): Promise<NpmFetchResponse>;
|
|
22
|
+
readonly json: typeof _npmFetch.json;
|
|
23
|
+
};
|
|
24
|
+
export declare function fetchLatestPackageVersion(npmFetch: NpmFetch, packageName: string, registrySettings: Readonly<RegistrySettings>): Promise<Maybe<PackageVersionDetails>>;
|
|
25
|
+
export declare function fetchLatestPackageReleaseMetadata(npmFetch: NpmFetch, packageName: string, registrySettings: Readonly<RegistrySettings>): Promise<Maybe<PackageReleaseMetadata>>;
|
|
26
|
+
export declare function fetchStagedPackageVersions(npmFetch: NpmFetch, packageName: string, registrySettings: Readonly<RegistrySettings>): Promise<readonly string[]>;
|
|
27
|
+
export declare function fetchPackageTarball(npmFetch: NpmFetch, tarballUrl: string, tarballIntegrity: TarballIntegrity, registrySettings: Readonly<RegistrySettings>): Promise<Buffer>;
|
|
19
28
|
export {};
|
|
20
29
|
//# sourceMappingURL=package-metadata-fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-metadata-fetcher.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/package-metadata-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"package-metadata-fetcher.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/package-metadata-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,EAIH,KAAK,eAAe,EACvB,MAAM,2BAA2B,CAAC;AAOnC,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQvF,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAE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gB,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAC7C,OAAO,CAAC,MAAM,CAAC,CAWjB"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import type _npmFetch from 'npm-registry-fetch';
|
|
2
2
|
import type { MetadataAuthStrategy, PublishAuthStrategy, RegistrySettings } from '../../config/registry-settings.ts';
|
|
3
|
+
export declare const npmRegistryUrl = "https://registry.npmjs.org/";
|
|
4
|
+
export type NpmFetchOptions = Readonly<NonNullable<Parameters<typeof _npmFetch>[1]>>;
|
|
5
|
+
export type AuthResolution = {
|
|
6
|
+
readonly allowsAutomaticRetry: boolean;
|
|
7
|
+
readonly registry: string | undefined;
|
|
8
|
+
readonly options: NpmFetchOptions;
|
|
9
|
+
};
|
|
10
|
+
export declare function resolveRegistryUrl(registrySettings: Readonly<RegistrySettings>): string | undefined;
|
|
11
|
+
export declare function isNpmRegistry(registry: string | undefined): boolean;
|
|
12
|
+
export declare function resolvePublishAuth(registrySettings: Readonly<RegistrySettings>): PublishAuthStrategy;
|
|
13
|
+
export declare function createBaseOptions(registrySettings: Readonly<RegistrySettings>): NpmFetchOptions;
|
|
14
|
+
export declare function buildAuthOptions(auth: MetadataAuthStrategy, registrySettings: Readonly<RegistrySettings>): AuthResolution;
|
|
15
|
+
export declare function resolveMetadataAuthOptions(registrySettings: Readonly<RegistrySettings>): AuthResolution;
|
|
16
|
+
export declare function resolveStageListingAuthOptions(registrySettings: Readonly<RegistrySettings>): AuthResolution;
|
|
3
17
|
//# sourceMappingURL=registry-auth-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-auth-config.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/registry-auth-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"registry-auth-config.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/registry-auth-config.ts"],"names":[],"mappings":"AA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|
readonly version: string;
|
|
12
12
|
};
|
|
13
|
+
type PublishLibraryOptions = Readonly<Record<string, unknown>>;
|
|
13
14
|
type PublishPackageArguments = readonly [
|
|
14
15
|
manifest: PublishManifest,
|
|
15
16
|
tarData: Buffer,
|
|
@@ -17,6 +18,14 @@ type PublishPackageArguments = readonly [
|
|
|
17
18
|
publishSettings: PublishSettings,
|
|
18
19
|
stage: boolean
|
|
19
20
|
];
|
|
21
|
+
export type RegistryClientDependencies = {
|
|
22
|
+
readonly npmFetch: typeof _npmFetch;
|
|
23
|
+
readonly publish: (manifest: PublishManifest, tarData: Buffer, options?: PublishLibraryOptions) => Promise<unknown>;
|
|
24
|
+
readonly fetch: typeof globalThis.fetch;
|
|
25
|
+
readonly clock: Clock;
|
|
26
|
+
readonly resolveIdToken: (auth: NpmOidcPublishAuth) => Promise<string>;
|
|
27
|
+
readonly promptForOneTimePassword?: (() => Promise<string | undefined>) | undefined;
|
|
28
|
+
};
|
|
20
29
|
export type RegistryClient = {
|
|
21
30
|
fetchLatestReleaseMetadata: (packageName: string, config: RegistrySettings) => Promise<Maybe<PackageReleaseMetadata>>;
|
|
22
31
|
fetchLatestVersion: (packageName: string, config: RegistrySettings) => Promise<Maybe<PackageVersionDetails>>;
|
|
@@ -24,5 +33,6 @@ export type RegistryClient = {
|
|
|
24
33
|
publishPackage: (...publishArguments: PublishPackageArguments) => Promise<PublicationOutcome>;
|
|
25
34
|
fetchTarball: (tarballUrl: string, tarballIntegrity: TarballIntegrity, config: RegistrySettings) => Promise<Buffer>;
|
|
26
35
|
};
|
|
36
|
+
export declare function createRegistryClient(dependencies: Readonly<RegistryClientDependencies>): RegistryClient;
|
|
27
37
|
export {};
|
|
28
38
|
//# sourceMappingURL=registry-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-client.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/registry-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM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assertTarballIntegrity(tarball: Buffer, tarballIntegrity: TarballIntegrity): void;
|
|
5
6
|
//# sourceMappingURL=tarball-integrity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tarball-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/tarball-integrity.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC"}
|
|
1
|
+
{"version":3,"file":"tarball-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/bundle-emitter/registry/tarball-integrity.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AA0BF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAQhG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CiEnvironment = {
|
|
2
|
+
readonly githubServerUrl: string | undefined;
|
|
3
|
+
readonly githubRepository: string | undefined;
|
|
4
|
+
readonly gitlabProjectUrl: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
export declare function readCiEnvironment(environment: Readonly<Record<string, string | undefined>>): CiEnvironment;
|
|
7
|
+
export declare function getCiRepositoryUrl(environment: CiEnvironment): string | undefined;
|
|
8
|
+
type RepositoryManifest = {
|
|
9
|
+
readonly repository?: unknown;
|
|
10
|
+
};
|
|
11
|
+
export declare function assertRepositoryCoherence(manifest: RepositoryManifest, ciRepositoryUrl: string | undefined): void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=repository-coherence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-coherence.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emitter/repository-coherence.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,aAAa,CAM1G;AAMD,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAUjF;AAUD,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAaF,wBAAgB,yBAAyB,CACrC,QAAQ,EAAE,kBAAkB,EAC5B,eAAe,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAcN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-url-normalizer.d.ts","sourceRoot":"","sources":["../../../../source/bundle-emitter/repository-url-normalizer.ts"],"names":[],"mappings":"AAyBA,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAYzE"}
|
package/checks/check-runner.d.ts
CHANGED
|
@@ -2,5 +2,17 @@ import type { ChecksSettings, PackageChecksSettings, PackageConfigsByName } from
|
|
|
2
2
|
import type { AnalyzedBundle } from '../dead-code-eliminator/analyzed-bundle.ts';
|
|
3
3
|
import type { PublishedPackageWithManifest } from '../published-package/published-package.ts';
|
|
4
4
|
import type { AllCheckRules } from './rules/registry.ts';
|
|
5
|
+
export type CheckRunnerDependencies = {
|
|
6
|
+
readonly rules: AllCheckRules;
|
|
7
|
+
};
|
|
8
|
+
type CheckRunnerInput = {
|
|
9
|
+
readonly bundles: readonly AnalyzedBundle[];
|
|
10
|
+
readonly publishedPackages: ReadonlyMap<string, PublishedPackageWithManifest> | undefined;
|
|
11
|
+
readonly settings: ChecksSettings | undefined;
|
|
12
|
+
readonly perPackageSettings: ReadonlyMap<string, PackageChecksSettings | undefined>;
|
|
13
|
+
readonly packageConfigs: PackageConfigsByName;
|
|
14
|
+
};
|
|
15
|
+
export type CheckRunner = (input: CheckRunnerInput) => Promise<readonly string[]>;
|
|
16
|
+
export declare function createCheckRunner(dependencies: CheckRunnerDependencies): CheckRunner;
|
|
5
17
|
export {};
|
|
6
18
|
//# sourceMappingURL=check-runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-runner.d.ts","sourceRoot":"","sources":["../../../../source/checks/check-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"file":"check-runner.d.ts","sourceRoot":"","sources":["../../../../source/checks/check-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;CACjC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACpB,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IAC5C,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,EAAE,4BAA4B,CAAC,GAAG,SAAS,CAAC;IAC1F,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,GAAG,SAAS,CAAC,CAAC;IACpF,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;AAElF,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,uBAAuB,GAAG,WAAW,CASpF"}
|
package/checks/rule.d.ts
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
import { z, type ZodMiniType } from 'zod/mini';
|
|
2
2
|
import type { AnalyzedBundle } from '../dead-code-eliminator/analyzed-bundle.ts';
|
|
3
3
|
import type { PublishedPackageWithManifest } from '../published-package/published-package.ts';
|
|
4
|
+
export declare const enabledOnlyGlobalSchema: z.ZodMiniObject<{
|
|
5
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const emptyPerPackageSchema: z.ZodMiniObject<{}, z.core.$strict>;
|
|
8
|
+
export declare const pathAllowListGlobalSchema: z.ZodMiniObject<{
|
|
9
|
+
allowList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
10
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export declare const pathAllowListPerPackageSchema: z.ZodMiniObject<{
|
|
13
|
+
allowList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
type RuleGlobalConfig = {
|
|
16
|
+
readonly enabled: boolean;
|
|
17
|
+
};
|
|
18
|
+
type MainPackageJsonShape = {
|
|
19
|
+
readonly dependencies?: Readonly<Record<string, string>> | undefined;
|
|
20
|
+
readonly devDependencies?: Readonly<Record<string, string>> | undefined;
|
|
21
|
+
readonly peerDependencies?: Readonly<Record<string, string>> | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type RulePackageConfig = {
|
|
24
|
+
readonly bundleDependencies?: readonly string[] | undefined;
|
|
25
|
+
readonly bundlePeerDependencies?: readonly string[] | undefined;
|
|
26
|
+
readonly mainPackageJson?: MainPackageJsonShape | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type RuleRunInput<TName extends string, TGlobal extends RuleGlobalConfig, TPerPackage> = {
|
|
29
|
+
readonly bundles: readonly AnalyzedBundle[];
|
|
30
|
+
readonly publishedPackages?: ReadonlyMap<string, PublishedPackageWithManifest> | undefined;
|
|
31
|
+
readonly settings: Readonly<Partial<Readonly<Record<TName, TGlobal | undefined>>>> | undefined;
|
|
32
|
+
readonly perPackageSettings: ReadonlyMap<string, Readonly<Partial<Readonly<Record<TName, TPerPackage | undefined>>>> | undefined>;
|
|
33
|
+
readonly packageConfigs?: Readonly<Record<string, RulePackageConfig>>;
|
|
34
|
+
};
|
|
35
|
+
export type CheckRuleDefinition<TName extends string, TGlobal extends RuleGlobalConfig, TPerPackage> = {
|
|
36
|
+
readonly name: TName;
|
|
37
|
+
readonly globalSchema: ZodMiniType<TGlobal>;
|
|
38
|
+
readonly perPackageSchema: ZodMiniType<TPerPackage>;
|
|
39
|
+
readonly run: (input: RuleRunInput<TName, TGlobal, TPerPackage>) => Promise<readonly string[]>;
|
|
40
|
+
};
|
|
4
41
|
export {};
|
|
5
42
|
//# sourceMappingURL=rule.d.ts.map
|
package/checks/rule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../../../source/checks/rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":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
6
|
+
readonly bytes?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
type PerPackageConfig = {
|
|
9
|
+
readonly bytes?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const maxBundleSizeRule: CheckRuleDefinition<RuleName, GlobalConfig, PerPackageConfig>;
|
|
2
12
|
export {};
|
|
3
13
|
//# sourceMappingURL=max-bundle-size.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"max-bundle-size.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/max-bundle-size.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,YAAY"}
|
|
1
|
+
{"version":3,"file":"max-bundle-size.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/max-bundle-size.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,YAAY,CAAC;AAEpE,iBAAS,QAAQ,IAAI,eAAe,CAEnC;AAID,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,KAAK,YAAY,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAAE,CAAC;AACxF,KAAK,gBAAgB,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAAE,CAAC;AAgDjE,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAW3F,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { z } from 'zod/mini';
|
|
2
2
|
import { type CheckRuleDefinition, emptyPerPackageSchema, enabledOnlyGlobalSchema } from '../rule.ts';
|
|
3
|
+
declare function ruleName(): 'noDevDependencyImports';
|
|
4
|
+
declare function globalSchema(): typeof enabledOnlyGlobalSchema;
|
|
5
|
+
declare function perPackageSchema(): typeof emptyPerPackageSchema;
|
|
6
|
+
type RuleName = ReturnType<typeof ruleName>;
|
|
7
|
+
type GlobalConfig = Readonly<z.infer<ReturnType<typeof globalSchema>>>;
|
|
8
|
+
type PerPackageConfig = Readonly<z.infer<ReturnType<typeof perPackageSchema>>>;
|
|
9
|
+
export declare const noDevDependencyImportsRule: CheckRuleDefinition<RuleName, GlobalConfig, PerPackageConfig>;
|
|
3
10
|
export {};
|
|
4
11
|
//# sourceMappingURL=no-dev-dependency-imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-dev-dependency-imports.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-dev-dependency-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"no-dev-dependency-imports.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-dev-dependency-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACH,KAAK,mBAAmB,EACxB,qBAAqB,EACrB,uBAAuB,EAG1B,MAAM,YAAY,CAAC;AAEpB,iBAAS,QAAQ,IAAI,wBAAwB,CAE5C;AAED,iBAAS,YAAY,IAAI,OAAO,uBAAuB,CAEtD;AAED,iBAAS,gBAAgB,IAAI,OAAO,qBAAqB,CAExD;AAED,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvE,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAuC/E,eAAO,MAAM,0BAA0B,EAAE,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAWpG,CAAC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { z } from 'zod/mini';
|
|
2
2
|
import { type CheckRuleDefinition, pathAllowListGlobalSchema, pathAllowListPerPackageSchema } from '../rule.ts';
|
|
3
|
+
declare function ruleName(): 'noDuplicatedFiles';
|
|
4
|
+
declare function globalSchema(): typeof pathAllowListGlobalSchema;
|
|
5
|
+
declare function perPackageSchema(): typeof pathAllowListPerPackageSchema;
|
|
6
|
+
type RuleName = ReturnType<typeof ruleName>;
|
|
7
|
+
type GlobalConfig = Readonly<z.infer<ReturnType<typeof globalSchema>>>;
|
|
8
|
+
type PerPackageConfig = Readonly<z.infer<ReturnType<typeof perPackageSchema>>>;
|
|
9
|
+
export declare const noDuplicatedFilesRule: CheckRuleDefinition<RuleName, GlobalConfig, PerPackageConfig>;
|
|
3
10
|
export {};
|
|
4
11
|
//# sourceMappingURL=no-duplicated-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-duplicated-files.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-duplicated-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"no-duplicated-files.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-duplicated-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACH,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,6BAA6B,EAEhC,MAAM,YAAY,CAAC;AAIpB,iBAAS,QAAQ,IAAI,mBAAmB,CAEvC;AAED,iBAAS,YAAY,IAAI,OAAO,yBAAyB,CAExD;AAED,iBAAS,gBAAgB,IAAI,OAAO,6BAA6B,CAEhE;AAED,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvE,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AA2C/E,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAW/F,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { z } from 'zod/mini';
|
|
2
2
|
import { type CheckRuleDefinition } from '../rule.ts';
|
|
3
|
+
declare const ruleName = "noSideEffects";
|
|
4
|
+
declare const globalSchema: z.ZodMiniObject<{
|
|
5
|
+
allowList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
6
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
declare const perPackageSchema: z.ZodMiniObject<{
|
|
9
|
+
allowList: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
type GlobalConfig = Readonly<z.infer<typeof globalSchema>>;
|
|
12
|
+
type PerPackageConfig = Readonly<z.infer<typeof perPackageSchema>>;
|
|
13
|
+
export declare const noSideEffectsRule: CheckRuleDefinition<typeof ruleName, GlobalConfig, PerPackageConfig>;
|
|
3
14
|
export {};
|
|
4
15
|
//# sourceMappingURL=no-side-effects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-side-effects.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-side-effects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"no-side-effects.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-side-effects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAGH,KAAK,mBAAmB,EAE3B,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,QAAQ,kBAAkB,CAAC;AAEjC,QAAA,MAAM,YAAY;;;kBAA4B,CAAC;AAC/C,QAAA,MAAM,gBAAgB;;kBAAgC,CAAC;AAEvD,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAC3D,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AA8DnE,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,OAAO,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAKlG,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { z } from 'zod/mini';
|
|
2
2
|
import { emptyPerPackageSchema, enabledOnlyGlobalSchema, type CheckRuleDefinition } from '../rule.ts';
|
|
3
|
+
declare const ruleName = "noUnusedBundleDependencies";
|
|
4
|
+
type GlobalConfig = Readonly<z.infer<typeof enabledOnlyGlobalSchema>>;
|
|
5
|
+
type PerPackageConfig = Readonly<z.infer<typeof emptyPerPackageSchema>>;
|
|
6
|
+
export declare const noUnusedBundleDependenciesRule: CheckRuleDefinition<typeof ruleName, GlobalConfig, PerPackageConfig>;
|
|
3
7
|
export {};
|
|
4
8
|
//# sourceMappingURL=no-unused-bundle-dependencies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-unused-bundle-dependencies.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-unused-bundle-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"no-unused-bundle-dependencies.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/no-unused-bundle-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EACH,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,mBAAmB,EAG3B,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,QAAQ,+BAA+B,CAAC;AAE9C,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AACtE,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AA8BxE,eAAO,MAAM,8BAA8B,EAAE,mBAAmB,CAAC,OAAO,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAK/G,CAAC"}
|
|
@@ -6,4 +6,16 @@ import { noUnusedBundleDependenciesRule } from './no-unused-bundle-dependencies.
|
|
|
6
6
|
import { requiredFilesRule } from './required-files.ts';
|
|
7
7
|
import { type TypeScriptIntegrityDependencies, type TypeScriptIntegrityRule } from './type-script-integrity.ts';
|
|
8
8
|
import { uniqueTargetPathsRule } from './unique-target-paths.ts';
|
|
9
|
+
export type CheckRuleDependencies = TypeScriptIntegrityDependencies;
|
|
10
|
+
export type AllCheckRules = readonly [
|
|
11
|
+
TypeScriptIntegrityRule,
|
|
12
|
+
typeof noDuplicatedFilesRule,
|
|
13
|
+
typeof requiredFilesRule,
|
|
14
|
+
typeof maxBundleSizeRule,
|
|
15
|
+
typeof noUnusedBundleDependenciesRule,
|
|
16
|
+
typeof noDevDependencyImportsRule,
|
|
17
|
+
typeof uniqueTargetPathsRule,
|
|
18
|
+
typeof noSideEffectsRule
|
|
19
|
+
];
|
|
20
|
+
export declare function createAllRules(dependencies: CheckRuleDependencies): AllCheckRules;
|
|
9
21
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAEH,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG,+BAA+B,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG,SAAS;IACjC,uBAAuB;IACvB,OAAO,qBAAqB;IAC5B,OAAO,iBAAiB;IACxB,OAAO,iBAAiB;IACxB,OAAO,8BAA8B;IACrC,OAAO,0BAA0B;IACjC,OAAO,qBAAqB;IAC5B,OAAO,iBAAiB;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,YAAY,EAAE,qBAAqB,GAAG,aAAa,CAWjF"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod/mini';
|
|
2
2
|
import type { CheckRuleDefinition } from '../rule.ts';
|
|
3
|
+
declare const ruleName = "requiredFiles";
|
|
4
|
+
declare const globalSchema: z.ZodMiniObject<{
|
|
5
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
6
|
+
files: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
declare const perPackageSchema: z.ZodMiniObject<{
|
|
9
|
+
files: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
type GlobalConfig = Readonly<z.infer<typeof globalSchema>>;
|
|
12
|
+
type PerPackageConfig = Readonly<z.infer<typeof perPackageSchema>>;
|
|
13
|
+
export declare const requiredFilesRule: CheckRuleDefinition<typeof ruleName, GlobalConfig, PerPackageConfig>;
|
|
3
14
|
export {};
|
|
4
15
|
//# sourceMappingURL=required-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-files.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/required-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"required-files.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/required-files.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAG7B,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,YAAY,CAAC;AAEpE,QAAA,MAAM,QAAQ,kBAAkB,CAAC;AAIjC,QAAA,MAAM,YAAY;;;kBAGhB,CAAC;AAEH,QAAA,MAAM,gBAAgB;;kBAEpB,CAAC;AAEH,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAC3D,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAsCnE,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,OAAO,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAKlG,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { PublishedPackageWithManifest } from '../../published-package/published-package.ts';
|
|
2
2
|
import type { DeclarationProjectsFactory } from './type-script-declaration-project.ts';
|
|
3
|
+
export type DeclarationMode = 'all' | 'exports-graph';
|
|
4
|
+
export type DeclarationIntegritySummarizer = (packageName: string, publishedPackage: Readonly<PublishedPackageWithManifest>, declarationMode: DeclarationMode, resolutionPackages: ReadonlyMap<string, PublishedPackageWithManifest>) => readonly string[];
|
|
5
|
+
export type DeclarationIntegrityDependencies = {
|
|
6
|
+
readonly createDeclarationProjects: DeclarationProjectsFactory;
|
|
7
|
+
};
|
|
8
|
+
export declare function createDeclarationIntegritySummarizer(dependencies: DeclarationIntegrityDependencies): DeclarationIntegritySummarizer;
|
|
3
9
|
//# sourceMappingURL=type-script-declaration-integrity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-script-declaration-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-declaration-integrity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C;
|
|
1
|
+
{"version":3,"file":"type-script-declaration-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-declaration-integrity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEjG,OAAO,KAAK,EAGR,0BAA0B,EAG7B,MAAM,sCAAsC,CAAC;AAI9C,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,eAAe,CAAC;AAEtD,MAAM,MAAM,8BAA8B,GAAG,CACzC,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,QAAQ,CAAC,4BAA4B,CAAC,EACxD,eAAe,EAAE,eAAe,EAChC,kBAAkB,EAAE,WAAW,CAAC,MAAM,EAAE,4BAA4B,CAAC,KACpE,SAAS,MAAM,EAAE,CAAC;AAEvB,MAAM,MAAM,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,yBAAyB,EAAE,0BAA0B,CAAC;CAClE,CAAC;AA+EF,wBAAgB,oCAAoC,CAChD,YAAY,EAAE,gCAAgC,GAC/C,8BAA8B,CA2BhC"}
|
|
@@ -1,2 +1,29 @@
|
|
|
1
1
|
import { type FileSystemHost, type Project as TSMorphProject } from 'ts-morph';
|
|
2
|
+
export type PackageFile = {
|
|
3
|
+
readonly filePath: string;
|
|
4
|
+
readonly content: string;
|
|
5
|
+
};
|
|
6
|
+
export type ResolutionPackageFiles = {
|
|
7
|
+
readonly packageName: string;
|
|
8
|
+
readonly packageFiles: readonly PackageFile[];
|
|
9
|
+
};
|
|
10
|
+
export type DeclarationDiagnostic = {
|
|
11
|
+
readonly declarationPath: string;
|
|
12
|
+
readonly line: number;
|
|
13
|
+
readonly code: number;
|
|
14
|
+
readonly message: string;
|
|
15
|
+
};
|
|
16
|
+
export type DeclarationProject = {
|
|
17
|
+
readonly modeLabel: string;
|
|
18
|
+
readonly publicEntrypointPaths: readonly string[];
|
|
19
|
+
readonly moduleSpecifiersOf: (declarationPath: string) => readonly string[];
|
|
20
|
+
readonly listDiagnostics: () => readonly DeclarationDiagnostic[];
|
|
21
|
+
};
|
|
22
|
+
export type DeclarationProjectsFactory = (packageName: string, packageFiles: readonly PackageFile[], resolutionPackages: readonly ResolutionPackageFiles[]) => readonly DeclarationProject[];
|
|
23
|
+
export type DeclarationProjectDependencies = {
|
|
24
|
+
readonly Project: typeof TSMorphProject;
|
|
25
|
+
readonly fileSystemHost: FileSystemHost;
|
|
26
|
+
readonly packageResolutionBaseFolder: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function createDeclarationProjectFactory(dependencies: DeclarationProjectDependencies): DeclarationProjectsFactory;
|
|
2
29
|
//# sourceMappingURL=type-script-declaration-project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-script-declaration-project.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-declaration-project.ts"],"names":[],"mappings":"AACA,OAAO,EAOH,KAAK,cAAc,EACnB,KAAK,OAAO,IAAI,cAAc,EAEjC,MAAM,UAAU"}
|
|
1
|
+
{"version":3,"file":"type-script-declaration-project.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-declaration-project.ts"],"names":[],"mappings":"AACA,OAAO,EAOH,KAAK,cAAc,EACnB,KAAK,OAAO,IAAI,cAAc,EAEjC,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,kBAAkB,EAAE,CAAC,eAAe,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,CAAC;IAC5E,QAAQ,CAAC,eAAe,EAAE,MAAM,SAAS,qBAAqB,EAAE,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,CACrC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,SAAS,WAAW,EAAE,EACpC,kBAAkB,EAAE,SAAS,sBAAsB,EAAE,KACpD,SAAS,kBAAkB,EAAE,CAAC;AAEnC,MAAM,MAAM,8BAA8B,GAAG;IACzC,QAAQ,CAAC,OAAO,EAAE,OAAO,cAAc,CAAC;IACxC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,2BAA2B,EAAE,MAAM,CAAC;CAChD,CAAC;AA6LF,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,8BAA8B,GAC7C,0BAA0B,CAkG5B"}
|
|
@@ -2,5 +2,23 @@ import { z } from 'zod/mini';
|
|
|
2
2
|
import type { CheckRuleDefinition } from '../rule.ts';
|
|
3
3
|
import type { DeclarationIntegritySummarizer } from './type-script-declaration-integrity.ts';
|
|
4
4
|
import type { PackageResolutionAnalyzer } from './type-script-package-resolution.ts';
|
|
5
|
+
declare const ruleName = "typeScriptIntegrity";
|
|
6
|
+
declare const globalSchema: z.ZodMiniObject<{
|
|
7
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
8
|
+
declarations: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
9
|
+
all: "all";
|
|
10
|
+
"exports-graph": "exports-graph";
|
|
11
|
+
}>>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
declare const perPackageSchema: z.ZodMiniObject<{}, z.core.$strict>;
|
|
14
|
+
type GlobalConfig = Readonly<z.infer<typeof globalSchema>>;
|
|
15
|
+
type PerPackageConfig = Readonly<z.infer<typeof perPackageSchema>>;
|
|
16
|
+
export type TypeScriptIntegrityRule = CheckRuleDefinition<typeof ruleName, GlobalConfig, PerPackageConfig>;
|
|
17
|
+
export declare const typeScriptIntegritySchemas: Pick<TypeScriptIntegrityRule, 'globalSchema' | 'perPackageSchema'>;
|
|
18
|
+
export type TypeScriptIntegrityDependencies = {
|
|
19
|
+
readonly analyzePackageResolution: PackageResolutionAnalyzer;
|
|
20
|
+
readonly summarizeDeclarationIntegrity: DeclarationIntegritySummarizer;
|
|
21
|
+
};
|
|
22
|
+
export declare function createTypeScriptIntegrityRule(dependencies: TypeScriptIntegrityDependencies): TypeScriptIntegrityRule;
|
|
5
23
|
export {};
|
|
6
24
|
//# sourceMappingURL=type-script-integrity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-script-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-integrity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"type-script-integrity.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-integrity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,YAAY,CAAC;AACpE,OAAO,KAAK,EAAE,8BAA8B,EAAmB,MAAM,wCAAwC,CAAC;AAC9G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAGrF,QAAA,MAAM,QAAQ,wBAAwB,CAAC;AAKvC,QAAA,MAAM,YAAY;;;;;;kBAGhB,CAAC;AAEH,QAAA,MAAM,gBAAgB,qCAAqB,CAAC;AAE5C,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAC3D,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAOnE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,OAAO,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAE3G,eAAO,MAAM,0BAA0B,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAG,kBAAkB,CAGzG,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC1C,QAAQ,CAAC,wBAAwB,EAAE,yBAAyB,CAAC;IAC7D,QAAQ,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;CAC1E,CAAC;AAaF,wBAAgB,6BAA6B,CACzC,YAAY,EAAE,+BAA+B,GAC9C,uBAAuB,CA+DzB"}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import type { Analysis, CheckResult, Package as TypesPackage, Problem, ProblemKind, ResolutionKind } from '@arethetypeswrong/core';
|
|
2
2
|
import type { problemKindInfo as ProblemKindInfo } from '@arethetypeswrong/core/problems';
|
|
3
3
|
import type { PublishedPackageWithManifest } from '../../published-package/published-package.ts';
|
|
4
|
+
export type ResolutionProblemReport = {
|
|
5
|
+
readonly kind: ProblemKind;
|
|
6
|
+
readonly shortDescription: string;
|
|
7
|
+
readonly affectedResolutionKinds: readonly ResolutionKind[];
|
|
8
|
+
readonly affectedEntrypoints: readonly string[];
|
|
9
|
+
};
|
|
10
|
+
type AnalyzedResolutionReport = {
|
|
11
|
+
readonly kind: 'analyzed';
|
|
12
|
+
readonly entrypoints: readonly string[];
|
|
13
|
+
readonly problems: readonly ResolutionProblemReport[];
|
|
14
|
+
};
|
|
15
|
+
type MissingDeclarationsReport = {
|
|
16
|
+
readonly kind: 'missing-declarations';
|
|
17
|
+
};
|
|
18
|
+
export type PackageResolutionReport = AnalyzedResolutionReport | MissingDeclarationsReport;
|
|
19
|
+
export type PackageResolutionAnalyzer = (publishedPackage: Readonly<PublishedPackageWithManifest>, resolutionKinds: readonly ResolutionKind[]) => Promise<PackageResolutionReport>;
|
|
20
|
+
export type PackageResolutionDependencies = {
|
|
21
|
+
readonly Package: typeof TypesPackage;
|
|
22
|
+
readonly checkPackage: (typesPackage: TypesPackage) => Promise<CheckResult>;
|
|
23
|
+
readonly problemKindInfo: typeof ProblemKindInfo;
|
|
24
|
+
readonly problemAffectsResolutionKind: (problem: Problem, resolutionKind: ResolutionKind, analysis: Analysis) => boolean;
|
|
25
|
+
readonly problemAffectsEntrypointResolution: (problem: Problem, entrypoint: string, resolutionKind: ResolutionKind, analysis: Analysis) => boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function createPackageResolutionAnalyzer(dependencies: PackageResolutionDependencies): PackageResolutionAnalyzer;
|
|
4
28
|
export {};
|
|
5
29
|
//# sourceMappingURL=type-script-package-resolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-script-package-resolution.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-package-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,QAAQ,EACR,WAAW,EACX,OAAO,IAAI,YAAY,EACvB,OAAO,EACP,WAAW,EACX,cAAc,EACjB,MAAM,wBAAwB;
|
|
1
|
+
{"version":3,"file":"type-script-package-resolution.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/type-script-package-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,QAAQ,EACR,WAAW,EACX,OAAO,IAAI,YAAY,EACvB,OAAO,EACP,WAAW,EACX,cAAc,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAE1F,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAEjG,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,uBAAuB,EAAE,SAAS,cAAc,EAAE,CAAC;IAC5D,QAAQ,CAAC,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAC;CACzD,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,yBAAyB,CAAC;AAE3F,MAAM,MAAM,yBAAyB,GAAG,CACpC,gBAAgB,EAAE,QAAQ,CAAC,4BAA4B,CAAC,EACxD,eAAe,EAAE,SAAS,cAAc,EAAE,KACzC,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAEtC,MAAM,MAAM,6BAA6B,GAAG;IACxC,QAAQ,CAAC,OAAO,EAAE,OAAO,YAAY,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5E,QAAQ,CAAC,eAAe,EAAE,OAAO,eAAe,CAAC;IACjD,QAAQ,CAAC,4BAA4B,EAAE,CACnC,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,KACjB,OAAO,CAAC;IACb,QAAQ,CAAC,kCAAkC,EAAE,CACzC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,KACjB,OAAO,CAAC;CAChB,CAAC;AAmBF,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,6BAA6B,GAC5C,yBAAyB,CA6C3B"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { z } from 'zod/mini';
|
|
2
2
|
import { emptyPerPackageSchema, enabledOnlyGlobalSchema, type CheckRuleDefinition } from '../rule.ts';
|
|
3
|
+
declare const ruleName = "uniqueTargetPaths";
|
|
4
|
+
type GlobalConfig = Readonly<z.infer<typeof enabledOnlyGlobalSchema>>;
|
|
5
|
+
type PerPackageConfig = Readonly<z.infer<typeof emptyPerPackageSchema>>;
|
|
6
|
+
export declare const uniqueTargetPathsRule: CheckRuleDefinition<typeof ruleName, GlobalConfig, PerPackageConfig>;
|
|
3
7
|
export {};
|
|
4
8
|
//# sourceMappingURL=unique-target-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique-target-paths.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/unique-target-paths.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU;
|
|
1
|
+
{"version":3,"file":"unique-target-paths.d.ts","sourceRoot":"","sources":["../../../../../source/checks/rules/unique-target-paths.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EACH,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,mBAAmB,EAE3B,MAAM,YAAY,CAAC;AAEpB,QAAA,MAAM,QAAQ,sBAAsB,CAAC;AAErC,KAAK,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC;AACtE,KAAK,gBAAgB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC;AAgCxE,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,OAAO,QAAQ,EAAE,YAAY,EAAE,gBAAgB,CAKtG,CAAC"}
|