Skip to main content

npm_shim_exe

Function npm_shim_exe 

Source
pub fn npm_shim_exe(dir: &Path) -> Option<PathBuf>
Expand description

The executable an npm install of opencode keeps beside its opencode.cmd shim in dir (node_modules\@opencode\cli\bin\opencode.exe, the very file the shim runs), when both exist. The shim itself is never started: cmd.exe would expand %VAR% inside prompt text passed as arguments.