Skip to content

Commit

Permalink
fix: correctly resolve the version of the currently installed package
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhi Zhou committed Oct 16, 2024
1 parent c7c63bf commit 7ce8ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getPackageResolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function getPackageResolution({

const resolutions = entries.map(([_, v]) => {
// @ts-ignore
return v.resolved
return v.resolved || v.version
})

if (resolutions.length === 0) {
Expand Down

0 comments on commit 7ce8ff4

Please sign in to comment.