Skip to main content

resolve_package_manager

Function resolve_package_manager 

Source
pub fn resolve_package_manager(
    env_value: Option<&str>,
    root: &Path,
) -> PackageManager
Expand description

Resolve the package manager: an explicit PKG_MANAGER env value wins (action parity; unrecognized values fall back to npm exactly like the jq else branch), otherwise lockfile sniffing at the analysis root.