Skip to content

@saflib/imports


Function: buildPackageIndex() ​

buildPackageIndex(root): PackageIndex

Build a map of workspace package name → { dir, exports }. Scans the tree (SAF layout); does not depend on @saflib/dev-tools.

Parameters ​

ParameterType
rootstring

Returns ​

PackageIndex