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

Function readConfigFile

packages/cli-config/src/cli-config.ts:99–104  ·  view source on GitHub ↗
(
  configPath: string,
  schema: S
)

Source from the content-addressed store, hash-verified

97}
98
99export function readConfigFile<S extends z.ZodType>(
100 configPath: string,
101 schema: S
102): z.output<S> {
103 return schema.parse(readJsonFileSync(configPath));
104}
105
106export function writeConfigFile<S extends z.ZodType>(
107 configPath: string,

Callers 3

cli-config.test.tsFile · 0.90
readGlobalConfigFileFunction · 0.70
readAuthConfigFileFunction · 0.70

Calls 2

readJsonFileSyncFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected