mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Rename packagePaths to packageNames
Co-authored-by: Sadick <sadickjunior@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user