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

Function isGlobal

packages/cli/src/util/get-update-command.ts:175–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173}
174
175export async function isGlobal(): Promise<boolean> {
176 try {
177 return (await resolveInstall()).global;
178 } catch (_) {
179 // Default to global
180 return true;
181 }
182}
183
184export async function getUpdateCommandInfo(): Promise<{
185 command: string;

Callers 3

upgradeFunction · 0.90
canAutoUpdateFunction · 0.90

Calls 1

resolveInstallFunction · 0.85

Tested by

no test coverage detected