Skip to main content

resolve_tool

Function resolve_tool 

Source
pub fn resolve_tool(root: &str, tool: &str) -> Option<Vec<String>>
Expand description

Resolve a tool, preferring the repo’s PINNED copy so the hook matches CI.

Order: <root>/node_modules/.bin/<tool>, then the MAIN worktree’s (a linked worktree has no node_modules of its own — this is why the shell version consulted the git common dir), then PATH.