Skip to content

pickPackageManager

pickPackageManager(field, has): PackageManager

Defined in: src/readiness.ts:262

Resolves the target repo’s package manager from its packageManager field (highest authority), else a root lockfile, else npm (universal fallback). Pure: has(rel) is the scan’s root-aware existence probe, so detection spans the repo root and any package subdir without re-reading the tree.

string | undefined

(rel) => boolean

PackageManager