Rename packagePaths to packageNames

Co-authored-by: Sadick <sadickjunior@gmail.com>
This commit is contained in:
Amin Yahyaabadi
2020-07-08 08:55:02 -05:00
committed by GitHub
parent 6ef38f3810
commit d6cc11af89

View File

@@ -419,12 +419,12 @@ module.exports = class PackageManager {
for (const packageDirPath of this.packageDirPaths) {
if (fs.isDirectorySync(packageDirPath)) {
const packagePaths = fs
const packageNames = fs
.readdirSync(packageDirPath, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.map(dirent => dirent.name);
for (const packageName of packagePaths) {
for (const packageName of packageNames) {
if (
!packageName.startsWith('.') &&
!packagesByName.has(packageName)