@effected/bundler 0.1.0 → 0.2.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.
- package/Bundler.js +126 -78
- package/README.md +5 -4
- package/action/ActionBundle.js +89 -78
- package/action/import-check.js +2 -2
- package/config/BuildConfig.js +26 -15
- package/config/EffectedConfigFile.js +12 -1
- package/config-validation/ConfigValidator.js +20 -14
- package/dts/resolved-tsconfig.js +1 -1
- package/errors.js +3 -3
- package/exe/build.js +1 -1
- package/index.d.ts +192 -486
- package/index.js +6 -7
- package/journal/BuildJournal.js +13 -14
- package/jsx/config.js +13 -20
- package/manifest/built-condition.js +120 -0
- package/manifest/emit-manifest.js +7 -2
- package/manifest/export-patterns.js +14 -16
- package/manifest/manifest-set.js +101 -0
- package/manifest/transform.js +1 -0
- package/meta/api-extractor.js +1 -1
- package/meta/{tsdoctor-config.js → bundle-config.js} +4 -4
- package/meta/{tsdoctor-manifest.js → bundle-manifest.js} +5 -5
- package/meta/{tsdoctor-source.js → bundle-source.js} +27 -15
- package/meta/config.js +1 -1
- package/meta/generate.js +44 -27
- package/meta/og-image.js +1 -1
- package/meta/og-satori.js +2 -2
- package/meta/run-pass.js +18 -11
- package/meta/tsdoc-config.js +1 -1
- package/package.json +11 -10
- package/passes/build-target-groups.js +2 -1
- package/passes/strip-maps.js +16 -15
- package/passes/target-groups.js +50 -3
- package/report/issues-artifact.js +10 -16
- package/report/schema.js +1 -1
- package/targets/binding.js +10 -9
- package/meta/BundleManifest.js +0 -208
- package/meta/ManifestSource.js +0 -37
package/index.d.ts
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* flattened output location, so the ambient-copy step rejects it.
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
+
import { BUNDLE_MANIFEST_FILENAME, BundleManifest, BundleManifest as BundleManifest$1, BundleManifestError, KNOWN_REGISTRY_TYPES, KnownRegistryType, MANIFEST_SPEC, ManifestSource, ManifestSource as ManifestSource$1, OpenGraphConfig, OpenGraphImage, OpenGraphImage as OpenGraphImage$1, ProjectIdentity, RegistryRef, RegistryRef as RegistryRef$1, SbomRef, decodeBundleManifest, decodeManifestSource, encodeBundleManifest, isKnownRegistryType } from "@effected/manifest";
|
|
9
10
|
import { Context, Effect, FileSystem, Layer, Path, PlatformError, Schema } from "effect";
|
|
10
11
|
import { Plugin } from "rolldown";
|
|
11
12
|
import { WorkspaceDiscovery } from "@effected/workspaces";
|
|
12
13
|
import { AppendError, JournalWatcher, JsonlEvent } from "@effected/jsonl";
|
|
14
|
+
import { DescendError } from "@effected/walker";
|
|
13
15
|
declare const ActionEntries_base: Schema.Class<ActionEntries, Schema.Struct<{
|
|
14
16
|
/** The main entry point's source. */
|
|
15
17
|
readonly main: Schema.withDecodingDefaultKey<Schema.String, never>;
|
|
@@ -257,12 +259,15 @@ export declare class ActionBundle {
|
|
|
257
259
|
* in `dist`. A missing `main`, a `pre`, `post` or worker the config names with no file, and a bad worker name fail
|
|
258
260
|
* {@link BundleFailed} before `dist` is touched. Interrupting the build kills a running load check.
|
|
259
261
|
*
|
|
262
|
+
* Cleaning `dist`, writing `dist/package.json` and reading each bundle's size go through the provided `FileSystem`
|
|
263
|
+
* and `Path`, while rolldown and the load check work on the host disk, so provide the host's.
|
|
264
|
+
*
|
|
260
265
|
* @param options - `cwd` is the action's directory; `clean` removes `dist` first.
|
|
261
266
|
*/
|
|
262
267
|
static readonly build: (config: ActionConfig, options: {
|
|
263
268
|
readonly cwd: string;
|
|
264
269
|
readonly clean: boolean;
|
|
265
|
-
}) => Effect.Effect<BuildResult, BundleFailed | CleanError | WriteError>;
|
|
270
|
+
}) => Effect.Effect<BuildResult, BundleFailed | CleanError | WriteError, FileSystem.FileSystem | Path.Path>;
|
|
266
271
|
}
|
|
267
272
|
declare const ValidationIssue_base: Schema.Class<ValidationIssue, Schema.Struct<{
|
|
268
273
|
/** What kind of problem it is, such as `MAIN_ENTRY_MISSING`. */
|
|
@@ -607,7 +612,7 @@ declare const DiagnosticEntry_base: Schema.Class<DiagnosticEntry, Schema.Struct<
|
|
|
607
612
|
}>, {}>;
|
|
608
613
|
/**
|
|
609
614
|
* A captured warning or error, from tsdown's logger, rolldown's onLog, API Extractor, the meta
|
|
610
|
-
* pass's own sidecar work (`
|
|
615
|
+
* pass's own sidecar work (`bundle.json` sources, Open Graph generation), or an advisory finding
|
|
611
616
|
* about the build config itself (`config`, e.g. a `publishConfig.targets` set no final release reaches).
|
|
612
617
|
*
|
|
613
618
|
* @public
|
|
@@ -794,6 +799,16 @@ export declare class JsxConfig extends JsxConfig_base {}
|
|
|
794
799
|
declare const ManifestConfig_base: Schema.Class<ManifestConfig, Schema.Struct<{
|
|
795
800
|
/** Top-level manifest keys to drop from the emitted `package.json`, beyond the ones always stripped. */
|
|
796
801
|
readonly drop: Schema.withDecodingDefaultKey<Schema.$Array<Schema.String>, never>;
|
|
802
|
+
/**
|
|
803
|
+
* Top-level string keys written over the emitted `package.json`, after `drop`.
|
|
804
|
+
*
|
|
805
|
+
* @remarks
|
|
806
|
+
* `name` renames the package everywhere the build names it: every publish group without its own name override,
|
|
807
|
+
* `targets.json` and the API model, so two workspace packages can emit as one published name. Keys the build or the
|
|
808
|
+
* release owns, such as `version`, `private`, `exports` and the dependency maps, fail validation, as does a key also
|
|
809
|
+
* listed in `drop`.
|
|
810
|
+
*/
|
|
811
|
+
readonly set: Schema.withDecodingDefaultKey<Schema.$Record<Schema.String, Schema.String>, never>;
|
|
797
812
|
}>, {}>;
|
|
798
813
|
/**
|
|
799
814
|
* What the build changes in the emitted `package.json`.
|
|
@@ -855,7 +870,7 @@ declare const MetaConfig_base: Schema.Class<MetaConfig, Schema.Struct<{
|
|
|
855
870
|
*
|
|
856
871
|
* @remarks
|
|
857
872
|
* For a docs site reading the model from its own tree. Each one receives the `.api.json`, the meta `package.json`
|
|
858
|
-
* and `tsconfig.json`, and `
|
|
873
|
+
* and `tsconfig.json`, and `bundle.json` when one was emitted.
|
|
859
874
|
*/
|
|
860
875
|
readonly localPaths: Schema.withDecodingDefaultKey<Schema.$Array<Schema.String>, never>;
|
|
861
876
|
/**
|
|
@@ -1018,7 +1033,7 @@ declare const PackageBuildConfig_base: Schema.Class<PackageBuildConfig, Schema.S
|
|
|
1018
1033
|
* @public
|
|
1019
1034
|
*/
|
|
1020
1035
|
export declare class PackageBuildConfig extends PackageBuildConfig_base {}
|
|
1021
|
-
declare const
|
|
1036
|
+
declare const BundleOpenGraphImage_base: Schema.Class<BundleOpenGraphImage, Schema.Struct<{
|
|
1022
1037
|
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
1023
1038
|
readonly path: Schema.optionalKey<Schema.String>;
|
|
1024
1039
|
/** Absolute external URL, used verbatim. Mutually exclusive with `path`. */
|
|
@@ -1040,8 +1055,8 @@ declare const TsdoctorOpenGraphImage_base: Schema.Class<TsdoctorOpenGraphImage,
|
|
|
1040
1055
|
*
|
|
1041
1056
|
* @public
|
|
1042
1057
|
*/
|
|
1043
|
-
export declare class
|
|
1044
|
-
declare const
|
|
1058
|
+
export declare class BundleOpenGraphImage extends BundleOpenGraphImage_base {}
|
|
1059
|
+
declare const BundleRegistryRef_base: Schema.Class<BundleRegistryRef, Schema.Struct<{
|
|
1045
1060
|
/** The protocol family, e.g. `"npm"` or `"jsr"`. Unknown values are accepted. */
|
|
1046
1061
|
readonly type: Schema.String;
|
|
1047
1062
|
/** The human instance label, e.g. `"npm"`. */
|
|
@@ -1054,10 +1069,10 @@ declare const TsdoctorRegistryRef_base: Schema.Class<TsdoctorRegistryRef, Schema
|
|
|
1054
1069
|
*
|
|
1055
1070
|
* @public
|
|
1056
1071
|
*/
|
|
1057
|
-
export declare class
|
|
1058
|
-
declare const
|
|
1072
|
+
export declare class BundleRegistryRef extends BundleRegistryRef_base {}
|
|
1073
|
+
declare const BundleOpenGraphConfig_base: Schema.Class<BundleOpenGraphConfig, Schema.Struct<{
|
|
1059
1074
|
/** Static images, by path or url. Listed after a generated image. */
|
|
1060
|
-
readonly images: Schema.optionalKey<Schema.$Array<typeof
|
|
1075
|
+
readonly images: Schema.optionalKey<Schema.$Array<typeof BundleOpenGraphImage>>;
|
|
1061
1076
|
/** Embed accent color, a CSS color string. */
|
|
1062
1077
|
readonly themeColor: Schema.optionalKey<Schema.String>;
|
|
1063
1078
|
/** Renders an image at build time, listed first. `"satori"` is the only renderer. */
|
|
@@ -1076,8 +1091,8 @@ declare const TsdoctorOpenGraphConfig_base: Schema.Class<TsdoctorOpenGraphConfig
|
|
|
1076
1091
|
*
|
|
1077
1092
|
* @public
|
|
1078
1093
|
*/
|
|
1079
|
-
export declare class
|
|
1080
|
-
declare const
|
|
1094
|
+
export declare class BundleOpenGraphConfig extends BundleOpenGraphConfig_base {}
|
|
1095
|
+
declare const BundleConfig_base: Schema.Class<BundleConfig, Schema.Struct<{
|
|
1081
1096
|
/** The display name. */
|
|
1082
1097
|
readonly name: Schema.optionalKey<Schema.String>;
|
|
1083
1098
|
/** A one-line tagline. */
|
|
@@ -1085,21 +1100,21 @@ declare const TsdoctorConfig_base: Schema.Class<TsdoctorConfig, Schema.Struct<{
|
|
|
1085
1100
|
/** A description. */
|
|
1086
1101
|
readonly description: Schema.optionalKey<Schema.String>;
|
|
1087
1102
|
/** The Open Graph settings. */
|
|
1088
|
-
readonly openGraph: Schema.optionalKey<typeof
|
|
1103
|
+
readonly openGraph: Schema.optionalKey<typeof BundleOpenGraphConfig>;
|
|
1089
1104
|
/** Registries; `false` disables the default derived from `targets.json`. */
|
|
1090
|
-
readonly registries: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<typeof
|
|
1105
|
+
readonly registries: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<typeof BundleRegistryRef>, Schema.Literal<false>]>>;
|
|
1091
1106
|
}>, {}>;
|
|
1092
1107
|
/**
|
|
1093
|
-
* The config tier of a package's emitted `
|
|
1108
|
+
* The config tier of a package's emitted `bundle.json`, the `[package.bundle]` table.
|
|
1094
1109
|
*
|
|
1095
1110
|
* @public
|
|
1096
1111
|
*/
|
|
1097
|
-
export declare class
|
|
1112
|
+
export declare class BundleConfig extends BundleConfig_base {}
|
|
1098
1113
|
declare const PackageConfig_base: Schema.Class<PackageConfig, Schema.Struct<{
|
|
1099
1114
|
/** The build settings. */
|
|
1100
1115
|
readonly build: Schema.withDecodingDefaultKey<typeof PackageBuildConfig, never>;
|
|
1101
|
-
/** The `
|
|
1102
|
-
readonly
|
|
1116
|
+
/** The `bundle.json` config tier. */
|
|
1117
|
+
readonly bundle: Schema.optionalKey<typeof BundleConfig>;
|
|
1103
1118
|
}>, {}>;
|
|
1104
1119
|
/**
|
|
1105
1120
|
* The `[package]` table of `effected.toml`.
|
|
@@ -1152,16 +1167,16 @@ export declare class MetaGenerationError extends MetaGenerationError_base<{
|
|
|
1152
1167
|
}> {
|
|
1153
1168
|
get message(): string;
|
|
1154
1169
|
}
|
|
1155
|
-
declare const
|
|
1156
|
-
readonly _tag: "
|
|
1170
|
+
declare const BundleManifestEmitError_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 & {
|
|
1171
|
+
readonly _tag: "BundleManifestEmitError";
|
|
1157
1172
|
} & Readonly<A>;
|
|
1158
1173
|
/**
|
|
1159
|
-
* Writing the `
|
|
1174
|
+
* Writing the `bundle.json` sidecar failed: the composed manifest did not encode, or the file could not be
|
|
1160
1175
|
* written (a read-only or full disk). Recorded in `issues.json` as a `meta` error.
|
|
1161
1176
|
*
|
|
1162
1177
|
* @public
|
|
1163
1178
|
*/
|
|
1164
|
-
export declare class
|
|
1179
|
+
export declare class BundleManifestEmitError extends BundleManifestEmitError_base<{
|
|
1165
1180
|
readonly packageName: string;
|
|
1166
1181
|
readonly path: string;
|
|
1167
1182
|
readonly cause: unknown;
|
|
@@ -1349,294 +1364,11 @@ interface TsconfigJsx {
|
|
|
1349
1364
|
export declare function resolveJsxConfig(tsconfig: TsconfigJsx, override: JsxConfig$1 | undefined): JsxConfig$1 | undefined;
|
|
1350
1365
|
/**
|
|
1351
1366
|
* Read the jsx-relevant compilerOptions from a package's own tsconfig.json (best-effort;
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1354
|
-
* @public
|
|
1355
|
-
*/
|
|
1356
|
-
export declare function readTsconfigJsx(cwd: string): TsconfigJsx;
|
|
1357
|
-
/**
|
|
1358
|
-
* The registry protocol families this reader knows how to do more than link
|
|
1359
|
-
* to. `"npm"` means an npm-compatible registry — install commands and tarball
|
|
1360
|
-
* fetching work against any instance of it — and `"jsr"` the jsr protocol.
|
|
1361
|
-
*
|
|
1362
|
-
* @remarks
|
|
1363
|
-
* The manifest's `type` field is deliberately NOT constrained to these
|
|
1364
|
-
* values: unknown future types must degrade to link-only rendering, not
|
|
1365
|
-
* reject the manifest. Use {@link isKnownRegistryType} to branch.
|
|
1366
|
-
*
|
|
1367
|
-
* @public
|
|
1368
|
-
*/
|
|
1369
|
-
export declare const KNOWN_REGISTRY_TYPES: readonly ["npm", "jsr"];
|
|
1370
|
-
/**
|
|
1371
|
-
* A registry protocol family this reader recognizes.
|
|
1372
|
-
*
|
|
1373
|
-
* @public
|
|
1374
|
-
*/
|
|
1375
|
-
type KnownRegistryType = (typeof KNOWN_REGISTRY_TYPES)[number];
|
|
1376
|
-
/**
|
|
1377
|
-
* Whether a registry `type` value is a protocol family this reader
|
|
1378
|
-
* recognizes. `false` means the registry entry should degrade to link-only
|
|
1379
|
-
* rendering — it is never a validation failure.
|
|
1380
|
-
*
|
|
1381
|
-
* @public
|
|
1382
|
-
*/
|
|
1383
|
-
export declare function isKnownRegistryType(type: string): type is KnownRegistryType;
|
|
1384
|
-
/**
|
|
1385
|
-
* One registry the documented package is published to.
|
|
1386
|
-
*
|
|
1387
|
-
* @remarks
|
|
1388
|
-
* `type` is the PROTOCOL FAMILY (`"npm"` covers every npm-compatible
|
|
1389
|
-
* registry), `name` the human instance label, `url` the package's page on
|
|
1390
|
-
* that instance. Unknown `type` values decode successfully and degrade to
|
|
1391
|
-
* link-only rendering (see {@link isKnownRegistryType}).
|
|
1392
|
-
*
|
|
1393
|
-
* @public
|
|
1394
|
-
*/
|
|
1395
|
-
export declare const RegistryRef: Schema.Struct<{
|
|
1396
|
-
/** The protocol family, e.g. `"npm"` or `"jsr"`. Unknown values are accepted. */
|
|
1397
|
-
readonly type: Schema.String;
|
|
1398
|
-
/** The human instance label, e.g. `"npm"` or `"Savvy Web Registry"`. */
|
|
1399
|
-
readonly name: Schema.String;
|
|
1400
|
-
/** The package's URL on that registry instance. */
|
|
1401
|
-
readonly url: Schema.String;
|
|
1402
|
-
}>;
|
|
1403
|
-
/**
|
|
1404
|
-
* The decoded type of {@link (RegistryRef:variable)}.
|
|
1405
|
-
*
|
|
1406
|
-
* @public
|
|
1407
|
-
*/
|
|
1408
|
-
export type RegistryRef = typeof RegistryRef.Type;
|
|
1409
|
-
/**
|
|
1410
|
-
* One Open Graph image declared by the manifest.
|
|
1411
|
-
*
|
|
1412
|
-
* @remarks
|
|
1413
|
-
* Exactly ONE of `path` (a bundle-relative asset the consuming platform
|
|
1414
|
-
* publishes and resolves to a URL) or `url` (an absolute external URL used
|
|
1415
|
-
* verbatim) must be present — the schema enforces the XOR. `type` is a MIME
|
|
1416
|
-
* type, inferred from the file extension by the resolver when omitted; `alt`
|
|
1417
|
-
* has a documented inference chain (tagline → description →
|
|
1418
|
-
* `"<name> API documentation"`).
|
|
1419
|
-
*
|
|
1420
|
-
* @public
|
|
1421
|
-
*/
|
|
1422
|
-
export declare const OpenGraphImage: Schema.Struct<{
|
|
1423
|
-
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
1424
|
-
readonly path: Schema.optionalKey<Schema.String>;
|
|
1425
|
-
/** Absolute external URL, used verbatim. Mutually exclusive with `path`. */
|
|
1426
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
1427
|
-
/** MIME type; inferred from the extension when omitted. */
|
|
1428
|
-
readonly type: Schema.optionalKey<Schema.String>;
|
|
1429
|
-
/** Pixel width; 1200×630 (1.91:1) is the cross-platform safe default. */
|
|
1430
|
-
readonly width: Schema.optionalKey<Schema.Int>;
|
|
1431
|
-
/** Pixel height. */
|
|
1432
|
-
readonly height: Schema.optionalKey<Schema.Int>;
|
|
1433
|
-
/** Alt text; inferred (tagline → description → fallback) when omitted. */
|
|
1434
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
1435
|
-
}>;
|
|
1436
|
-
/**
|
|
1437
|
-
* The decoded type of {@link (OpenGraphImage:variable)}.
|
|
1438
|
-
*
|
|
1439
|
-
* @public
|
|
1440
|
-
*/
|
|
1441
|
-
export type OpenGraphImage = typeof OpenGraphImage.Type;
|
|
1442
|
-
/**
|
|
1443
|
-
* The manifest's Open Graph block: the asset-ish pieces only — most OG tags
|
|
1444
|
-
* are page-level and derive at render time in the consuming platform.
|
|
1445
|
-
*
|
|
1446
|
-
* @remarks
|
|
1447
|
-
* Multiple images follow OG array semantics: the first declared wins, extras
|
|
1448
|
-
* are alternates (e.g. a portrait 1000×1500 variant).
|
|
1449
|
-
*
|
|
1450
|
-
* @public
|
|
1451
|
-
*/
|
|
1452
|
-
export declare const OpenGraphConfig: Schema.Struct<{
|
|
1453
|
-
/** Declared images, first-wins per OG array semantics. */
|
|
1454
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1455
|
-
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
1456
|
-
readonly path: Schema.optionalKey<Schema.String>;
|
|
1457
|
-
/** Absolute external URL, used verbatim. Mutually exclusive with `path`. */
|
|
1458
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
1459
|
-
/** MIME type; inferred from the extension when omitted. */
|
|
1460
|
-
readonly type: Schema.optionalKey<Schema.String>;
|
|
1461
|
-
/** Pixel width; 1200×630 (1.91:1) is the cross-platform safe default. */
|
|
1462
|
-
readonly width: Schema.optionalKey<Schema.Int>;
|
|
1463
|
-
/** Pixel height. */
|
|
1464
|
-
readonly height: Schema.optionalKey<Schema.Int>;
|
|
1465
|
-
/** Alt text; inferred (tagline → description → fallback) when omitted. */
|
|
1466
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
1467
|
-
}>>>;
|
|
1468
|
-
/** Embed accent color (e.g. Discord), a CSS color string. */
|
|
1469
|
-
readonly themeColor: Schema.optionalKey<Schema.String>;
|
|
1470
|
-
}>;
|
|
1471
|
-
/**
|
|
1472
|
-
* The decoded type of {@link (OpenGraphConfig:variable)}.
|
|
1473
|
-
*
|
|
1367
|
+
* answers empty on absence or on a read or parse failure; a loader defect is not swallowed). Resolved through `@effected/tsconfig-json`'s
|
|
1368
|
+
* loader, so JSONC syntax and `extends` chains are honored.
|
|
1474
1369
|
* @public
|
|
1475
1370
|
*/
|
|
1476
|
-
export
|
|
1477
|
-
/**
|
|
1478
|
-
* A pointer to the bundle's SBOM, computed by the bundler at publish and
|
|
1479
|
-
* served as a downloadable static asset.
|
|
1480
|
-
*
|
|
1481
|
-
* @public
|
|
1482
|
-
*/
|
|
1483
|
-
export declare const SbomRef: Schema.Struct<{
|
|
1484
|
-
/** Bundle-relative path to the SBOM file. */
|
|
1485
|
-
readonly path: Schema.String;
|
|
1486
|
-
/** SBOM format label, e.g. `"spdx-json"`. Unknown values are accepted. */
|
|
1487
|
-
readonly format: Schema.optionalKey<Schema.String>;
|
|
1488
|
-
}>;
|
|
1489
|
-
/**
|
|
1490
|
-
* The decoded type of {@link (SbomRef:variable)}.
|
|
1491
|
-
*
|
|
1492
|
-
* @public
|
|
1493
|
-
*/
|
|
1494
|
-
export type SbomRef = typeof SbomRef.Type;
|
|
1495
|
-
/**
|
|
1496
|
-
* The inherited project tier, flattened into the emitted manifest by the
|
|
1497
|
-
* bundler (a fetched bundle has no parent directory to walk). Kept nested —
|
|
1498
|
-
* structurally distinguishable from the leaf fields — because provenance is
|
|
1499
|
-
* load-bearing for override detection.
|
|
1500
|
-
*
|
|
1501
|
-
* @public
|
|
1502
|
-
*/
|
|
1503
|
-
export declare const ProjectIdentity: Schema.Struct<{
|
|
1504
|
-
/** The project display name, e.g. `"Effected"` over leaf `@effected/store`. */
|
|
1505
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1506
|
-
/** The project tagline. */
|
|
1507
|
-
readonly tagline: Schema.optionalKey<Schema.String>;
|
|
1508
|
-
}>;
|
|
1509
|
-
/**
|
|
1510
|
-
* The decoded type of {@link (ProjectIdentity:variable)}.
|
|
1511
|
-
*
|
|
1512
|
-
* @public
|
|
1513
|
-
*/
|
|
1514
|
-
export type ProjectIdentity = typeof ProjectIdentity.Type;
|
|
1515
|
-
/**
|
|
1516
|
-
* The versioned `tsdoctor.json` sidecar manifest — bundle layer 3.
|
|
1517
|
-
*
|
|
1518
|
-
* @remarks
|
|
1519
|
-
* `spec` is the only required field; every other field enriches. Unknown
|
|
1520
|
-
* top-level fields are ignored on decode (additive fields are minor spec
|
|
1521
|
-
* revisions) and unknown enum-ish values (registry `type`, sbom `format`)
|
|
1522
|
-
* degrade gracefully instead of rejecting — an old reader must be able to
|
|
1523
|
-
* consume a new bundle.
|
|
1524
|
-
*
|
|
1525
|
-
* @public
|
|
1526
|
-
*/
|
|
1527
|
-
export declare const BundleManifest: Schema.Struct<{
|
|
1528
|
-
/** The integer spec version. This reader understands spec 1. */
|
|
1529
|
-
readonly spec: Schema.Literal<1>;
|
|
1530
|
-
/** Human display name (the npm name is dry; this one is SEO-friendly). */
|
|
1531
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1532
|
-
/** Short tagline. */
|
|
1533
|
-
readonly tagline: Schema.optionalKey<Schema.String>;
|
|
1534
|
-
/** Long description; overrides the package.json description when present. */
|
|
1535
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
1536
|
-
/** The inherited project tier, flattened in at emit time. */
|
|
1537
|
-
readonly project: Schema.optionalKey<Schema.Struct<{
|
|
1538
|
-
/** The project display name, e.g. `"Effected"` over leaf `@effected/store`. */
|
|
1539
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1540
|
-
/** The project tagline. */
|
|
1541
|
-
readonly tagline: Schema.optionalKey<Schema.String>;
|
|
1542
|
-
}>>;
|
|
1543
|
-
/** Open Graph assets. */
|
|
1544
|
-
readonly openGraph: Schema.optionalKey<Schema.Struct<{
|
|
1545
|
-
/** Declared images, first-wins per OG array semantics. */
|
|
1546
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1547
|
-
/** Bundle-relative asset path. Mutually exclusive with `url`. */
|
|
1548
|
-
readonly path: Schema.optionalKey<Schema.String>;
|
|
1549
|
-
/** Absolute external URL, used verbatim. Mutually exclusive with `path`. */
|
|
1550
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
1551
|
-
/** MIME type; inferred from the extension when omitted. */
|
|
1552
|
-
readonly type: Schema.optionalKey<Schema.String>;
|
|
1553
|
-
/** Pixel width; 1200×630 (1.91:1) is the cross-platform safe default. */
|
|
1554
|
-
readonly width: Schema.optionalKey<Schema.Int>;
|
|
1555
|
-
/** Pixel height. */
|
|
1556
|
-
readonly height: Schema.optionalKey<Schema.Int>;
|
|
1557
|
-
/** Alt text; inferred (tagline → description → fallback) when omitted. */
|
|
1558
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
1559
|
-
}>>>;
|
|
1560
|
-
/** Embed accent color (e.g. Discord), a CSS color string. */
|
|
1561
|
-
readonly themeColor: Schema.optionalKey<Schema.String>;
|
|
1562
|
-
}>>;
|
|
1563
|
-
/** SBOM pointer. */
|
|
1564
|
-
readonly sbom: Schema.optionalKey<Schema.Struct<{
|
|
1565
|
-
/** Bundle-relative path to the SBOM file. */
|
|
1566
|
-
readonly path: Schema.String;
|
|
1567
|
-
/** SBOM format label, e.g. `"spdx-json"`. Unknown values are accepted. */
|
|
1568
|
-
readonly format: Schema.optionalKey<Schema.String>;
|
|
1569
|
-
}>>;
|
|
1570
|
-
/** Registries the package is published to. */
|
|
1571
|
-
readonly registries: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1572
|
-
/** The protocol family, e.g. `"npm"` or `"jsr"`. Unknown values are accepted. */
|
|
1573
|
-
readonly type: Schema.String;
|
|
1574
|
-
/** The human instance label, e.g. `"npm"` or `"Savvy Web Registry"`. */
|
|
1575
|
-
readonly name: Schema.String;
|
|
1576
|
-
/** The package's URL on that registry instance. */
|
|
1577
|
-
readonly url: Schema.String;
|
|
1578
|
-
}>>>;
|
|
1579
|
-
}>;
|
|
1580
|
-
/**
|
|
1581
|
-
* The decoded type of {@link (BundleManifest:variable)}.
|
|
1582
|
-
*
|
|
1583
|
-
* @public
|
|
1584
|
-
*/
|
|
1585
|
-
export type BundleManifest = typeof BundleManifest.Type;
|
|
1586
|
-
declare const BundleManifestError_base: Schema.Class<BundleManifestError, Schema.TaggedStruct<"BundleManifestError", {
|
|
1587
|
-
/** The manifest file path, when the failure is tied to a file on disk. */
|
|
1588
|
-
readonly path: Schema.optionalKey<Schema.String>;
|
|
1589
|
-
/** The underlying failure (JSON syntax or schema decode), preserved structurally. */
|
|
1590
|
-
readonly cause: Schema.Defect;
|
|
1591
|
-
}>, import("effect/Cause").YieldableError>;
|
|
1592
|
-
/**
|
|
1593
|
-
* Raised when a present `tsdoctor.json` cannot be parsed or does not satisfy
|
|
1594
|
-
* the {@link (BundleManifest:variable)} schema.
|
|
1595
|
-
*
|
|
1596
|
-
* @remarks
|
|
1597
|
-
* Absence of the manifest is NEVER this error — layers enrich, never gate,
|
|
1598
|
-
* so a missing sidecar is the normal case and reads as `Option.none()`.
|
|
1599
|
-
*
|
|
1600
|
-
* @public
|
|
1601
|
-
*/
|
|
1602
|
-
export declare class BundleManifestError extends BundleManifestError_base {
|
|
1603
|
-
get message(): string;
|
|
1604
|
-
}
|
|
1605
|
-
/**
|
|
1606
|
-
* Decode an unknown value into a {@link (BundleManifest:type)}.
|
|
1607
|
-
*
|
|
1608
|
-
* @remarks
|
|
1609
|
-
* The typed boundary for manifest input that has already been parsed from
|
|
1610
|
-
* JSON (plugin options, fetched payloads). File-based reading lives in
|
|
1611
|
-
* `readBundle`, which routes through this after parsing.
|
|
1612
|
-
*
|
|
1613
|
-
* @public
|
|
1614
|
-
*/
|
|
1615
|
-
export declare function decodeBundleManifest(input: unknown, path?: string): Effect.Effect<BundleManifest, BundleManifestError>;
|
|
1616
|
-
/**
|
|
1617
|
-
* The manifest spec version this package reads and writes.
|
|
1618
|
-
*
|
|
1619
|
-
* @public
|
|
1620
|
-
*/
|
|
1621
|
-
export declare const MANIFEST_SPEC: 1;
|
|
1622
|
-
/**
|
|
1623
|
-
* The sidecar manifest's file name inside a bundle folder.
|
|
1624
|
-
*
|
|
1625
|
-
* @public
|
|
1626
|
-
*/
|
|
1627
|
-
export declare const TSDOCTOR_MANIFEST_FILENAME = "tsdoctor.json";
|
|
1628
|
-
/**
|
|
1629
|
-
* Encode a {@link (BundleManifest:type)} into the JSON-ready value a writer
|
|
1630
|
-
* serializes as `tsdoctor.json`.
|
|
1631
|
-
*
|
|
1632
|
-
* @remarks
|
|
1633
|
-
* The writer's boundary. Going through the schema rather than
|
|
1634
|
-
* `JSON.stringify` means an emitted file is by construction what
|
|
1635
|
-
* {@link decodeBundleManifest} accepts.
|
|
1636
|
-
*
|
|
1637
|
-
* @public
|
|
1638
|
-
*/
|
|
1639
|
-
export declare function encodeBundleManifest(manifest: BundleManifest): Effect.Effect<unknown, BundleManifestError>;
|
|
1371
|
+
export declare const readTsconfigJsx: (cwd: string) => Effect.Effect<TsconfigJsx, never, FileSystem.FileSystem | Path.Path>;
|
|
1640
1372
|
/**
|
|
1641
1373
|
* What an Open Graph image generator receives: the merged identity of the
|
|
1642
1374
|
* package being built, after the config, leaf and project tiers resolved.
|
|
@@ -1670,19 +1402,19 @@ interface OgImageGenerator {
|
|
|
1670
1402
|
readonly cacheSalt?: string | undefined;
|
|
1671
1403
|
}
|
|
1672
1404
|
/**
|
|
1673
|
-
* The `meta.
|
|
1674
|
-
* ranked over the package's `
|
|
1405
|
+
* The `meta.bundle` block: the CONFIG tier of the emitted `bundle.json`,
|
|
1406
|
+
* ranked over the package's `bundle.json` (leaf) and the workspace root's
|
|
1675
1407
|
* (project).
|
|
1676
1408
|
*
|
|
1677
1409
|
* @public
|
|
1678
1410
|
*/
|
|
1679
|
-
interface
|
|
1411
|
+
interface BundleMetaOptions {
|
|
1680
1412
|
readonly name?: string | undefined;
|
|
1681
1413
|
readonly tagline?: string | undefined;
|
|
1682
1414
|
readonly description?: string | undefined;
|
|
1683
1415
|
readonly openGraph?: {
|
|
1684
1416
|
/** Static images, path (bundle-relative) or url. Listed after a generated image. */
|
|
1685
|
-
readonly images?: ReadonlyArray<OpenGraphImage> | undefined;
|
|
1417
|
+
readonly images?: ReadonlyArray<OpenGraphImage$1> | undefined;
|
|
1686
1418
|
readonly themeColor?: string | undefined;
|
|
1687
1419
|
/** Render an image at build time; the bytes are written to `meta/og/<unscoped>.<png|jpg|webp>` and listed first. */
|
|
1688
1420
|
readonly generate?: OgImageGenerator | undefined;
|
|
@@ -1695,8 +1427,83 @@ interface TsdoctorMetaOptions {
|
|
|
1695
1427
|
readonly cacheSalt?: string | false | undefined;
|
|
1696
1428
|
} | undefined;
|
|
1697
1429
|
/** Registries; `false` disables the default derived from `targets.json`. */
|
|
1698
|
-
readonly registries?: ReadonlyArray<RegistryRef> | false | undefined;
|
|
1430
|
+
readonly registries?: ReadonlyArray<RegistryRef$1> | false | undefined;
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* A `targets.json` target as the manifest composer sees it: the human label and the registry endpoint.
|
|
1434
|
+
*
|
|
1435
|
+
* @public
|
|
1436
|
+
*/
|
|
1437
|
+
interface ManifestTarget {
|
|
1438
|
+
readonly name: string;
|
|
1439
|
+
readonly registry: string;
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Everything {@link composeBundleManifest} needs: the three authoring tiers plus the build facts
|
|
1443
|
+
* that derive the rest.
|
|
1444
|
+
*
|
|
1445
|
+
* @public
|
|
1446
|
+
*/
|
|
1447
|
+
interface ComposeManifestInput {
|
|
1448
|
+
readonly config: BundleMetaOptions | undefined;
|
|
1449
|
+
readonly leaf: ManifestSource$1 | undefined;
|
|
1450
|
+
readonly project: ManifestSource$1 | undefined;
|
|
1451
|
+
readonly packageName: string;
|
|
1452
|
+
readonly isPrivate: boolean;
|
|
1453
|
+
/** `targets.json` targets for the group being emitted. */
|
|
1454
|
+
readonly targets: ReadonlyArray<ManifestTarget>;
|
|
1455
|
+
/** The image `og-image.ts` wrote, already sized. */
|
|
1456
|
+
readonly generatedImage: OpenGraphImage$1 | undefined;
|
|
1457
|
+
/** The emitted manifest's `repository` field; a GitHub Packages target derives its page URL from it. */
|
|
1458
|
+
readonly repository?: ManifestRepository | undefined;
|
|
1699
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* The `repository` field of the emitted `package.json`, as far as the manifest composer reads it.
|
|
1462
|
+
*
|
|
1463
|
+
* @public
|
|
1464
|
+
*/
|
|
1465
|
+
interface ManifestRepository {
|
|
1466
|
+
readonly url: string;
|
|
1467
|
+
readonly directory?: string | undefined;
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
* `owner/repo` from any of the GitHub URL spellings a `repository.url` carries (https, `git+https`,
|
|
1471
|
+
* `git@`, `ssh://`, `git://`, the `github:` shorthand), or `undefined` for anything else.
|
|
1472
|
+
*
|
|
1473
|
+
* @public
|
|
1474
|
+
*/
|
|
1475
|
+
export declare function githubOwnerRepo(url: string): {
|
|
1476
|
+
readonly owner: string;
|
|
1477
|
+
readonly repo: string;
|
|
1478
|
+
} | undefined;
|
|
1479
|
+
/**
|
|
1480
|
+
* Derive the registries block from the build's targets. Only for a public
|
|
1481
|
+
* package: a private one is published nowhere.
|
|
1482
|
+
*
|
|
1483
|
+
* @public
|
|
1484
|
+
*/
|
|
1485
|
+
export declare function registriesFromTargets(input: Pick<ComposeManifestInput, "targets" | "packageName" | "isPrivate" | "repository">): ReadonlyArray<RegistryRef$1>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Flatten the three authoring tiers into the emitted manifest. Pure.
|
|
1488
|
+
*
|
|
1489
|
+
* @remarks
|
|
1490
|
+
* Config beats leaf beats project per FIELD; the project tier is emitted
|
|
1491
|
+
* nested, never flattened, because the consumer's provenance ranking depends
|
|
1492
|
+
* on telling the tiers apart. Returns `undefined` when there is nothing to
|
|
1493
|
+
* say, so a package with no metadata emits no file. An `sbom` pointer is
|
|
1494
|
+
* never written here — the release action upserts it at publish.
|
|
1495
|
+
*
|
|
1496
|
+
* @public
|
|
1497
|
+
*/
|
|
1498
|
+
export declare function composeBundleManifest(input: ComposeManifestInput): BundleManifest$1 | undefined;
|
|
1499
|
+
/**
|
|
1500
|
+
* What the generator sees. Built from the same tiers as the manifest.
|
|
1501
|
+
*
|
|
1502
|
+
* @public
|
|
1503
|
+
*/
|
|
1504
|
+
export declare function ogImageInfoOf(input: ComposeManifestInput & {
|
|
1505
|
+
readonly version: string;
|
|
1506
|
+
}): OgImageInfo;
|
|
1700
1507
|
/**
|
|
1701
1508
|
* A single TSDoc tag definition (parity with api-extractor's TSDoc config).
|
|
1702
1509
|
*
|
|
@@ -1741,13 +1548,13 @@ interface MetaOptions {
|
|
|
1741
1548
|
readonly optimistic?: "auto" | boolean | undefined;
|
|
1742
1549
|
readonly tsdoc?: TsdocOptions | undefined;
|
|
1743
1550
|
/**
|
|
1744
|
-
* The CONFIG tier of the emitted `
|
|
1745
|
-
* workspace root's `
|
|
1551
|
+
* The CONFIG tier of the emitted `bundle.json` sidecar (ranked over the package's and the
|
|
1552
|
+
* workspace root's `bundle.json` source files) and the optional build-time Open Graph image.
|
|
1746
1553
|
* The project tier is found through workspace discovery, which requires the workspace root's
|
|
1747
1554
|
* `package.json` to declare a `version`; without one, discovery fails silently and no `project`
|
|
1748
1555
|
* tier is emitted.
|
|
1749
1556
|
*/
|
|
1750
|
-
readonly
|
|
1557
|
+
readonly bundle?: BundleMetaOptions | undefined;
|
|
1751
1558
|
}
|
|
1752
1559
|
/**
|
|
1753
1560
|
* Fully-resolved meta options (no optionals).
|
|
@@ -1762,7 +1569,7 @@ interface NormalizedMeta {
|
|
|
1762
1569
|
readonly tagDefinitions: ReadonlyArray<TsdocTagDefinition>;
|
|
1763
1570
|
};
|
|
1764
1571
|
/** Passed through verbatim; `undefined` means no config tier (the source tiers still apply). */
|
|
1765
|
-
readonly
|
|
1572
|
+
readonly bundle: BundleMetaOptions | undefined;
|
|
1766
1573
|
}
|
|
1767
1574
|
/**
|
|
1768
1575
|
* Fill defaults so downstream code never branches on undefined.
|
|
@@ -1773,130 +1580,6 @@ export declare function normalizeMetaOptions(meta: MetaOptions, env?: {
|
|
|
1773
1580
|
CI?: string | undefined;
|
|
1774
1581
|
GITHUB_ACTIONS?: string | undefined;
|
|
1775
1582
|
}): NormalizedMeta;
|
|
1776
|
-
/**
|
|
1777
|
-
* The shape an author checks in as a `tsdoctor.json` SOURCE file, at a
|
|
1778
|
-
* package root (the leaf tier) or a workspace root (the project tier).
|
|
1779
|
-
*
|
|
1780
|
-
* @remarks
|
|
1781
|
-
* `BundleManifest` minus `spec` and `project`: a source file never declares
|
|
1782
|
-
* its own spec version, and it never declares its inherited tier — the
|
|
1783
|
-
* bundler supplies both when it flattens the hierarchy at emit time. Decoded
|
|
1784
|
-
* only by writers; readers never see this shape.
|
|
1785
|
-
*
|
|
1786
|
-
* @public
|
|
1787
|
-
*/
|
|
1788
|
-
export declare const ManifestSource: Schema.Struct<{
|
|
1789
|
-
readonly name: Schema.optionalKey<Schema.String>;
|
|
1790
|
-
readonly tagline: Schema.optionalKey<Schema.String>;
|
|
1791
|
-
readonly description: Schema.optionalKey<Schema.String>;
|
|
1792
|
-
readonly openGraph: Schema.optionalKey<Schema.Struct<{
|
|
1793
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1794
|
-
readonly path: Schema.optionalKey<Schema.String>;
|
|
1795
|
-
readonly url: Schema.optionalKey<Schema.String>;
|
|
1796
|
-
readonly type: Schema.optionalKey<Schema.String>;
|
|
1797
|
-
readonly width: Schema.optionalKey<Schema.Int>;
|
|
1798
|
-
readonly height: Schema.optionalKey<Schema.Int>;
|
|
1799
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
1800
|
-
}>>>;
|
|
1801
|
-
readonly themeColor: Schema.optionalKey<Schema.String>;
|
|
1802
|
-
}>>;
|
|
1803
|
-
readonly sbom: Schema.optionalKey<Schema.Struct<{
|
|
1804
|
-
readonly path: Schema.String;
|
|
1805
|
-
readonly format: Schema.optionalKey<Schema.String>;
|
|
1806
|
-
}>>;
|
|
1807
|
-
readonly registries: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1808
|
-
readonly type: Schema.String;
|
|
1809
|
-
readonly name: Schema.String;
|
|
1810
|
-
readonly url: Schema.String;
|
|
1811
|
-
}>>>;
|
|
1812
|
-
}>;
|
|
1813
|
-
/**
|
|
1814
|
-
* The decoded type of {@link (ManifestSource:variable)}.
|
|
1815
|
-
*
|
|
1816
|
-
* @public
|
|
1817
|
-
*/
|
|
1818
|
-
export type ManifestSource = typeof ManifestSource.Type;
|
|
1819
|
-
/**
|
|
1820
|
-
* Decode an unknown value into a {@link (ManifestSource:type)}.
|
|
1821
|
-
*
|
|
1822
|
-
* @public
|
|
1823
|
-
*/
|
|
1824
|
-
export declare function decodeManifestSource(input: unknown, path?: string): Effect.Effect<ManifestSource, BundleManifestError>;
|
|
1825
|
-
/**
|
|
1826
|
-
* A `targets.json` target as the manifest composer sees it: the human label and the registry endpoint.
|
|
1827
|
-
*
|
|
1828
|
-
* @public
|
|
1829
|
-
*/
|
|
1830
|
-
interface ManifestTarget {
|
|
1831
|
-
readonly name: string;
|
|
1832
|
-
readonly registry: string;
|
|
1833
|
-
}
|
|
1834
|
-
/**
|
|
1835
|
-
* Everything {@link composeTsdoctorManifest} needs: the three authoring tiers plus the build facts
|
|
1836
|
-
* that derive the rest.
|
|
1837
|
-
*
|
|
1838
|
-
* @public
|
|
1839
|
-
*/
|
|
1840
|
-
interface ComposeManifestInput {
|
|
1841
|
-
readonly config: TsdoctorMetaOptions | undefined;
|
|
1842
|
-
readonly leaf: ManifestSource | undefined;
|
|
1843
|
-
readonly project: ManifestSource | undefined;
|
|
1844
|
-
readonly packageName: string;
|
|
1845
|
-
readonly isPrivate: boolean;
|
|
1846
|
-
/** `targets.json` targets for the group being emitted. */
|
|
1847
|
-
readonly targets: ReadonlyArray<ManifestTarget>;
|
|
1848
|
-
/** The image `og-image.ts` wrote, already sized. */
|
|
1849
|
-
readonly generatedImage: OpenGraphImage | undefined;
|
|
1850
|
-
/** The emitted manifest's `repository` field; a GitHub Packages target derives its page URL from it. */
|
|
1851
|
-
readonly repository?: ManifestRepository | undefined;
|
|
1852
|
-
}
|
|
1853
|
-
/**
|
|
1854
|
-
* The `repository` field of the emitted `package.json`, as far as the manifest composer reads it.
|
|
1855
|
-
*
|
|
1856
|
-
* @public
|
|
1857
|
-
*/
|
|
1858
|
-
interface ManifestRepository {
|
|
1859
|
-
readonly url: string;
|
|
1860
|
-
readonly directory?: string | undefined;
|
|
1861
|
-
}
|
|
1862
|
-
/**
|
|
1863
|
-
* `owner/repo` from any of the GitHub URL spellings a `repository.url` carries (https, `git+https`,
|
|
1864
|
-
* `git@`, `ssh://`, `git://`, the `github:` shorthand), or `undefined` for anything else.
|
|
1865
|
-
*
|
|
1866
|
-
* @public
|
|
1867
|
-
*/
|
|
1868
|
-
export declare function githubOwnerRepo(url: string): {
|
|
1869
|
-
readonly owner: string;
|
|
1870
|
-
readonly repo: string;
|
|
1871
|
-
} | undefined;
|
|
1872
|
-
/**
|
|
1873
|
-
* Derive the registries block from the build's targets. Only for a public
|
|
1874
|
-
* package: a private one is published nowhere.
|
|
1875
|
-
*
|
|
1876
|
-
* @public
|
|
1877
|
-
*/
|
|
1878
|
-
export declare function registriesFromTargets(input: Pick<ComposeManifestInput, "targets" | "packageName" | "isPrivate" | "repository">): ReadonlyArray<RegistryRef>;
|
|
1879
|
-
/**
|
|
1880
|
-
* Flatten the three authoring tiers into the emitted manifest. Pure.
|
|
1881
|
-
*
|
|
1882
|
-
* @remarks
|
|
1883
|
-
* Config beats leaf beats project per FIELD; the project tier is emitted
|
|
1884
|
-
* nested, never flattened, because the consumer's provenance ranking depends
|
|
1885
|
-
* on telling the tiers apart. Returns `undefined` when there is nothing to
|
|
1886
|
-
* say, so a package with no metadata emits no file. An `sbom` pointer is
|
|
1887
|
-
* never written here — the release action upserts it at publish.
|
|
1888
|
-
*
|
|
1889
|
-
* @public
|
|
1890
|
-
*/
|
|
1891
|
-
export declare function composeTsdoctorManifest(input: ComposeManifestInput): BundleManifest | undefined;
|
|
1892
|
-
/**
|
|
1893
|
-
* What the generator sees. Built from the same tiers as the manifest.
|
|
1894
|
-
*
|
|
1895
|
-
* @public
|
|
1896
|
-
*/
|
|
1897
|
-
export declare function ogImageInfoOf(input: ComposeManifestInput & {
|
|
1898
|
-
readonly version: string;
|
|
1899
|
-
}): OgImageInfo;
|
|
1900
1583
|
/** @public */
|
|
1901
1584
|
interface GenerateMetaOptions {
|
|
1902
1585
|
readonly cwd: string;
|
|
@@ -1934,13 +1617,13 @@ interface GenerateMetaOptions {
|
|
|
1934
1617
|
/** When set, messages matched by `suppressWarnings` are routed here for accounting. */
|
|
1935
1618
|
readonly onSuppressed?: ((entry: DiagnosticInput) => void) | undefined;
|
|
1936
1619
|
/**
|
|
1937
|
-
* The `
|
|
1620
|
+
* The `bundle.json` sidecar inputs: the config tier, the two source tiers, and the targets bound
|
|
1938
1621
|
* to this group (registries derive from them). Omitted means no sidecar and no Open Graph image.
|
|
1939
1622
|
*/
|
|
1940
|
-
readonly
|
|
1941
|
-
readonly config:
|
|
1942
|
-
readonly leaf: ManifestSource | undefined;
|
|
1943
|
-
readonly project: ManifestSource | undefined;
|
|
1623
|
+
readonly bundle?: {
|
|
1624
|
+
readonly config: BundleMetaOptions | undefined;
|
|
1625
|
+
readonly leaf: ManifestSource$1 | undefined;
|
|
1626
|
+
readonly project: ManifestSource$1 | undefined;
|
|
1944
1627
|
readonly targets: ReadonlyArray<ManifestTarget>;
|
|
1945
1628
|
} | undefined;
|
|
1946
1629
|
}
|
|
@@ -1949,16 +1632,16 @@ interface MetaResult {
|
|
|
1949
1632
|
readonly apiJsonPath: string;
|
|
1950
1633
|
readonly apiJsonFilename: string;
|
|
1951
1634
|
}
|
|
1952
|
-
declare const
|
|
1953
|
-
readonly _tag: "
|
|
1635
|
+
declare const BundleManifestSourceError_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 & {
|
|
1636
|
+
readonly _tag: "BundleManifestSourceError";
|
|
1954
1637
|
} & Readonly<A>;
|
|
1955
1638
|
/**
|
|
1956
|
-
* A present `
|
|
1639
|
+
* A present `bundle.json` source file that could not be parsed or decoded. Absence is never
|
|
1957
1640
|
* this error — a missing source tier is the normal case.
|
|
1958
1641
|
*
|
|
1959
1642
|
* @public
|
|
1960
1643
|
*/
|
|
1961
|
-
export declare class
|
|
1644
|
+
export declare class BundleManifestSourceError extends BundleManifestSourceError_base<{
|
|
1962
1645
|
readonly path: string;
|
|
1963
1646
|
readonly cause: unknown;
|
|
1964
1647
|
}> {
|
|
@@ -1969,24 +1652,30 @@ export declare class TsdoctorSourceError extends TsdoctorSourceError_base<{
|
|
|
1969
1652
|
*
|
|
1970
1653
|
* @public
|
|
1971
1654
|
*/
|
|
1972
|
-
interface
|
|
1973
|
-
readonly leaf: ManifestSource | undefined;
|
|
1974
|
-
readonly project: ManifestSource | undefined;
|
|
1655
|
+
interface BundleManifestSources {
|
|
1656
|
+
readonly leaf: ManifestSource$1 | undefined;
|
|
1657
|
+
readonly project: ManifestSource$1 | undefined;
|
|
1975
1658
|
/**
|
|
1976
1659
|
* Why workspace discovery failed, when it did. The project tier is then unknown rather than
|
|
1977
1660
|
* absent; `runMetaPass` records it as a `meta` warning so the degradation is visible in `issues.json`.
|
|
1978
1661
|
*/
|
|
1979
1662
|
readonly discoveryFailure?: string | undefined;
|
|
1663
|
+
/**
|
|
1664
|
+
* Source files under the retired name `tsdoctor.json`, at a tier with no `bundle.json`. They are never
|
|
1665
|
+
* read; `runMetaPass` records each as a `meta` warning so a missed rename is visible instead of the tier
|
|
1666
|
+
* silently disappearing. Absent when there are none.
|
|
1667
|
+
*/
|
|
1668
|
+
readonly retiredSources?: ReadonlyArray<string> | undefined;
|
|
1980
1669
|
}
|
|
1981
1670
|
/**
|
|
1982
|
-
* Read the leaf (`<cwd>/
|
|
1671
|
+
* Read the leaf (`<cwd>/bundle.json`) and project (`<workspaceRoot>/bundle.json`)
|
|
1983
1672
|
* source tiers. Absence is normal; a present file that does not decode throws
|
|
1984
|
-
* {@link
|
|
1673
|
+
* {@link BundleManifestSourceError}. A package that IS the workspace root reads its file once, as the
|
|
1985
1674
|
* leaf, and has no project tier.
|
|
1986
1675
|
*
|
|
1987
1676
|
* @public
|
|
1988
1677
|
*/
|
|
1989
|
-
export declare function
|
|
1678
|
+
export declare function loadBundleManifestSources(cwd: string): Promise<BundleManifestSources>;
|
|
1990
1679
|
/**
|
|
1991
1680
|
* Options for the meta-pass orchestrator.
|
|
1992
1681
|
*
|
|
@@ -2016,7 +1705,7 @@ interface RunMetaPassOptions {
|
|
|
2016
1705
|
versions: ReadonlyMap<string, string>;
|
|
2017
1706
|
}>;
|
|
2018
1707
|
/**
|
|
2019
|
-
* The resolved `targets.json` targets; each group's `
|
|
1708
|
+
* The resolved `targets.json` targets; each group's `bundle.json` derives its registries from the
|
|
2020
1709
|
* targets bound to that group. Omitted (an escape-hatch build with no resolution) means none.
|
|
2021
1710
|
*/
|
|
2022
1711
|
readonly targets?: ReadonlyArray<{
|
|
@@ -2024,8 +1713,8 @@ interface RunMetaPassOptions {
|
|
|
2024
1713
|
id: string;
|
|
2025
1714
|
registry: string;
|
|
2026
1715
|
}> | undefined;
|
|
2027
|
-
/** Injectable for tests; defaults to the real
|
|
2028
|
-
readonly
|
|
1716
|
+
/** Injectable for tests; defaults to the real loadBundleManifestSources. */
|
|
1717
|
+
readonly loadBundleManifestSources?: (cwd: string) => Promise<BundleManifestSources>;
|
|
2029
1718
|
}
|
|
2030
1719
|
/** @public */
|
|
2031
1720
|
type Json = Record<string, unknown>;
|
|
@@ -2214,7 +1903,7 @@ interface DeriveOptions {
|
|
|
2214
1903
|
* - pass 1 (this) emits per-module JS (`unbundle: true`) with `dts: false` and the
|
|
2215
1904
|
* default `clean: true`, so it starts from a fresh outDir;
|
|
2216
1905
|
* - pass 2 (`DerivedDtsPassOptions`) emits ONLY bundled declarations (`unbundle: false`,
|
|
2217
|
-
* `dts: {
|
|
1906
|
+
* `dts: { dtsOnly: true }` (`emitDtsOnly` below rolldown-plugin-dts 0.30)) with `clean: false`, so it must NOT wipe pass 1.
|
|
2218
1907
|
*
|
|
2219
1908
|
* We cannot do this in a single pass: tsdown's `unbundle` maps to rolldown
|
|
2220
1909
|
* `output.preserveModules` for the WHOLE build, and the dts plugin shares it — so one pass
|
|
@@ -2297,7 +1986,7 @@ interface DerivedTsdownOptions {
|
|
|
2297
1986
|
* the per-module JS the JS pass just wrote). `unbundle: false` makes rolldown roll the
|
|
2298
1987
|
* declarations up per public entry, so a type re-exported through the root entry lands inline
|
|
2299
1988
|
* in `index.d.ts` (fixing TS2883) instead of as a per-module sibling `.d.ts`.
|
|
2300
|
-
* `dts: {
|
|
1989
|
+
* `dts: { dtsOnly: true }` (`emitDtsOnly` below rolldown-plugin-dts 0.30) strips the JS chunks this pass would otherwise produce.
|
|
2301
1990
|
*
|
|
2302
1991
|
* Dual format: when `format` includes `cjs`, the dts pass still emits both `index.d.ts` (esm)
|
|
2303
1992
|
* and `index.d.cts` (cjs) to the shared outDir.
|
|
@@ -2333,7 +2022,10 @@ interface DerivedDtsPassOptions {
|
|
|
2333
2022
|
*/
|
|
2334
2023
|
interface DtsPassDtsOptions {
|
|
2335
2024
|
readonly tsconfig: string;
|
|
2336
|
-
|
|
2025
|
+
/** Declarations only; read by rolldown-plugin-dts 0.30 and later. Exactly one of this and `emitDtsOnly` is set. */
|
|
2026
|
+
readonly dtsOnly?: true;
|
|
2027
|
+
/** The pre-0.30 spelling of `dtsOnly`; 0.30 still reads it but logs a deprecation warning. */
|
|
2028
|
+
readonly emitDtsOnly?: true;
|
|
2337
2029
|
readonly generator: "tsgo";
|
|
2338
2030
|
readonly tsgo: {
|
|
2339
2031
|
readonly moduleUrl: string;
|
|
@@ -2342,9 +2034,12 @@ interface DtsPassDtsOptions {
|
|
|
2342
2034
|
/**
|
|
2343
2035
|
* Build the {@link DtsPassDtsOptions} for a resolved tsconfig path.
|
|
2344
2036
|
*
|
|
2037
|
+
* @param tsconfig - The resolved tsconfig path.
|
|
2038
|
+
* @param pluginVersion - The rolldown-plugin-dts version to target; defaults to the copy tsdown loads.
|
|
2039
|
+
*
|
|
2345
2040
|
* @public
|
|
2346
2041
|
*/
|
|
2347
|
-
export declare const dtsPassDtsOptions: (tsconfig: string) => DtsPassDtsOptions;
|
|
2042
|
+
export declare const dtsPassDtsOptions: (tsconfig: string, pluginVersion?: string | undefined) => DtsPassDtsOptions;
|
|
2348
2043
|
/**
|
|
2349
2044
|
* The output dir for a group: `dist/prod/\<group\>/pkg`, or `dist/dev/pkg` for the unused dev group.
|
|
2350
2045
|
*
|
|
@@ -2542,10 +2237,12 @@ interface BuildTargetGroupsOptions {
|
|
|
2542
2237
|
readonly minify?: boolean | undefined;
|
|
2543
2238
|
/** Top-level `package.json` keys deleted from every emitted manifest, after the standard stripping. */
|
|
2544
2239
|
readonly drop?: ReadonlyArray<string> | undefined;
|
|
2240
|
+
/** Top-level string keys written over every emitted manifest after `drop`; `name` is carried by each group. */
|
|
2241
|
+
readonly set?: Readonly<Record<string, string>> | undefined;
|
|
2545
2242
|
/**
|
|
2546
2243
|
* Extra rolldown plugins, forwarded to BOTH the JS pass and the dts-only pass. A plugin
|
|
2547
2244
|
* with JS-lifecycle side effects (asset emitters, banner injectors) runs in both passes;
|
|
2548
|
-
* the dts pass
|
|
2245
|
+
* the dts pass is declarations-only, so for esm-only builds it produces no JS chunks and most
|
|
2549
2246
|
* rolldown hooks are no-ops there. For DUAL (esm+cjs) builds, however, tsdown's dts pass
|
|
2550
2247
|
* still RE-EMITS the `.cjs` JS chunk and overwrites the JS pass's `.cjs` output — so a
|
|
2551
2248
|
* `renderChunk`/`generateBundle` plugin that must persist onto the final `.cjs` (e.g. the
|
|
@@ -2618,7 +2315,7 @@ interface BuildTargetGroupsOptions {
|
|
|
2618
2315
|
* Each group runs TWO passes to the SAME outDir:
|
|
2619
2316
|
* 1. JS pass — per-module JS (`unbundle: true`, `dts: false`), with the `emitManifest` plugin
|
|
2620
2317
|
* and the `public/` copy. Default `clean: true` gives it a fresh outDir.
|
|
2621
|
-
* 2. dts pass — bundled declarations only (`unbundle: false`, `dts: {
|
|
2318
|
+
* 2. dts pass — bundled declarations only (`unbundle: false`, `dts: { dtsOnly: true }` (`emitDtsOnly` below rolldown-plugin-dts 0.30),
|
|
2622
2319
|
* `clean: false`). No manifest plugin, no copy, no sourcemaps. `clean: false` is load-bearing:
|
|
2623
2320
|
* it must NOT wipe the JS the first pass just wrote.
|
|
2624
2321
|
*
|
|
@@ -2795,8 +2492,8 @@ interface BundlerBuildOptions {
|
|
|
2795
2492
|
readonly cwd: string;
|
|
2796
2493
|
/** The decoded `[package.build]` table. */
|
|
2797
2494
|
readonly config: PackageBuildConfig;
|
|
2798
|
-
/** The decoded `[package.
|
|
2799
|
-
readonly
|
|
2495
|
+
/** The decoded `[package.bundle]` table, the config tier of the emitted `bundle.json`. */
|
|
2496
|
+
readonly bundle: BundleConfig | undefined;
|
|
2800
2497
|
/** Skips the SEA compile. The manifest still points at the binary. */
|
|
2801
2498
|
readonly noExe: boolean;
|
|
2802
2499
|
/** Measures gzip sizes for the report. */
|
|
@@ -2836,8 +2533,13 @@ export declare class Bundler {
|
|
|
2836
2533
|
* It writes nothing to stdout; rendering the report belongs to the caller. A structurally invalid config fails
|
|
2837
2534
|
* {@link ConfigValidationError} before any build work, and anything thrown afterwards fails
|
|
2838
2535
|
* {@link BundlerError} naming the phase. Both paths write `issues.json` stamped `buildOk: false` first.
|
|
2536
|
+
*
|
|
2537
|
+
* The build's own reads and writes (`package.json`, the package's tsconfig, `targets.json`, `issues.json`, the
|
|
2538
|
+
* emitted manifest's checks) go through the provided `FileSystem` and `Path`, while tsdown, API Extractor and the
|
|
2539
|
+
* SEA compiler always work on the host disk. Provide the host's (`NodeServices.layer`) for a real build. A memory
|
|
2540
|
+
* filesystem suits a build whose passes are all replaced through `seams`.
|
|
2839
2541
|
*/
|
|
2840
|
-
static readonly build: (options: BundlerBuildOptions) => Effect.Effect<BundlerBuildResult, BundlerError | ConfigValidationError>;
|
|
2542
|
+
static readonly build: (options: BundlerBuildOptions) => Effect.Effect<BundlerBuildResult, BundlerError | ConfigValidationError, FileSystem.FileSystem | Path.Path>;
|
|
2841
2543
|
}
|
|
2842
2544
|
/**
|
|
2843
2545
|
* Minimal shape of a `package.json` manifest needed to resolve catalog and
|
|
@@ -3038,7 +2740,7 @@ declare const ConfigValidator_base: Context.ServiceClass<ConfigValidator, "@savv
|
|
|
3038
2740
|
* @public
|
|
3039
2741
|
*/
|
|
3040
2742
|
export declare class ConfigValidator extends ConfigValidator_base {
|
|
3041
|
-
static readonly layer: Layer.Layer<ConfigValidator>;
|
|
2743
|
+
static readonly layer: Layer.Layer<ConfigValidator, never, FileSystem.FileSystem>;
|
|
3042
2744
|
}
|
|
3043
2745
|
/**
|
|
3044
2746
|
* The analysis of an entry source treated as a candidate re-export barrel.
|
|
@@ -3442,17 +3144,17 @@ export declare function serializeIssues(issues: BuildIssues): string;
|
|
|
3442
3144
|
*
|
|
3443
3145
|
* @public
|
|
3444
3146
|
*/
|
|
3445
|
-
export declare
|
|
3446
|
-
cwd: string;
|
|
3447
|
-
target: "dev" | "prod";
|
|
3448
|
-
reports: ReadonlyArray<BuildReport>;
|
|
3449
|
-
now?: () => Date;
|
|
3450
|
-
buildOk?: boolean | undefined;
|
|
3451
|
-
failure?: {
|
|
3452
|
-
name?: string | undefined;
|
|
3453
|
-
message: string;
|
|
3147
|
+
export declare const writeIssuesArtifact: (opts: {
|
|
3148
|
+
readonly cwd: string;
|
|
3149
|
+
readonly target: "dev" | "prod";
|
|
3150
|
+
readonly reports: ReadonlyArray<BuildReport>;
|
|
3151
|
+
readonly now?: () => Date;
|
|
3152
|
+
readonly buildOk?: boolean | undefined;
|
|
3153
|
+
readonly failure?: {
|
|
3154
|
+
readonly name?: string | undefined;
|
|
3155
|
+
readonly message: string;
|
|
3454
3156
|
} | undefined;
|
|
3455
|
-
})
|
|
3157
|
+
}) => Effect.Effect<string, PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
3456
3158
|
declare const IssueJournal_base: import("@effected/jsonl").JournalClass<IssueJournal, "effected/IssueJournal", readonly [JsonlEvent<"issue", Schema.Struct<{
|
|
3457
3159
|
readonly source: Schema.Literals<readonly ["tsdown", "rolldown", "api-extractor", "meta", "config"]>;
|
|
3458
3160
|
readonly level: Schema.Literals<readonly ["warn", "error"]>;
|
|
@@ -3480,7 +3182,7 @@ export declare class IssueJournal extends IssueJournal_base {
|
|
|
3480
3182
|
*
|
|
3481
3183
|
* @param root - The workspace root.
|
|
3482
3184
|
*/
|
|
3483
|
-
static readonly layerAt: (root: string) => Layer.Layer<IssueJournal, PlatformError.PlatformError, FileSystem.FileSystem | JournalWatcher>;
|
|
3185
|
+
static readonly layerAt: (root: string) => Layer.Layer<IssueJournal, PlatformError.PlatformError, FileSystem.FileSystem | Path.Path | JournalWatcher>;
|
|
3484
3186
|
}
|
|
3485
3187
|
declare const BuildJournal_base: import("@effected/jsonl").JournalClass<BuildJournal, "effected/BuildJournal", readonly [JsonlEvent<"build", Schema.Struct<{
|
|
3486
3188
|
readonly package: Schema.String;
|
|
@@ -3510,7 +3212,7 @@ export declare class BuildJournal extends BuildJournal_base {
|
|
|
3510
3212
|
*
|
|
3511
3213
|
* @param root - The workspace root.
|
|
3512
3214
|
*/
|
|
3513
|
-
static readonly layerAt: (root: string) => Layer.Layer<BuildJournal, PlatformError.PlatformError, FileSystem.FileSystem | JournalWatcher>;
|
|
3215
|
+
static readonly layerAt: (root: string) => Layer.Layer<BuildJournal, PlatformError.PlatformError, FileSystem.FileSystem | Path.Path | JournalWatcher>;
|
|
3514
3216
|
/**
|
|
3515
3217
|
* Appends one finished build: a line per error and warning, then the build's own line.
|
|
3516
3218
|
*
|
|
@@ -3522,7 +3224,7 @@ export declare class BuildJournal extends BuildJournal_base {
|
|
|
3522
3224
|
* @param issues - The build's `issues.json`.
|
|
3523
3225
|
* @param cwd - The package directory the artifact sits under.
|
|
3524
3226
|
*/
|
|
3525
|
-
static readonly record: (issues: typeof BuildIssuesSchema.Type, cwd: string) => Effect.Effect<void, AppendError, BuildJournal | IssueJournal>;
|
|
3227
|
+
static readonly record: (issues: typeof BuildIssuesSchema.Type, cwd: string) => Effect.Effect<void, AppendError, BuildJournal | IssueJournal | Path.Path>;
|
|
3526
3228
|
}
|
|
3527
3229
|
/** @public */
|
|
3528
3230
|
interface TargetGroupRef {
|
|
@@ -3540,6 +3242,8 @@ interface BuildEmittedManifestOptions {
|
|
|
3540
3242
|
readonly devManifest: "preserve" | "resolve";
|
|
3541
3243
|
/** Top-level keys deleted from the emitted manifest, after the standard stripping. */
|
|
3542
3244
|
readonly drop?: ReadonlyArray<string> | undefined;
|
|
3245
|
+
/** Top-level string keys written over the emitted manifest after `drop`; `name` is carried by `targetGroup`. */
|
|
3246
|
+
readonly set?: Readonly<Record<string, string>> | undefined;
|
|
3543
3247
|
/** Which exports emit dual import/require conditions. boolean (uniform) or a Set of export keys (per-entry). */
|
|
3544
3248
|
readonly dual?: DualExports | undefined;
|
|
3545
3249
|
/** Export keys built into a `<key>/index.*` subdir (e.g. an RSPress `./runtime`). */
|
|
@@ -3569,6 +3273,8 @@ interface EmitManifestOptions {
|
|
|
3569
3273
|
readonly devManifest?: "preserve" | "resolve" | undefined;
|
|
3570
3274
|
/** Top-level keys deleted from the emitted manifest, after the standard stripping. */
|
|
3571
3275
|
readonly drop?: ReadonlyArray<string> | undefined;
|
|
3276
|
+
/** Top-level string keys written over the emitted manifest after `drop`; `name` is carried by `targetGroup`. */
|
|
3277
|
+
readonly set?: Readonly<Record<string, string>> | undefined;
|
|
3572
3278
|
/** Source package dir to read package.json/LICENSE/README from. */
|
|
3573
3279
|
readonly sourceDir: string;
|
|
3574
3280
|
/** Which exports emit dual import/require conditions. boolean (uniform) or a Set of export keys (per-entry). */
|
|
@@ -3602,7 +3308,7 @@ export declare class OgGenerateError extends OgGenerateError_base<{
|
|
|
3602
3308
|
get message(): string;
|
|
3603
3309
|
}
|
|
3604
3310
|
/**
|
|
3605
|
-
* The renderer an `[package.
|
|
3311
|
+
* The renderer an `[package.bundle.openGraph] generate` name selects.
|
|
3606
3312
|
*
|
|
3607
3313
|
* @remarks
|
|
3608
3314
|
* Nothing renders here, but a build asking for an image fails now rather than after its passes when a peer is absent.
|
|
@@ -3652,7 +3358,7 @@ interface WriteGeneratedOgImageOptions {
|
|
|
3652
3358
|
*
|
|
3653
3359
|
* @public
|
|
3654
3360
|
*/
|
|
3655
|
-
export declare function writeGeneratedOgImage(options: WriteGeneratedOgImageOptions): Promise<OpenGraphImage>;
|
|
3361
|
+
export declare function writeGeneratedOgImage(options: WriteGeneratedOgImageOptions): Promise<OpenGraphImage$1>;
|
|
3656
3362
|
/**
|
|
3657
3363
|
* Rewrite a meta `package.json` so the package's own `version` and any workspace-sibling
|
|
3658
3364
|
* dependency version reflect their NEXT release version from `versions`. Pure: returns a new
|
|
@@ -3793,7 +3499,7 @@ export declare function nodeBuiltinDefaultInterop(): Plugin;
|
|
|
3793
3499
|
* vendored tree — only the package's own emitted declarations carry maps worth stripping.
|
|
3794
3500
|
* @public
|
|
3795
3501
|
*/
|
|
3796
|
-
export declare
|
|
3502
|
+
export declare const removeDeclarationMaps: (pkgDir: string) => Effect.Effect<ReadonlyArray<string>, DescendError | PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
3797
3503
|
/**
|
|
3798
3504
|
* Copy the CONTENTS of `sourceDir` into `outDir`, additively.
|
|
3799
3505
|
*
|
|
@@ -3894,7 +3600,7 @@ export declare function createTsdownLogger(collector: BuildCollector, groupId: s
|
|
|
3894
3600
|
*
|
|
3895
3601
|
* @public
|
|
3896
3602
|
*/
|
|
3897
|
-
export declare
|
|
3603
|
+
export declare const writeTargetsBinding: (cwd: string, resolution: TargetResolution) => Effect.Effect<string, PlatformError.PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
3898
3604
|
/**
|
|
3899
3605
|
* Resolve a `publishConfig.targets` map into the distinct groups to build and every target bound to one. Pure; throws ConfigValidationError on structurally-invalid config.
|
|
3900
3606
|
*
|
|
@@ -3915,5 +3621,5 @@ export declare function resolveTargets(options: {
|
|
|
3915
3621
|
* @public
|
|
3916
3622
|
*/
|
|
3917
3623
|
export declare function releaseWarnings(resolution: TargetResolution): ReadonlyArray<string>;
|
|
3918
|
-
export { type ActionBuilderError, type ActionBuilderOptions, type ActionValidationRunOptions, type AmbientDtsEntry, type BuildEmittedManifestOptions, type BuildFormat$1 as BuildFormatOption, type BuildGroupSpec, type BuildIssues, type BuildPlatform$1 as BuildPlatformOption, type BuildTargetGroupsOptions, type BundlerBuildOptions, type BundlerPackageJson, type BundlerSeams, type ComposeManifestInput, type CopyAmbientDtsOptions, type CssOptions, type DeriveOptions, type DerivedDeclarationsPassOptions, type DerivedDtsPassOptions, type DerivedTsdownOptions, type DiagnosticInput, type DtsEmitTsconfigOptions, type DtsExportClass, type DtsPassDtsOptions, type DualExports, type EmitManifestOptions, type EntryOverride$1 as EntryOverrideOptions, type ExeBuild, type ExeConfig$1 as ExeOptions, type ExeRewrite, type ExeSeaConfig$1 as ExeSeaOptions, type ExeTarget, type ExeTargetInput, type ExtractAmbientOptions, type ExtractOptions, type ExtractResult, type GenerateMetaOptions, type Json, type KnownRegistryType, type LooseFileSpec as LooseFileOptions, LooseFileSpec$1 as LooseFileSpec, type LooseFiles, type ManifestLike, type ManifestRepository, type ManifestTarget, type MetaOptions, type MetaResult, type TsdocTagDefinition as MetaTsdocTagDefinition, type WarningSuppressionRule as MetaWarningSuppressionRule, type ModuleExportNames, type NextVersions, type NormalizedExe, type NormalizedLooseFile, type NormalizedMeta, type OgImageCacheOptions, type OgImageGenerator, type OgImageInfo, type PackageJsonEntriesOptions, type PackageJsonLike, type PassKind, type PkgOsCpu, type PlainDiagnostic, type PortableTsconfig, type PublishTargetObject, type PublishTargetValue, type PublishTargets, type ReexportBarrelAnalysis, type ReleaseChannel, type ResolvedCompilerOptions, type ResolvedGroup, type JsxConfig$1 as ResolvedJsxConfig, type ResolvedTarget, type ResolvedTsconfig, type ResolvedTsconfigOptions, type RunExeBuildOptions, type RunMetaPassOptions, type TargetGroupId, type TargetGroupRef, type TargetResolution, type Timer, type TransformManifestOptions, type TsconfigJsx, type TsdocOptions, TsdocTagDefinition$1 as TsdocTagDefinition, type
|
|
3624
|
+
export { type ActionBuilderError, type ActionBuilderOptions, type ActionValidationRunOptions, type AmbientDtsEntry, BUNDLE_MANIFEST_FILENAME, type BuildEmittedManifestOptions, type BuildFormat$1 as BuildFormatOption, type BuildGroupSpec, type BuildIssues, type BuildPlatform$1 as BuildPlatformOption, type BuildTargetGroupsOptions, BundleManifest, BundleManifestError, type BundleManifestSources, type BundleMetaOptions, type BundlerBuildOptions, type BundlerPackageJson, type BundlerSeams, type ComposeManifestInput, type CopyAmbientDtsOptions, type CssOptions, type DeriveOptions, type DerivedDeclarationsPassOptions, type DerivedDtsPassOptions, type DerivedTsdownOptions, type DiagnosticInput, type DtsEmitTsconfigOptions, type DtsExportClass, type DtsPassDtsOptions, type DualExports, type EmitManifestOptions, type EntryOverride$1 as EntryOverrideOptions, type ExeBuild, type ExeConfig$1 as ExeOptions, type ExeRewrite, type ExeSeaConfig$1 as ExeSeaOptions, type ExeTarget, type ExeTargetInput, type ExtractAmbientOptions, type ExtractOptions, type ExtractResult, type GenerateMetaOptions, type Json, KNOWN_REGISTRY_TYPES, type KnownRegistryType, type LooseFileSpec as LooseFileOptions, LooseFileSpec$1 as LooseFileSpec, type LooseFiles, MANIFEST_SPEC, type ManifestLike, type ManifestRepository, ManifestSource, type ManifestTarget, type MetaOptions, type MetaResult, type TsdocTagDefinition as MetaTsdocTagDefinition, type WarningSuppressionRule as MetaWarningSuppressionRule, type ModuleExportNames, type NextVersions, type NormalizedExe, type NormalizedLooseFile, type NormalizedMeta, type OgImageCacheOptions, type OgImageGenerator, type OgImageInfo, OpenGraphConfig, OpenGraphImage, type PackageJsonEntriesOptions, type PackageJsonLike, type PassKind, type PkgOsCpu, type PlainDiagnostic, type PortableTsconfig, ProjectIdentity, type PublishTargetObject, type PublishTargetValue, type PublishTargets, type ReexportBarrelAnalysis, RegistryRef, type ReleaseChannel, type ResolvedCompilerOptions, type ResolvedGroup, type JsxConfig$1 as ResolvedJsxConfig, type ResolvedTarget, type ResolvedTsconfig, type ResolvedTsconfigOptions, type RunExeBuildOptions, type RunMetaPassOptions, SbomRef, type TargetGroupId, type TargetGroupRef, type TargetResolution, type Timer, type TransformManifestOptions, type TsconfigJsx, type TsdocOptions, TsdocTagDefinition$1 as TsdocTagDefinition, type TsdownBuild, type TsdownLogger, type ValidationInput, WarningSuppressionRule$1 as WarningSuppressionRule, type WriteGeneratedOgImageOptions, decodeBundleManifest, decodeManifestSource, encodeBundleManifest, isKnownRegistryType };
|
|
3919
3625
|
//# sourceMappingURL=index.d.ts.map
|