Skip to content

Commit

Permalink
fix(engine-core): resolve dot prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Apr 23, 2020
1 parent f332970 commit e658821
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/packages/engine-core/src/NodeEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ You may have to run ${chalk.greenBright(
path.resolve(__dirname, `..`),
)
} else {
const dotPrismaPath = await this.getQueryEnginePath(
this.platform,
eval(`require('path').join(__dirname, '../../../.prisma/client')`),
)
if (fs.existsSync(dotPrismaPath)) {
return dotPrismaPath
}
return this.getQueryEnginePath(this.platform)
}
}
Expand Down

0 comments on commit e658821

Please sign in to comment.