We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdf9d5c + 3398969 commit 69adc7dCopy full SHA for 69adc7d
helpers/validateNextUsage.js
@@ -31,7 +31,7 @@ const MIN_EXPERIMENTAL_VERSION = '10.0.0'
31
32
const hasPackage = function (packageName) {
33
try {
34
- require(packageName)
+ require(`${packageName}/package.json`)
35
return true
36
} catch (error) {
37
return false
0 commit comments