Skip to content

@saflib/monorepo


src/exports/generate-exports ​

Interfaces ​

InterfaceDescription
CheckExportsResult-
ComputeExportsOptions-

Type Aliases ​

Type AliasDescription
ExportsMap-

Functions ​

FunctionDescription
checkExportPatternCoverageVerify export patterns cover every exportable file (hybrid / wildcard maps).
checkExportsDiff generated exports against committed package.json exports. Packages with wildcard export keys use pattern coverage validation instead.
collectPublicExportRepoPathsRepo-relative paths of source files that are direct package.json export targets (including pattern exports). Used to skip dead-code on public API.
computeExportsMapCompute the heuristic exports map for a package. index.ts in a directory maps to ./<dir> (or . at package root).
exportsAliasesDiffsFail closed on package.json exportsAliases (explicit remaps).
generateExportsWrite computed exports into package.json. Refuses if WORKFLOW AREA markers are present (M0 limitation).
leafExportRemapDiffsLeaf export keys must mirror disk paths (no ./foo → ./lib/foo.ts remaps). Pattern keys (*) are skipped here — validated by pattern coverage.
listExportableFilesList exportable source files: all .ts/.tsx under the package directory (recursive). Excludes tests, fixtures, bin, docs, workflows, and env.ts.
packageHasWorkflowMarkersTrue if package.json text contains a WORKFLOW AREA marker.
resolvePackageDirResolve a workspace package name to its directory.
sortExportsMap-