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

Function entrypointToModule

packages/python/src/entrypoint.ts:142–147  ·  view source on GitHub ↗
(entrypoint: string)

Source from the content-addressed store, hash-verified

140}
141
142export function entrypointToModule(entrypoint: string): string {
143 return entrypoint
144 .replace(/\\/g, '/')
145 .replace(/\.py$/i, '')
146 .replace(/\//g, '.');
147}
148
149/**
150 * Check if a Python file contains a top-level app/handler.

Callers 7

unit.test.tsFile · 0.90
buildFunction · 0.90
startDevServerFunction · 0.90
getServiceCronsFunction · 0.90
getServiceCronsDynamicFunction · 0.90
detectEntrypointFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected