Skip to content

Commit

Permalink
lib: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnorris authored and santigimeno committed Dec 7, 2023
1 parent 21459cb commit fea863d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/modules/package_json_reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
}
}
cache.set(jsonPath, result);
if (result.name !== undefined)
if (result.name !== undefined) {
addPackage(jsonPath.slice(0, -12), result, true);
}
return result;
}

Expand Down

0 comments on commit fea863d

Please sign in to comment.