@savvy-web/tsdown-plugins 2.6.1 → 2.7.1

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.
Files changed (2) hide show
  1. package/index.d.ts +83 -83
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -39,7 +39,7 @@ type DualExports = boolean | ReadonlySet<string>;
39
39
  * input intact.
40
40
  * @public
41
41
  */
42
- declare function defaultManifestTransform({ pkg }: {
42
+ export declare function defaultManifestTransform({ pkg }: {
43
43
  pkg: Json;
44
44
  }): Json;
45
45
  /**
@@ -73,19 +73,19 @@ interface ExeRewrite {
73
73
  * verbatim regardless of the dts pass) are unaffected — their `types` condition is always kept.
74
74
  * @public
75
75
  */
76
- declare function transformExports(exports: unknown, dual?: DualExports, subdirExports?: ReadonlySet<string>, emitDts?: boolean): unknown;
76
+ export declare function transformExports(exports: unknown, dual?: DualExports, subdirExports?: ReadonlySet<string>, emitDts?: boolean): unknown;
77
77
  /**
78
78
  * Rewrite bin: TS targets to bin/[command].js (string to bin/cli.js); strip leading ./ otherwise.
79
79
  *
80
80
  * @public
81
81
  */
82
- declare function transformBin(bin: unknown): unknown;
82
+ export declare function transformBin(bin: unknown): unknown;
83
83
  /**
84
84
  * FINAL guard: strip leading ./ from bin paths (npm 11.x drops ./-prefixed bins).
85
85
  *
86
86
  * @public
87
87
  */
88
- declare function normalizeBinPaths(bin: unknown): unknown;
88
+ export declare function normalizeBinPaths(bin: unknown): unknown;
89
89
  /** @public */
90
90
  interface TransformManifestOptions {
91
91
  /** Run after the standard transforms, before the bin final-guard + sort. */
@@ -108,7 +108,7 @@ interface TransformManifestOptions {
108
108
  *
109
109
  * @public
110
110
  */
111
- declare function transformManifest(pkg: Json, options?: TransformManifestOptions): Json;
111
+ export declare function transformManifest(pkg: Json, options?: TransformManifestOptions): Json;
112
112
  //#endregion
113
113
  //#region src/manifest/emit-manifest.d.ts
114
114
  /** @public */
@@ -141,7 +141,7 @@ interface BuildEmittedManifestOptions {
141
141
  *
142
142
  * @public
143
143
  */
144
- declare function buildEmittedManifest(options: BuildEmittedManifestOptions): Promise<Json>;
144
+ export declare function buildEmittedManifest(options: BuildEmittedManifestOptions): Promise<Json>;
145
145
  /** @public */
146
146
  interface EmitManifestOptions {
147
147
  readonly targetGroup: TargetGroupRef;
@@ -166,14 +166,14 @@ interface EmitManifestOptions {
166
166
  *
167
167
  * @public
168
168
  */
169
- declare function emitManifest(options: EmitManifestOptions): Plugin;
169
+ export declare function emitManifest(options: EmitManifestOptions): Plugin;
170
170
  //#endregion
171
171
  //#region src/report/schema.d.ts
172
172
  declare const ReportTimings_base: Schema.Class<ReportTimings, Schema.Struct<{
173
173
  readonly totalMs: Schema.Number;
174
174
  }>, {}>;
175
175
  /** @public */
176
- declare class ReportTimings extends ReportTimings_base {}
176
+ export declare class ReportTimings extends ReportTimings_base {}
177
177
  declare const DiagnosticEntry_base: Schema.Class<DiagnosticEntry, Schema.Struct<{
178
178
  readonly source: Schema.Literals<readonly ["tsdown", "rolldown", "api-extractor", "meta"]>;
179
179
  readonly level: Schema.Literals<readonly ["warn", "error"]>;
@@ -257,7 +257,7 @@ interface DiagnosticInput {
257
257
  * `snapshot` builds the immutable BuildReport the Effect render pipeline consumes.
258
258
  * @public
259
259
  */
260
- declare class BuildCollector {
260
+ export declare class BuildCollector {
261
261
  private readonly groups;
262
262
  private group;
263
263
  private pass;
@@ -271,7 +271,7 @@ declare class BuildCollector {
271
271
  }
272
272
  declare const BuildCollectorTag_base: Context.ServiceClass<BuildCollectorTag, "@savvy-web/tsdown-plugins/BuildCollector", BuildCollector>;
273
273
  /** @public */
274
- declare class BuildCollectorTag extends BuildCollectorTag_base {}
274
+ export declare class BuildCollectorTag extends BuildCollectorTag_base {}
275
275
  //#endregion
276
276
  //#region src/build/target-groups.d.ts
277
277
  /**
@@ -427,7 +427,7 @@ interface DerivedTsdownOptions {
427
427
  *
428
428
  * @public
429
429
  */
430
- declare function deriveTargetGroupOptions(options: DeriveOptions): DerivedTsdownOptions;
430
+ export declare function deriveTargetGroupOptions(options: DeriveOptions): DerivedTsdownOptions;
431
431
  //#endregion
432
432
  //#region src/build/loose-files.d.ts
433
433
  /**
@@ -474,7 +474,7 @@ interface NormalizedLooseFile {
474
474
  * surfaces it as a typed, fast-fail config error.
475
475
  * @public
476
476
  */
477
- declare function normalizeLooseFiles(files: LooseFiles): ReadonlyArray<NormalizedLooseFile>;
477
+ export declare function normalizeLooseFiles(files: LooseFiles): ReadonlyArray<NormalizedLooseFile>;
478
478
  //#endregion
479
479
  //#region src/build/build-target-groups.d.ts
480
480
  /**
@@ -667,7 +667,7 @@ interface BuildTargetGroupsOptions {
667
667
  * already makes. Scoped to that flag alone; every other build's JS pass is unaffected.
668
668
  * @public
669
669
  */
670
- declare function buildTargetGroups(options: BuildTargetGroupsOptions): Promise<void>;
670
+ export declare function buildTargetGroups(options: BuildTargetGroupsOptions): Promise<void>;
671
671
  //#endregion
672
672
  //#region src/build/cjs-default-interop.d.ts
673
673
  /**
@@ -688,7 +688,7 @@ declare function buildTargetGroups(options: BuildTargetGroupsOptions): Promise<v
688
688
  * runtime no-op whenever the static gate is ever too generous.
689
689
  * @public
690
690
  */
691
- declare function cjsDefaultInterop(): Plugin;
691
+ export declare function cjsDefaultInterop(): Plugin;
692
692
  //#endregion
693
693
  //#region src/build/node-builtin-default-interop.d.ts
694
694
  /**
@@ -736,7 +736,7 @@ declare function cjsDefaultInterop(): Plugin;
736
736
  * resolves to the same members), so the plugin is safe to attach to dual builds.
737
737
  * @public
738
738
  */
739
- declare function nodeBuiltinDefaultInterop(): Plugin;
739
+ export declare function nodeBuiltinDefaultInterop(): Plugin;
740
740
  //#endregion
741
741
  //#region src/build/strip-maps.d.ts
742
742
  /**
@@ -754,7 +754,7 @@ declare function nodeBuiltinDefaultInterop(): Plugin;
754
754
  * vendored tree — only the package's own emitted declarations carry maps worth stripping.
755
755
  * @public
756
756
  */
757
- declare function removeDeclarationMaps(pkgDir: string): string[];
757
+ export declare function removeDeclarationMaps(pkgDir: string): string[];
758
758
  //#endregion
759
759
  //#region src/errors.d.ts
760
760
  declare const MetaGenerationError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -765,7 +765,7 @@ declare const MetaGenerationError_base: new <A extends Record<string, any> = {}>
765
765
  *
766
766
  * @public
767
767
  */
768
- declare class MetaGenerationError extends MetaGenerationError_base<{
768
+ export declare class MetaGenerationError extends MetaGenerationError_base<{
769
769
  readonly entry: string;
770
770
  readonly reason: string;
771
771
  }> {
@@ -779,7 +779,7 @@ declare const ConfigValidationError_base: new <A extends Record<string, any> = {
779
779
  *
780
780
  * @public
781
781
  */
782
- declare class ConfigValidationError extends ConfigValidationError_base<{
782
+ export declare class ConfigValidationError extends ConfigValidationError_base<{
783
783
  readonly path: string;
784
784
  readonly reason: string;
785
785
  }> {
@@ -794,7 +794,7 @@ declare const TsdoctorEmitError_base: new <A extends Record<string, any> = {}>(a
794
794
  *
795
795
  * @public
796
796
  */
797
- declare class TsdoctorEmitError extends TsdoctorEmitError_base<{
797
+ export declare class TsdoctorEmitError extends TsdoctorEmitError_base<{
798
798
  readonly packageName: string;
799
799
  readonly path: string;
800
800
  readonly cause: unknown;
@@ -831,13 +831,13 @@ interface ExtractResult {
831
831
  *
832
832
  * @internal
833
833
  */
834
- declare const createEntryName: (exportKey: string, exportsAsIndexes: boolean) => string;
834
+ export declare const createEntryName: (exportKey: string, exportsAsIndexes: boolean) => string;
835
835
  /** @public */
836
- declare function extractEntries(pkg: PackageJsonLike, options?: ExtractOptions): ExtractResult;
836
+ export declare function extractEntries(pkg: PackageJsonLike, options?: ExtractOptions): ExtractResult;
837
837
  //#endregion
838
838
  //#region src/entry/ambient-dts.d.ts
839
839
  /** The declaration-file extension of a path, or undefined when it is not a declaration file. @public */
840
- declare function declarationExt(p: string): ".d.ts" | ".d.cts" | ".d.mts" | undefined;
840
+ export declare function declarationExt(p: string): ".d.ts" | ".d.cts" | ".d.mts" | undefined;
841
841
  /** Classification of a single export value for ambient-.d.ts handling. @public */
842
842
  type DtsExportClass = {
843
843
  readonly kind: "ambient";
@@ -854,14 +854,14 @@ type DtsExportClass = {
854
854
  * - `none` — anything else (normal runtime export, json, etc.).
855
855
  * @public
856
856
  */
857
- declare function classifyDtsExport(value: unknown): DtsExportClass;
857
+ export declare function classifyDtsExport(value: unknown): DtsExportClass;
858
858
  /**
859
859
  * Output basename (including the preserved declaration extension) for an ambient export, derived
860
860
  * from the export KEY — consistent with how JS entries are named. @public
861
861
  */
862
- declare function ambientOutName(exportKey: string, source: string, exportsAsIndexes?: boolean): string;
862
+ export declare function ambientOutName(exportKey: string, source: string, exportsAsIndexes?: boolean): string;
863
863
  /** The shared mixed-export error (Decision 2), used by both the extractor and the manifest transform. @public */
864
- declare function mixedDtsExportError(exportKey: string): ConfigValidationError;
864
+ export declare function mixedDtsExportError(exportKey: string): ConfigValidationError;
865
865
  /** One ambient `.d.ts` export resolved for copy + manifest. @public */
866
866
  interface AmbientDtsEntry {
867
867
  readonly exportKey: string;
@@ -877,13 +877,13 @@ interface ExtractAmbientOptions {
877
877
  * Throws {@link ConfigValidationError} on a mixed export (Decision 2) or an ambient-vs-ambient
878
878
  * output-name collision. @public
879
879
  */
880
- declare function extractAmbientDts(pkg: PackageJsonLike, options?: ExtractAmbientOptions): ReadonlyArray<AmbientDtsEntry>;
880
+ export declare function extractAmbientDts(pkg: PackageJsonLike, options?: ExtractAmbientOptions): ReadonlyArray<AmbientDtsEntry>;
881
881
  /**
882
882
  * Throw {@link ConfigValidationError} if any ambient output name collides with a JS build-entry name.
883
883
  * The JS entry names carry no extension, so each ambient `outName` is compared with its declaration
884
884
  * extension stripped. @public
885
885
  */
886
- declare function assertNoEntryCollisions(jsEntryNames: ReadonlyArray<string>, ambient: ReadonlyArray<AmbientDtsEntry>): void;
886
+ export declare function assertNoEntryCollisions(jsEntryNames: ReadonlyArray<string>, ambient: ReadonlyArray<AmbientDtsEntry>): void;
887
887
  //#endregion
888
888
  //#region src/build/sync-public.d.ts
889
889
  /**
@@ -902,7 +902,7 @@ declare function assertNoEntryCollisions(jsEntryNames: ReadonlyArray<string>, am
902
902
  * {@link ConfigValidationError} rather than clobbering it or surfacing a raw fs error.
903
903
  * @public
904
904
  */
905
- declare function copyPublicDir(sourceDir: string, outDir: string): void;
905
+ export declare function copyPublicDir(sourceDir: string, outDir: string): void;
906
906
  /** @public */
907
907
  interface CopyAmbientDtsOptions {
908
908
  /** The ambient exports to copy (from `extractAmbientDts`). */
@@ -921,7 +921,7 @@ interface CopyAmbientDtsOptions {
921
921
  * Throws {@link ConfigValidationError} on a missing source or any relative specifier.
922
922
  * @public
923
923
  */
924
- declare function copyAmbientDts(options: CopyAmbientDtsOptions): void;
924
+ export declare function copyAmbientDts(options: CopyAmbientDtsOptions): void;
925
925
  //#endregion
926
926
  //#region src/catalog/resolve-catalogs.d.ts
927
927
  /**
@@ -953,7 +953,7 @@ interface ManifestLike {
953
953
  * resolution mechanism itself fails.
954
954
  * @public
955
955
  */
956
- declare function resolveManifest(pkg: ManifestLike): Promise<ManifestLike>;
956
+ export declare function resolveManifest(pkg: ManifestLike): Promise<ManifestLike>;
957
957
  //#endregion
958
958
  //#region src/changesets/next-versions.d.ts
959
959
  /**
@@ -977,7 +977,7 @@ interface NextVersions {
977
977
  * versions (or an empty map).
978
978
  * @public
979
979
  */
980
- declare function resolveNextVersions(cwd: string): Promise<NextVersions>;
980
+ export declare function resolveNextVersions(cwd: string): Promise<NextVersions>;
981
981
  //#endregion
982
982
  //#region src/exe/config.d.ts
983
983
  /**
@@ -985,7 +985,7 @@ declare function resolveNextVersions(cwd: string): Promise<NextVersions>;
985
985
  *
986
986
  * @public
987
987
  */
988
- declare const DEFAULT_EXE_NODE_VERSION = "25.9.0";
988
+ export declare const DEFAULT_EXE_NODE_VERSION = "25.9.0";
989
989
  /**
990
990
  * A resolved per-platform SEA target. `platform` uses the tsdown/\@tsdown/exe token (win, not win32).
991
991
  *
@@ -1063,7 +1063,7 @@ interface PkgOsCpu {
1063
1063
  * config-validation layer.
1064
1064
  * @public
1065
1065
  */
1066
- declare function normalizeExeOptions(exe: ExeConfig | ReadonlyArray<ExeConfig>, pkg: PkgOsCpu): ReadonlyArray<NormalizedExe>;
1066
+ export declare function normalizeExeOptions(exe: ExeConfig | ReadonlyArray<ExeConfig>, pkg: PkgOsCpu): ReadonlyArray<NormalizedExe>;
1067
1067
  //#endregion
1068
1068
  //#region src/meta/tsdoctor-config.d.ts
1069
1069
  /**
@@ -1182,7 +1182,7 @@ interface NormalizedMeta {
1182
1182
  *
1183
1183
  * @public
1184
1184
  */
1185
- declare function normalizeMetaOptions(meta: MetaOptions, env?: {
1185
+ export declare function normalizeMetaOptions(meta: MetaOptions, env?: {
1186
1186
  CI?: string | undefined;
1187
1187
  GITHUB_ACTIONS?: string | undefined;
1188
1188
  }): NormalizedMeta;
@@ -1255,7 +1255,7 @@ interface TargetResolution {
1255
1255
  *
1256
1256
  * @public
1257
1257
  */
1258
- declare function isTargetObject(value: PublishTargetValue): value is PublishTargetObject;
1258
+ export declare function isTargetObject(value: PublishTargetValue): value is PublishTargetObject;
1259
1259
  //#endregion
1260
1260
  //#region src/config-validation/ConfigValidator.d.ts
1261
1261
  /**
@@ -1285,7 +1285,7 @@ declare const ConfigValidator_base: Context.ServiceClass<ConfigValidator, "@savv
1285
1285
  *
1286
1286
  * @public
1287
1287
  */
1288
- declare class ConfigValidator extends ConfigValidator_base {
1288
+ export declare class ConfigValidator extends ConfigValidator_base {
1289
1289
  static readonly layer: Layer.Layer<ConfigValidator>;
1290
1290
  }
1291
1291
  //#endregion
@@ -1329,7 +1329,7 @@ interface ModuleExportNames {
1329
1329
  *
1330
1330
  * @public
1331
1331
  */
1332
- declare function analyzeReexportBarrel(source: string, fileName?: string): ReexportBarrelAnalysis;
1332
+ export declare function analyzeReexportBarrel(source: string, fileName?: string): ReexportBarrelAnalysis;
1333
1333
  /**
1334
1334
  * Collect every name a module exports (named re-exports, namespace re-exports, and local `export`
1335
1335
  * declarations). Used to test whether a barrel's re-exports are a strict subset of a base entry, so
@@ -1337,7 +1337,7 @@ declare function analyzeReexportBarrel(source: string, fileName?: string): Reexp
1337
1337
  *
1338
1338
  * @public
1339
1339
  */
1340
- declare function collectExportNames(source: string, fileName?: string): ModuleExportNames;
1340
+ export declare function collectExportNames(source: string, fileName?: string): ModuleExportNames;
1341
1341
  /**
1342
1342
  * Render a thin re-export-stub `.d.ts`/`.d.cts` body: named re-exports of `valueNames` and
1343
1343
  * `typeNames` from `baseSpecifier` (the published file of the base entry, e.g. `./index.js` for the
@@ -1346,14 +1346,14 @@ declare function collectExportNames(source: string, fileName?: string): ModuleEx
1346
1346
  *
1347
1347
  * @public
1348
1348
  */
1349
- declare function renderReexportStub(options: {
1349
+ export declare function renderReexportStub(options: {
1350
1350
  readonly valueNames: ReadonlyArray<string>;
1351
1351
  readonly typeNames: ReadonlyArray<string>;
1352
1352
  readonly baseSpecifier: string;
1353
1353
  }): string;
1354
1354
  //#endregion
1355
1355
  //#region src/dts/relative-imports.d.ts
1356
- declare function findRelativeSpecifiers(source: string, fileName?: string): string[];
1356
+ export declare function findRelativeSpecifiers(source: string, fileName?: string): string[];
1357
1357
  //#endregion
1358
1358
  //#region src/dts/resolved-tsconfig.d.ts
1359
1359
  /** @public */
@@ -1388,13 +1388,13 @@ interface ResolvedTsconfig {
1388
1388
  *
1389
1389
  * @public
1390
1390
  */
1391
- declare function buildResolvedTsconfig(options: ResolvedTsconfigOptions): ResolvedTsconfig;
1391
+ export declare function buildResolvedTsconfig(options: ResolvedTsconfigOptions): ResolvedTsconfig;
1392
1392
  /**
1393
1393
  * Write the resolved tsconfig to a temp file and return its absolute path.
1394
1394
  *
1395
1395
  * @public
1396
1396
  */
1397
- declare function writeResolvedTsconfig(options: ResolvedTsconfigOptions): string;
1397
+ export declare function writeResolvedTsconfig(options: ResolvedTsconfigOptions): string;
1398
1398
  /**
1399
1399
  * Derive a dts-EMIT variant of an already-written resolved tsconfig that adds
1400
1400
  * `stableTypeOrdering: true`, and return its path. This makes the TypeScript declaration emitter
@@ -1411,7 +1411,7 @@ declare function writeResolvedTsconfig(options: ResolvedTsconfigOptions): string
1411
1411
  *
1412
1412
  * @public
1413
1413
  */
1414
- declare function writeDtsEmitTsconfig(resolvedTsconfigPath: string): string;
1414
+ export declare function writeDtsEmitTsconfig(resolvedTsconfigPath: string): string;
1415
1415
  //#endregion
1416
1416
  //#region src/entry/package-json-entries.d.ts
1417
1417
  /** @public */
@@ -1426,7 +1426,7 @@ interface PackageJsonEntriesOptions extends ExtractOptions {
1426
1426
  *
1427
1427
  * @public
1428
1428
  */
1429
- declare function packageJsonEntries(options?: PackageJsonEntriesOptions): Record<string, string>;
1429
+ export declare function packageJsonEntries(options?: PackageJsonEntriesOptions): Record<string, string>;
1430
1430
  //#endregion
1431
1431
  //#region src/exe/build.d.ts
1432
1432
  /**
@@ -1460,7 +1460,7 @@ interface RunExeBuildOptions {
1460
1460
  *
1461
1461
  * @public
1462
1462
  */
1463
- declare function runExeBuild(options: RunExeBuildOptions): Promise<void>;
1463
+ export declare function runExeBuild(options: RunExeBuildOptions): Promise<void>;
1464
1464
  //#endregion
1465
1465
  //#region src/exe/filename.d.ts
1466
1466
  /**
@@ -1469,7 +1469,7 @@ declare function runExeBuild(options: RunExeBuildOptions): Promise<void>;
1469
1469
  * Single source of truth so the manifest value never drifts from the on-disk file.
1470
1470
  * @public
1471
1471
  */
1472
- declare function computeExeFileName(fileName: string, target: ExeTarget): string;
1472
+ export declare function computeExeFileName(fileName: string, target: ExeTarget): string;
1473
1473
  //#endregion
1474
1474
  //#region src/jsx/config.d.ts
1475
1475
  /**
@@ -1500,14 +1500,14 @@ interface TsconfigJsx {
1500
1500
  * no JSX transform is needed (preserve/none).
1501
1501
  * @public
1502
1502
  */
1503
- declare function resolveJsxConfig(tsconfig: TsconfigJsx, override: JsxConfig | undefined): JsxConfig | undefined;
1503
+ export declare function resolveJsxConfig(tsconfig: TsconfigJsx, override: JsxConfig | undefined): JsxConfig | undefined;
1504
1504
  /**
1505
1505
  * Read the jsx-relevant compilerOptions from a package's own tsconfig.json (best-effort;
1506
1506
  * returns empty on absence or parse error). Resolved through `@effected/tsconfig-json`'s
1507
1507
  * sync loader, so JSONC syntax and `extends` chains are honored.
1508
1508
  * @public
1509
1509
  */
1510
- declare function readTsconfigJsx(cwd: string): TsconfigJsx;
1510
+ export declare function readTsconfigJsx(cwd: string): TsconfigJsx;
1511
1511
  //#endregion
1512
1512
  //#region src/meta/tsdoctor-manifest.d.ts
1513
1513
  /**
@@ -1553,7 +1553,7 @@ interface ManifestRepository {
1553
1553
  *
1554
1554
  * @public
1555
1555
  */
1556
- declare function githubOwnerRepo(url: string): {
1556
+ export declare function githubOwnerRepo(url: string): {
1557
1557
  readonly owner: string;
1558
1558
  readonly repo: string;
1559
1559
  } | undefined;
@@ -1563,7 +1563,7 @@ declare function githubOwnerRepo(url: string): {
1563
1563
  *
1564
1564
  * @public
1565
1565
  */
1566
- declare function registriesFromTargets(input: Pick<ComposeManifestInput, "targets" | "packageName" | "isPrivate" | "repository">): ReadonlyArray<RegistryRef>;
1566
+ export declare function registriesFromTargets(input: Pick<ComposeManifestInput, "targets" | "packageName" | "isPrivate" | "repository">): ReadonlyArray<RegistryRef>;
1567
1567
  /**
1568
1568
  * Flatten the three authoring tiers into the emitted manifest. Pure.
1569
1569
  *
@@ -1576,13 +1576,13 @@ declare function registriesFromTargets(input: Pick<ComposeManifestInput, "target
1576
1576
  *
1577
1577
  * @public
1578
1578
  */
1579
- declare function composeTsdoctorManifest(input: ComposeManifestInput): BundleManifest | undefined;
1579
+ export declare function composeTsdoctorManifest(input: ComposeManifestInput): BundleManifest | undefined;
1580
1580
  /**
1581
1581
  * What the generator sees. Built from the same tiers as the manifest.
1582
1582
  *
1583
1583
  * @public
1584
1584
  */
1585
- declare function ogImageInfoOf(input: ComposeManifestInput & {
1585
+ export declare function ogImageInfoOf(input: ComposeManifestInput & {
1586
1586
  readonly version: string;
1587
1587
  }): OgImageInfo;
1588
1588
  //#endregion
@@ -1647,7 +1647,7 @@ interface MetaResult {
1647
1647
  * published-package artifact and is written into `dtsDir` (the built pkg/), not the meta bundle.
1648
1648
  * @public
1649
1649
  */
1650
- declare function generateMeta(options: GenerateMetaOptions): Promise<MetaResult>;
1650
+ export declare function generateMeta(options: GenerateMetaOptions): Promise<MetaResult>;
1651
1651
  //#endregion
1652
1652
  //#region src/meta/og-image.d.ts
1653
1653
  declare const OgGenerateError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1659,7 +1659,7 @@ declare const OgGenerateError_base: new <A extends Record<string, any> = {}>(arg
1659
1659
  *
1660
1660
  * @public
1661
1661
  */
1662
- declare class OgGenerateError extends OgGenerateError_base<{
1662
+ export declare class OgGenerateError extends OgGenerateError_base<{
1663
1663
  readonly packageName: string;
1664
1664
  readonly cause: unknown;
1665
1665
  }> {
@@ -1683,7 +1683,7 @@ interface WriteGeneratedOgImageOptions {
1683
1683
  *
1684
1684
  * @public
1685
1685
  */
1686
- declare function writeGeneratedOgImage(options: WriteGeneratedOgImageOptions): Promise<OpenGraphImage>;
1686
+ export declare function writeGeneratedOgImage(options: WriteGeneratedOgImageOptions): Promise<OpenGraphImage>;
1687
1687
  //#endregion
1688
1688
  //#region src/meta/optimistic.d.ts
1689
1689
  /**
@@ -1693,7 +1693,7 @@ declare function writeGeneratedOgImage(options: WriteGeneratedOgImageOptions): P
1693
1693
  * are left as-is.
1694
1694
  * @public
1695
1695
  */
1696
- declare function rewriteMetaVersions(pkg: Record<string, unknown>, versions: ReadonlyMap<string, string>, selfName: string): Record<string, unknown>;
1696
+ export declare function rewriteMetaVersions(pkg: Record<string, unknown>, versions: ReadonlyMap<string, string>, selfName: string): Record<string, unknown>;
1697
1697
  //#endregion
1698
1698
  //#region src/meta/tsdoctor-source.d.ts
1699
1699
  declare const TsdoctorSourceError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
@@ -1705,7 +1705,7 @@ declare const TsdoctorSourceError_base: new <A extends Record<string, any> = {}>
1705
1705
  *
1706
1706
  * @public
1707
1707
  */
1708
- declare class TsdoctorSourceError extends TsdoctorSourceError_base<{
1708
+ export declare class TsdoctorSourceError extends TsdoctorSourceError_base<{
1709
1709
  readonly path: string;
1710
1710
  readonly cause: unknown;
1711
1711
  }> {
@@ -1733,7 +1733,7 @@ interface TsdoctorSources {
1733
1733
  *
1734
1734
  * @public
1735
1735
  */
1736
- declare function loadTsdoctorSources(cwd: string): Promise<TsdoctorSources>;
1736
+ export declare function loadTsdoctorSources(cwd: string): Promise<TsdoctorSources>;
1737
1737
  //#endregion
1738
1738
  //#region src/meta/run-pass.d.ts
1739
1739
  /**
@@ -1781,19 +1781,19 @@ interface RunMetaPassOptions {
1781
1781
  * next-versions, and calls generateMeta once per publish group.
1782
1782
  * @public
1783
1783
  */
1784
- declare function runMetaPass(o: RunMetaPassOptions): Promise<void>;
1784
+ export declare function runMetaPass(o: RunMetaPassOptions): Promise<void>;
1785
1785
  /**
1786
1786
  * Map entry names to export paths using the package exports map. index maps to ".".
1787
1787
  *
1788
1788
  * @public
1789
1789
  */
1790
- declare function deriveExportPaths(entries: Record<string, string>, exportsMap: Record<string, string> | undefined): Record<string, string>;
1790
+ export declare function deriveExportPaths(entries: Record<string, string>, exportsMap: Record<string, string> | undefined): Record<string, string>;
1791
1791
  /**
1792
1792
  * For each `outSubdir` override, point its meta entry at the isolated sub-package barrel.
1793
1793
  *
1794
1794
  * @public
1795
1795
  */
1796
- declare function applySubdirMetaEntries(overrides: ReadonlyArray<{
1796
+ export declare function applySubdirMetaEntries(overrides: ReadonlyArray<{
1797
1797
  entries: ReadonlyArray<string>;
1798
1798
  outSubdir?: string | undefined;
1799
1799
  }> | undefined, dtsBasenames: Record<string, string>, exportPaths: Record<string, string>): void;
@@ -1850,7 +1850,7 @@ interface PortableTsconfig {
1850
1850
  *
1851
1851
  * @public
1852
1852
  */
1853
- declare function resolvePortableTsconfig(cwd: string, fallbackConfigPath?: string): PortableTsconfig;
1853
+ export declare function resolvePortableTsconfig(cwd: string, fallbackConfigPath?: string): PortableTsconfig;
1854
1854
  //#endregion
1855
1855
  //#region src/report/formatters/types.d.ts
1856
1856
  /** @public */
@@ -1872,23 +1872,23 @@ interface Formatter {
1872
1872
  //#endregion
1873
1873
  //#region src/report/formatters/ci-annotations.d.ts
1874
1874
  /** @public */
1875
- declare const CiAnnotationsFormatter: Formatter;
1875
+ export declare const CiAnnotationsFormatter: Formatter;
1876
1876
  //#endregion
1877
1877
  //#region src/report/formatters/json.d.ts
1878
1878
  /** @public */
1879
- declare const JsonFormatter: Formatter;
1879
+ export declare const JsonFormatter: Formatter;
1880
1880
  //#endregion
1881
1881
  //#region src/report/formatters/markdown.d.ts
1882
1882
  /** @public */
1883
- declare const MarkdownFormatter: Formatter;
1883
+ export declare const MarkdownFormatter: Formatter;
1884
1884
  //#endregion
1885
1885
  //#region src/report/formatters/silent.d.ts
1886
1886
  /** @public */
1887
- declare const SilentFormatter: Formatter;
1887
+ export declare const SilentFormatter: Formatter;
1888
1888
  //#endregion
1889
1889
  //#region src/report/formatters/terminal.d.ts
1890
1890
  /** @public */
1891
- declare const TerminalFormatter: Formatter;
1891
+ export declare const TerminalFormatter: Formatter;
1892
1892
  //#endregion
1893
1893
  //#region src/report/issues-artifact.d.ts
1894
1894
  /**
@@ -1945,7 +1945,7 @@ interface BuildIssues {
1945
1945
  *
1946
1946
  * @public
1947
1947
  */
1948
- declare function flattenIssues(reports: ReadonlyArray<BuildReport>, opts: {
1948
+ export declare function flattenIssues(reports: ReadonlyArray<BuildReport>, opts: {
1949
1949
  target: "dev" | "prod";
1950
1950
  generatedAt: string;
1951
1951
  buildOk?: boolean | undefined;
@@ -1959,7 +1959,7 @@ declare function flattenIssues(reports: ReadonlyArray<BuildReport>, opts: {
1959
1959
  *
1960
1960
  * @public
1961
1961
  */
1962
- declare function serializeIssues(issues: BuildIssues): string;
1962
+ export declare function serializeIssues(issues: BuildIssues): string;
1963
1963
  /**
1964
1964
  * Write the aggregated issues artifact to `<cwd>/dist/<target>/issues.json`. Returns the path written.
1965
1965
  *
@@ -1970,7 +1970,7 @@ declare function serializeIssues(issues: BuildIssues): string;
1970
1970
  *
1971
1971
  * @public
1972
1972
  */
1973
- declare function writeIssuesArtifact(opts: {
1973
+ export declare function writeIssuesArtifact(opts: {
1974
1974
  cwd: string;
1975
1975
  target: "dev" | "prod";
1976
1976
  reports: ReadonlyArray<BuildReport>;
@@ -1995,7 +1995,7 @@ declare function writeIssuesArtifact(opts: {
1995
1995
  * there.
1996
1996
  * @public
1997
1997
  */
1998
- declare function buildMetricsPlugin(collector: BuildCollector, groupId: string, pass: PassKind, verbose: boolean, suppressMixedExports?: boolean): Plugin;
1998
+ export declare function buildMetricsPlugin(collector: BuildCollector, groupId: string, pass: PassKind, verbose: boolean, suppressMixedExports?: boolean): Plugin;
1999
1999
  //#endregion
2000
2000
  //#region src/report/services/EnvironmentDetector.d.ts
2001
2001
  /** @public */
@@ -2004,7 +2004,7 @@ declare const EnvironmentDetector_base: Context.ServiceClass<EnvironmentDetector
2004
2004
  readonly detect: () => Effect.Effect<Environment>;
2005
2005
  }>;
2006
2006
  /** @public */
2007
- declare class EnvironmentDetector extends EnvironmentDetector_base {
2007
+ export declare class EnvironmentDetector extends EnvironmentDetector_base {
2008
2008
  static readonly layer: Layer.Layer<EnvironmentDetector>;
2009
2009
  }
2010
2010
  //#endregion
@@ -2015,7 +2015,7 @@ declare const ExecutorResolver_base: Context.ServiceClass<ExecutorResolver, "@sa
2015
2015
  readonly resolve: (env: Environment) => Effect.Effect<Executor>;
2016
2016
  }>;
2017
2017
  /** @public */
2018
- declare class ExecutorResolver extends ExecutorResolver_base {
2018
+ export declare class ExecutorResolver extends ExecutorResolver_base {
2019
2019
  static readonly layer: Layer.Layer<ExecutorResolver>;
2020
2020
  }
2021
2021
  //#endregion
@@ -2026,7 +2026,7 @@ declare const FormatSelector_base: Context.ServiceClass<FormatSelector, "@savvy-
2026
2026
  readonly select: (executor: Executor, explicit?: OutputFormat, env?: Environment) => Effect.Effect<OutputFormat>;
2027
2027
  }>;
2028
2028
  /** @public */
2029
- declare class FormatSelector extends FormatSelector_base {
2029
+ export declare class FormatSelector extends FormatSelector_base {
2030
2030
  static readonly layer: Layer.Layer<FormatSelector>;
2031
2031
  }
2032
2032
  //#endregion
@@ -2035,13 +2035,13 @@ declare const OutputRenderer_base: Context.ServiceClass<OutputRenderer, "@savvy-
2035
2035
  readonly render: (reports: ReadonlyArray<BuildReport>, format: OutputFormat, ctx: FormatterContext) => Effect.Effect<ReadonlyArray<RenderedOutput>>;
2036
2036
  }>;
2037
2037
  /** @public */
2038
- declare class OutputRenderer extends OutputRenderer_base {
2038
+ export declare class OutputRenderer extends OutputRenderer_base {
2039
2039
  static readonly layer: Layer.Layer<OutputRenderer>;
2040
2040
  }
2041
2041
  //#endregion
2042
2042
  //#region src/report/pipeline.d.ts
2043
2043
  /** @public */
2044
- declare const ReportPipeline: Layer.Layer<EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer, never, never>;
2044
+ export declare const ReportPipeline: Layer.Layer<EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer, never, never>;
2045
2045
  /** @public */
2046
2046
  interface RenderReportOptions {
2047
2047
  readonly explicitFormat?: OutputFormat;
@@ -2051,11 +2051,11 @@ interface RenderReportOptions {
2051
2051
  readonly verbose?: boolean;
2052
2052
  }
2053
2053
  /** @public */
2054
- declare const renderReport: (reports: ReadonlyArray<BuildReport>, options: RenderReportOptions) => Effect.Effect<ReadonlyArray<RenderedOutput>, never, EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer>;
2054
+ export declare const renderReport: (reports: ReadonlyArray<BuildReport>, options: RenderReportOptions) => Effect.Effect<ReadonlyArray<RenderedOutput>, never, EnvironmentDetector | ExecutorResolver | FormatSelector | OutputRenderer>;
2055
2055
  //#endregion
2056
2056
  //#region src/report/timer.d.ts
2057
2057
  /** @public */
2058
- declare function formatTime(ms: number): string;
2058
+ export declare function formatTime(ms: number): string;
2059
2059
  /** @public */
2060
2060
  interface Timer {
2061
2061
  readonly elapsed: () => number;
@@ -2066,7 +2066,7 @@ interface Timer {
2066
2066
  *
2067
2067
  * @public
2068
2068
  */
2069
- declare function createTimer(now?: () => number): Timer;
2069
+ export declare function createTimer(now?: () => number): Timer;
2070
2070
  //#endregion
2071
2071
  //#region src/report/tsdown-logger.d.ts
2072
2072
  /**
@@ -2090,7 +2090,7 @@ interface TsdownLogger {
2090
2090
  * info/success are dropped — file metrics come from the writeBundle plugin and timing from our timer.
2091
2091
  * @public
2092
2092
  */
2093
- declare function createTsdownLogger(collector: BuildCollector, groupId: string): TsdownLogger;
2093
+ export declare function createTsdownLogger(collector: BuildCollector, groupId: string): TsdownLogger;
2094
2094
  //#endregion
2095
2095
  //#region src/targets/binding.d.ts
2096
2096
  /**
@@ -2098,7 +2098,7 @@ declare function createTsdownLogger(collector: BuildCollector, groupId: string):
2098
2098
  *
2099
2099
  * @public
2100
2100
  */
2101
- declare function writeTargetsBinding(cwd: string, resolution: TargetResolution): string;
2101
+ export declare function writeTargetsBinding(cwd: string, resolution: TargetResolution): string;
2102
2102
  //#endregion
2103
2103
  //#region src/targets/resolve-targets.d.ts
2104
2104
  /**
@@ -2106,10 +2106,10 @@ declare function writeTargetsBinding(cwd: string, resolution: TargetResolution):
2106
2106
  *
2107
2107
  * @public
2108
2108
  */
2109
- declare function resolveTargets(options: {
2109
+ export declare function resolveTargets(options: {
2110
2110
  targets: PublishTargets;
2111
2111
  baseName: string;
2112
2112
  }): TargetResolution;
2113
2113
  //#endregion
2114
- export { type AmbientDtsEntry, BuildCollector, BuildCollectorTag, type BuildEmittedManifestOptions, type BuildFormat, type BuildGroupSpec, type BuildIssues, type BuildPlatform, type BuildReport, BuildReport as BuildReportSchema, type BuildTargetGroupsOptions, CatalogAssemblyError, CiAnnotationsFormatter, type ComposeManifestInput, ConfigValidationError, ConfigValidator, type CopyAmbientDtsOptions, type CssOptions, DEFAULT_EXE_NODE_VERSION, DependencyResolutionError, type DeriveOptions, type DerivedTsdownOptions, type DiagnosticEntry, type DiagnosticInput, type DtsExportClass, type DualExports, type EmitManifestOptions, type EmittedFile, type EntryOverride, type Environment, EnvironmentDetector, type ExeBuild, type ExeConfig, type ExeRewrite, type ExeSeaConfig, type ExeTarget, type ExeTargetInput, type Executor, ExecutorResolver, type ExtractAmbientOptions, type ExtractOptions, type ExtractResult, FormatSelector, type Formatter, type FormatterContext, type GenerateMetaOptions, type Json, JsonFormatter, type JsxConfig, type LooseFileSpec, type LooseFiles, ManifestDecodeError, type ManifestLike, type ManifestRepository, type ManifestTarget, MarkdownFormatter, MetaGenerationError, type MetaOptions, type MetaResult, type ModuleExportNames, type NextVersions, type NormalizedExe, type NormalizedLooseFile, type NormalizedMeta, OgGenerateError, type OgImageInfo, type OutputFormat, OutputRenderer, type PackageJsonEntriesOptions, type PackageJsonLike, type PassKind, type PassReport, type PkgOsCpu, type PlainDiagnostic, type PortableTsconfig, type PublishTargetObject, type PublishTargetValue, type PublishTargets, type ReexportBarrelAnalysis, type RenderReportOptions, type RenderedOutput, ReportPipeline, ReportTimings, type ResolvedCompilerOptions, type ResolvedGroup, type ResolvedTarget, type ResolvedTsconfig, type ResolvedTsconfigOptions, type RunExeBuildOptions, type RunMetaPassOptions, SilentFormatter, type TargetGroupId, type TargetGroupRef, type TargetGroupReport, TargetGroupReport as TargetGroupReportSchema, type TargetResolution, TerminalFormatter, type Timer, type TransformManifestOptions, type TsconfigJsx, type TsdocOptions, type TsdocTagDefinition, TsdoctorEmitError, type TsdoctorMetaOptions, TsdoctorSourceError, type TsdoctorSources, type TsdownBuild, type TsdownLogger, UnresolvedDependencyError, type ValidationInput, type WarningSuppressionRule, type WriteGeneratedOgImageOptions, ambientOutName, analyzeReexportBarrel, applySubdirMetaEntries, assertNoEntryCollisions, buildEmittedManifest, buildMetricsPlugin, buildResolvedTsconfig, buildTargetGroups, cjsDefaultInterop, classifyDtsExport, collectExportNames, composeTsdoctorManifest, computeExeFileName, copyAmbientDts, copyPublicDir, createEntryName, createTimer, createTsdownLogger, declarationExt, defaultManifestTransform, deriveExportPaths, deriveTargetGroupOptions, emitManifest, extractAmbientDts, extractEntries, findRelativeSpecifiers, flattenIssues, formatTime, generateMeta, githubOwnerRepo, isTargetObject, loadTsdoctorSources, mixedDtsExportError, nodeBuiltinDefaultInterop, normalizeBinPaths, normalizeExeOptions, normalizeLooseFiles, normalizeMetaOptions, ogImageInfoOf, packageJsonEntries, readTsconfigJsx, registriesFromTargets, removeDeclarationMaps, renderReexportStub, renderReport, resolveJsxConfig, resolveManifest, resolveNextVersions, resolvePortableTsconfig, resolveTargets, rewriteMetaVersions, runExeBuild, runMetaPass, serializeIssues, transformBin, transformExports, transformManifest, writeDtsEmitTsconfig, writeGeneratedOgImage, writeIssuesArtifact, writeResolvedTsconfig, writeTargetsBinding };
2114
+ export { type AmbientDtsEntry, type BuildEmittedManifestOptions, type BuildFormat, type BuildGroupSpec, type BuildIssues, type BuildPlatform, type BuildReport, BuildReport as BuildReportSchema, type BuildTargetGroupsOptions, CatalogAssemblyError, type ComposeManifestInput, type CopyAmbientDtsOptions, type CssOptions, DependencyResolutionError, type DeriveOptions, type DerivedTsdownOptions, type DiagnosticEntry, type DiagnosticInput, type DtsExportClass, type DualExports, type EmitManifestOptions, type EmittedFile, type EntryOverride, type Environment, type ExeBuild, type ExeConfig, type ExeRewrite, type ExeSeaConfig, type ExeTarget, type ExeTargetInput, type Executor, type ExtractAmbientOptions, type ExtractOptions, type ExtractResult, type Formatter, type FormatterContext, type GenerateMetaOptions, type Json, type JsxConfig, type LooseFileSpec, type LooseFiles, ManifestDecodeError, type ManifestLike, type ManifestRepository, type ManifestTarget, type MetaOptions, type MetaResult, type ModuleExportNames, type NextVersions, type NormalizedExe, type NormalizedLooseFile, type NormalizedMeta, type OgImageInfo, type OutputFormat, type PackageJsonEntriesOptions, type PackageJsonLike, type PassKind, type PassReport, type PkgOsCpu, type PlainDiagnostic, type PortableTsconfig, type PublishTargetObject, type PublishTargetValue, type PublishTargets, type ReexportBarrelAnalysis, type RenderReportOptions, type RenderedOutput, type ResolvedCompilerOptions, type ResolvedGroup, type ResolvedTarget, type ResolvedTsconfig, type ResolvedTsconfigOptions, type RunExeBuildOptions, type RunMetaPassOptions, type TargetGroupId, type TargetGroupRef, type TargetGroupReport, TargetGroupReport as TargetGroupReportSchema, type TargetResolution, type Timer, type TransformManifestOptions, type TsconfigJsx, type TsdocOptions, type TsdocTagDefinition, type TsdoctorMetaOptions, type TsdoctorSources, type TsdownBuild, type TsdownLogger, UnresolvedDependencyError, type ValidationInput, type WarningSuppressionRule, type WriteGeneratedOgImageOptions };
2115
2115
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvy-web/tsdown-plugins",
3
- "version": "2.6.1",
3
+ "version": "2.7.1",
4
4
  "private": false,
5
5
  "description": "Interface-only tsdown/rolldown plugin pack powering @savvy-web/bundler",
6
6
  "homepage": "https://github.com/savvy-web/systems/tree/main/packages/tsdown-plugins",
@@ -29,21 +29,21 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@changesets/get-release-plan": "^5.0.0",
33
- "@effect/platform-node": "4.0.0-rc.109",
34
- "@effected/npm": "^0.12.1",
35
- "@effected/package-json": "^0.13.0",
36
- "@effected/tsconfig-json": "^0.7.0",
37
- "@effected/workspaces": "^0.19.0",
32
+ "@changesets/get-release-plan": "^5.0.1",
33
+ "@effect/platform-node": "4.0.0-rc.112",
34
+ "@effected/npm": "^0.13.0",
35
+ "@effected/package-json": "^0.14.0",
36
+ "@effected/tsconfig-json": "^0.8.0",
37
+ "@effected/workspaces": "^0.20.0",
38
38
  "@microsoft/api-extractor": "^7.59.0",
39
39
  "@microsoft/tsdoc": "^0.16.0",
40
40
  "@microsoft/tsdoc-config": "^0.18.1",
41
41
  "@tsdoctor/manifest": "^0.1.0",
42
- "effect": "4.0.0-rc.109",
42
+ "effect": "4.0.0-rc.112",
43
43
  "image-size": "^2.0.2",
44
44
  "picocolors": "^1.1.1",
45
45
  "std-env": "^4.2.0",
46
- "tsdown": "^0.22.14",
46
+ "tsdown": "^0.23.0",
47
47
  "typescript": "^6.0.3"
48
48
  }
49
49
  }