( entrypoint: string, zeroConfig?: boolean )
| 138 | * "api/foo.ts" -> "api/foo" |
| 139 | */ |
| 140 | export 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 | |
| 151 | export function logError(error: Error) { |
| 152 | let message = error.message; |
no outgoing calls
no test coverage detected