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

Function readGlobalConfig

packages/cli-auth/credentials-store.ts:127–146  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

125}
126
127export function readGlobalConfig(dir: string): GlobalConfig {
128 const configPath = cliConfig.getConfigFilePath(dir);
129
130 try {
131 const config = cliConfig.readGlobalConfigFile(configPath);
132
133 return {
134 credStorage:
135 typeof config.credStorage === 'undefined'
136 ? undefined
137 : resolveCredStorage(config.credStorage),
138 };
139 } catch (error) {
140 if (isENOENTError(error)) {
141 return {};
142 }
143
144 throw error;
145 }
146}
147
148export function getCredStorage(
149 dir: string,

Callers 2

resolveCliAuthConfigFunction · 0.85

Calls 2

resolveCredStorageFunction · 0.85
isENOENTErrorFunction · 0.85

Tested by

no test coverage detected