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

Function getVercelToolsEntrypoint

packages/python/src/entrypoint.ts:248–259  ·  view source on GitHub ↗
(
  workPath: string
)

Source from the content-addressed store, hash-verified

246}
247
248export async function getVercelToolsEntrypoint(
249 workPath: string
250): Promise<PythonEntrypoint | null> {
251 const pyprojectData = await readConfigFile<{
252 tool?: { vercel?: { entrypoint?: unknown } };
253 }>(join(workPath, 'pyproject.toml'));
254 if (!pyprojectData) return null;
255
256 const vercelEntrypoint = pyprojectData.tool?.vercel?.entrypoint;
257 if (typeof vercelEntrypoint !== 'string') return null;
258 return resolveModuleAttrEntrypoint(workPath, vercelEntrypoint);
259}
260
261// Legacy: kept for compatibility. Prefer tool.vercel.entrypoint.
262export async function getPyprojectScriptsEntrypoint(

Callers 1

detectPythonEntrypointFunction · 0.85

Calls 1

Tested by

no test coverage detected