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

Function getVercelCommandNames

packages/cli-exec/src/lookup.ts:398–412  ·  view source on GitHub ↗

* Returns platform-specific executable names for the canonical Vercel command.

()

Source from the content-addressed store, hash-verified

396 * Returns platform-specific executable names for the canonical Vercel command.
397 */
398function getVercelCommandNames(): string[] {
399 // Intentionally resolve only the canonical `vercel` binary. `vc` is a
400 // convenience alias for interactive use, but callers should not depend on it
401 // being present in every installation layout.
402 const commandBases = ['vercel'];
403
404 if (process.platform !== 'win32') {
405 return commandBases;
406 }
407
408 const extensions = ['.cmd', '.exe', ''];
409 return commandBases.flatMap(command =>
410 extensions.map(extension => `${command}${extension}`)
411 );
412}
413
414/**
415 * Builds the trusted local `.bin` directories to prepend before scanning PATH.

Callers 1

resolveCliInvocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected