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

Function entrypointToOutputPath

packages/node/src/utils.ts:140–149  ·  view source on GitHub ↗
(
  entrypoint: string,
  zeroConfig?: boolean
)

Source from the content-addressed store, hash-verified

138 * "api/foo.ts" -> "api/foo"
139 */
140export function entrypointToOutputPath(
141 entrypoint: string,
142 zeroConfig?: boolean
143): string {
144 if (zeroConfig) {
145 const ext = extname(entrypoint);
146 return entrypoint.slice(0, entrypoint.length - ext.length);
147 }
148 return entrypoint;
149}
150
151export function logError(error: Error) {
152 let message = error.message;

Callers 2

utils.test.tsFile · 0.90
buildFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected