MCPcopy
hub / github.com/prisma/prisma / getInstalledPrismaClientVersion

Function getInstalledPrismaClientVersion

packages/cli/src/utils/getClientVersion.ts:8–10  ·  view source on GitHub ↗
(cwd: string = process.cwd())

Source from the content-addressed store, hash-verified

6 * Try reading the installed Prisma Client version
7 */
8export async function getInstalledPrismaClientVersion(cwd: string = process.cwd()): Promise<string | null> {
9 return (await getPrismaClientVersionFromNodeModules(cwd)) ?? (await getPrismaClientVersionFromLocalPackageJson(cwd))
10}
11
12/**
13 * Try reading the Prisma Client version from its package.json

Callers 1

parseMethod · 0.90

Tested by

no test coverage detected