* Returns platform-specific executable names for the canonical Vercel command.
()
| 396 | * Returns platform-specific executable names for the canonical Vercel command. |
| 397 | */ |
| 398 | function 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. |
no outgoing calls
no test coverage detected