buildPackageFileIndex
function buildPackageFileIndex(packageDir, limits?): Promise<PackageFileIndex>;Defined in: analyze/file-index.ts:35
Traverse an extracted package once and retain only bounded file metadata. File contents stay on disk and are read lazily by the analyzers that need them, keeping the shared index useful even for large packages.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
packageDir |
string |
limits |
ResolvedResourceLimits |
Returns
Section titled “Returns”Promise<PackageFileIndex>