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

Function findNearestTsconfig

packages/backends/src/typescript.ts:147–158  ·  view source on GitHub ↗
(
  workPath: string
)

Source from the content-addressed store, hash-verified

145}
146
147export const findNearestTsconfig = async (
148 workPath: string
149): Promise<string | undefined> => {
150 const tsconfigPath = join(workPath, 'tsconfig.json');
151 if (existsSync(tsconfigPath)) {
152 return tsconfigPath;
153 }
154 if (workPath === '/') {
155 return undefined;
156 }
157 return findNearestTsconfig(join(workPath, '..'));
158};

Callers 1

doTypeCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected