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

Function detectConfig

packages/node/src/typescript.ts:365–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363
364 // determine the tsconfig.json path for a given folder
365 function detectConfig(): string | undefined {
366 let configFileName: string | undefined = undefined;
367
368 // Read project configuration when available.
369 configFileName = options.project
370 ? ts.findConfigFile(normalizeSlashes(options.project), fileExists)
371 : ts.findConfigFile(normalizeSlashes(cwd), fileExists);
372
373 if (configFileName) return normalizeSlashes(configFileName);
374 }
375
376 /**
377 * Load TypeScript configuration.

Callers 1

compileFunction · 0.85

Calls 1

normalizeSlashesFunction · 0.85

Tested by

no test coverage detected