Skip to content

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.

Parameter Type
packageDir string
limits ResolvedResourceLimits

Promise<PackageFileIndex>