From 6802dce74624c79a19b160b22bc06ebad2573c99 Mon Sep 17 00:00:00 2001 From: William Luke Date: Tue, 30 Apr 2019 12:06:15 +0300 Subject: [PATCH] fix: Replace \ -> / --- src/yogaDefaults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yogaDefaults.ts b/src/yogaDefaults.ts index accd245..d6b2ec8 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 = join(projectDir, normalize(datamodelInfo.clientPath), 'index.ts') + const defaultPath = join(projectDir, datamodelInfo.clientPath.replace(/\\/g, "/"), 'index.ts') logger.info(`Looking for Prisma Client in ${defaultPath}`) const clientPath = requiredPath( defaultPath,