src/resolve
Functions
| Function | Description |
|---|---|
| buildPackageIndex | Build a map of workspace package name → { dir, exports }. Scans the tree (SAF layout); does not depend on @saflib/dev-tools. |
| existsResolve | Resolve a path candidate with common TS/Vue extensions and index files. |
| externalRoot | npm package root for a bare specifier (stripe, @scope/pkg). |
| findMonorepoRoot | Walk up from fromDir until a package.json with a workspaces field is found. |
| resolvePackageExportPath | Resolve a package export subpath to an absolute file path (no extension probing). |
| resolveSpecifier | Resolve an import specifier relative to fromFile against the package index. Returns a workspace file, an external root, or null (unresolved relative). |
References
matchExportPattern
Re-exports matchExportPattern
sortExportPatternKeys
Re-exports sortExportPatternKeys