(cwd: string = process.cwd())
| 6 | * Try reading the installed Prisma Client version |
| 7 | */ |
| 8 | export 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 |
no test coverage detected