MCPcopy Create free account
hub / github.com/vercel/vercel / prependLocalBinsToPath

Function prependLocalBinsToPath

packages/cli-exec/src/exec.ts:150–158  ·  view source on GitHub ↗

* Prepends trusted local bin directories to a PATH value.

(
  cwd: string,
  pathValue = ''
)

Source from the content-addressed store, hash-verified

148 * Prepends trusted local bin directories to a PATH value.
149 */
150async function prependLocalBinsToPath(
151 cwd: string,
152 pathValue = ''
153): Promise<string> {
154 return prependPathEntries(
155 pathValue,
156 (await getLocalBinSearch(cwd)).directories
157 );
158}

Callers 1

Calls 2

prependPathEntriesFunction · 0.90
getLocalBinSearchFunction · 0.90

Tested by

no test coverage detected