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

Function resolveTypeScriptModule

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

Source from the content-addressed store, hash-verified

136}
137
138function resolveTypeScriptModule(workPath: string): TypeScriptModule | null {
139 try {
140 const id = require_.resolve('typescript', { paths: [workPath] });
141 return require_(id) as TypeScriptModule;
142 } catch (_e) {
143 return null;
144 }
145}
146
147export const findNearestTsconfig = async (
148 workPath: string

Callers 1

typescriptFunction · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected