Skip to content

Commit 0bd06ae

Browse files
authored
fix: swap ternary logic for runtime import path
v7 has the new /runtime/client path.
1 parent 9aff192 commit 0bd06ae

File tree

1 file changed

+1
-1
lines changed
  • packages/schema/src/plugins/enhancer/enhance

1 file changed

+1
-1
lines changed

packages/schema/src/plugins/enhancer/enhance/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export function enhance<DbClient extends object>(prisma: DbClient, context?: Enh
316316

317317
private createLogicalPrismaImports(prismaImport: string, prismaClientImport: string, target: string | undefined) {
318318
const prismaVersion = getPrismaVersion();
319-
const runtimeLibraryImportSubPath = semver.gte(prismaVersion, '7.0.0') ? '/runtime/library' : '/runtime/client';
319+
const runtimeLibraryImportSubPath = semver.gte(prismaVersion, '7.0.0') ? '/runtime/client' : '/runtime/library';
320320

321321
const prismaTargetImport = target === 'edge' ? `${prismaImport}/edge` : prismaImport;
322322
const runtimeLibraryImport = this.isNewPrismaClientGenerator

0 commit comments

Comments
 (0)