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 6ef38f3 commit d6cc11aCopy full SHA for d6cc11a
1 file changed
src/package-manager.js
@@ -419,12 +419,12 @@ module.exports = class PackageManager {
419
420
for (const packageDirPath of this.packageDirPaths) {
421
if (fs.isDirectorySync(packageDirPath)) {
422
- const packagePaths = fs
+ const packageNames = fs
423
.readdirSync(packageDirPath, { withFileTypes: true })
424
.filter(dirent => dirent.isDirectory())
425
.map(dirent => dirent.name);
426
427
- for (const packageName of packagePaths) {
+ for (const packageName of packageNames) {
428
if (
429
!packageName.startsWith('.') &&
430
!packagesByName.has(packageName)
0 commit comments