MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getVendorDir

Function getVendorDir

scripts/postinstall.cjs:96–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94// --- Paths ---
95
96function getVendorDir() {
97 if (existsSync(path.join(projectRoot, 'src'))) {
98 return path.resolve(projectRoot, 'src', 'utils', 'vendor', 'ripgrep')
99 }
100 return path.resolve(projectRoot, 'dist', 'vendor', 'ripgrep')
101}
102
103function getBinaryPath() {
104 const dir = getVendorDir()

Callers 1

getBinaryPathFunction · 0.85

Calls 2

existsSyncFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected