(
options: FindVercelCliOptions = {}
)
| 106 | * Returns `null` when no usable CLI executable can be found. |
| 107 | */ |
| 108 | export async function findVercelCli( |
| 109 | options: FindVercelCliOptions = {} |
| 110 | ): Promise<VercelCliInvocation | null> { |
| 111 | const cwd = path.resolve(options.cwd ?? process.cwd()); |
| 112 | const pathValue = options.path ?? getEnvPath(process.env); |
| 113 | const resolution = await resolveCachedCliInvocation(cwd, pathValue); |
| 114 | |
| 115 | return resolution.found ? toVercelCliInvocation(resolution) : null; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Resolves and caches the full CLI resolution, including miss diagnostics. |
no test coverage detected