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.
1 parent fba2865 commit ea39e0bCopy full SHA for ea39e0b
src/index.ts
@@ -251,7 +251,7 @@ const isFile = (path?: string | undefined): path is string => {
251
}
252
253
const isModule = (modulePath?: string | undefined): modulePath is string => {
254
- return !!modulePath && isFile(`${modulePath}${path.sep}package.json`)
+ return !!modulePath && isFile(path.resolve(modulePath, 'package.json'))
255
256
257
/**
0 commit comments