Skip to main content

detect_package_manager

Function detect_package_manager 

Source
pub fn detect_package_manager(dir: &Path) -> PackageManager
Expand description

Detects the package manager by checking for lock files in the given directory Priority: bun.lockb > pnpm-lock.yaml > yarn.lock > package-lock.json > npm (default)