lstatSync -> existsSync (for package.json) (#819)
This commit is contained in:
parent
f00854b3df
commit
04327bc463
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user