Skip to content

@saflib/monorepo


src/package-exports ​

Interfaces ​

InterfaceDescription
ExportModulePathLayout-

Functions ​

FunctionDescription
exportGlobForTopLevelSegment-
prepareNewPackageExports-
resolveExportModulePathLayoutValidates an export module path from parsePath and returns how to upsert package.json exports (glob on the first folder segment, or an explicit ./stem entry for allowlisted root files).
stripTemplateExportPlaceholdersRemove template placeholder export keys/values (e.g. ./__group-name__/*).
upsertExplicitExport-
upsertExportGlob-
upsertPackageExportForModule-
upsertPackageJsonExportsForModule-

References ​

importGlobForTopLevelSegment ​

Re-exports importGlobForTopLevelSegment


importsFromExports ​

Re-exports importsFromExports


ROOT_IMPORT_CATCHALL ​

Re-exports ROOT_IMPORT_CATCHALL


stripTemplateImportPlaceholders ​

Re-exports stripTemplateImportPlaceholders


upsertImportGlob ​

Re-exports upsertImportGlob