GenerateLibraryExportsOptions
Options for generateLibraryExports.
Import:
import type { GenerateLibraryExportsOptions } from '@mnaoumov/typescript-dev-toolkit/library-build';Signature:
export interface GenerateLibraryExportsOptionsProperties
| Property | Type | Description |
|---|---|---|
| additionalExports? | Readonly<Record<string, PackageJson.Exports>> | undefined | Entries for files that are not built from a source folder (a folder of shared tsconfig presets, ambient .d.ts files), keyed by subpath. They go into the map after the generated entries, as given, and count toward its change check; no subpath stub is written for them. A key a source folder already generates throws. |
| sourceCondition? | string | undefined | An export condition to put first in every entry, mapping the subpath onto its TypeScript source. Only a repository holding several packages that import each other needs one; nothing outside it sets the condition, and the sources it points at do not ship, so the publish has to strip it again. Omitted, the map has none. |
Links to this page: