Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Aug 8, 2024
1 parent c9f613b commit 1023b49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/getIgnoredUpgradesDueToEnginesNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export async function getIgnoredUpgradesDueToEnginesNode(
nodeEngineVersion: undefined,
loglevel: 'silent',
})

// Use the latest versions since getEnginesNodeFromRegistry requires exact versions.
// Filter down to only the upgraded latest versions, as there is no point in checking the engines.node for packages that have been filtered out, e.g. by options.minimal or options.filterResults.
const latestVersions = keyValueBy(latestVersionResults, (dep, result) =>
upgradedLatestVersions[dep] && result?.version
? {
Expand Down

0 comments on commit 1023b49

Please sign in to comment.