lstatSync -> existsSync (for package.json) (#819)

This commit is contained in:
Jaco Greeff 2019-03-18 14:18:48 +01:00 committed by GitHub
parent f00854b3df
commit 04327bc463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ module.exports = function findPackages () {
return !['.', '..'].includes(entry) &&
fs.lstatSync(pkgPath).isDirectory() &&
fs.lstatSync(path.join(pkgPath, 'package.json'));
fs.existsSync(path.join(pkgPath, 'package.json'));
})
.map((dir) => {
const jsonPath = path.join(pkgRoot, dir, 'package.json');