MCPcopy
hub / github.com/prisma/prisma / getBinaryName

Function getBinaryName

packages/internals/src/resolveBinary.ts:15–19  ·  view source on GitHub ↗
(name: BinaryType)

Source from the content-addressed store, hash-verified

13export { BinaryType, engineEnvVarMap }
14
15async function getBinaryName(name: BinaryType): Promise<string> {
16 const binaryTarget = await getBinaryTargetForCurrentPlatform()
17 const extension = binaryTarget === 'windows' ? '.exe' : ''
18 return `${name}-${binaryTarget}${extension}`
19}
20
21export async function resolveBinary(name: BinaryType, proposedPath?: string): Promise<string> {
22 // if file exists at proposedPath (and does not start with `/snapshot/` (= pkg), use that one

Callers 1

resolveBinaryFunction · 0.70

Calls 1

Tested by

no test coverage detected