Skip to content

Commit

Permalink
fix: Webpack "Critical Dependency" warning in runtime (#6107)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeq committed Mar 15, 2021
1 parent d8e823e commit 0c13446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/sdk/src/utils/getEnvPaths.ts
Expand Up @@ -50,7 +50,7 @@ function getProjectRootEnvPath(
const pkgPath = path.join(dir, 'package.json')
if (findUp.exists(pkgPath)) {
try {
const pkg = require(pkgPath)
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'))
if (pkg['name'] !== '.prisma/client') {
debug(`project root found at ${pkgPath}`)
return pkgPath
Expand Down

0 comments on commit 0c13446

Please sign in to comment.