Skip to content

@saflib/imports


src/graph/import-resolution

Interfaces

InterfaceDescription
ImportUsedByResolve import specifiers to modules within a known package — no FS, linear string ops only.

Functions

FunctionDescription
exportUsedByKey-
moduleTargetFromImportIf specifier targets packageName, return the package-relative module path without extension (e.g. form-artifact-paths, queries/matter/create). Relative imports only resolve when the importer lives under packageDirectory.
packageLocalPathPackage-local path for display: strip the package directory prefix.
resolveRelativePOSIX-ish resolve of fromDir/specifier without touching the filesystem.
stripTsExt-