(name: BinaryType, proposedPath?: string)
| 67 | } |
| 68 | |
| 69 | export function safeResolveBinary(name: BinaryType, proposedPath?: string): TE.TaskEither<Error, string> { |
| 70 | return TE.tryCatch( |
| 71 | () => resolveBinary(name, proposedPath), |
| 72 | (error) => error as Error, |
| 73 | ) |
| 74 | } |
| 75 | |
| 76 | export async function maybeCopyToTmp(file: string): Promise<string> { |
| 77 | if (__dirname.match(vercelPkgPathRegex)) { |
no test coverage detected