Skip to main content

detect_npm_tool

Function detect_npm_tool 

Source
pub fn detect_npm_tool(root: &Path) -> &'static str
Expand description

Detect which npm-compatible tool is in use at root. Checks lockfiles in priority order: pnpm > yarn > npm. Returns "npm" as the safe default.