From 7359524c2e39f175945c36ca1b440d723377016d Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 30 Apr 2019 11:53:08 +0300 Subject: [PATCH] fix: Normalize clientPath --- src/yogaDefaults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yogaDefaults.ts b/src/yogaDefaults.ts index ef18cd6..accd245 100644 --- a/src/yogaDefaults.ts +++ b/src/yogaDefaults.ts @@ -217,7 +217,7 @@ export function client( ): PrismaClientInput { if (input === undefined) { logger.warn("No Prisma Client Input found trying to resolve path") - const defaultPath = normalize(join(projectDir, datamodelInfo.clientPath, 'index.ts')) + const defaultPath = join(projectDir, normalize(datamodelInfo.clientPath), 'index.ts') logger.info(`Looking for Prisma Client in ${defaultPath}`) const clientPath = requiredPath( defaultPath,