Skip to content

Commit

Permalink
fix(js): fix parsing link dependencies in yarn (#15364)
Browse files Browse the repository at this point in the history
(cherry picked from commit 65aac8e)
  • Loading branch information
FrozenPandaz committed Mar 2, 2023
1 parent f111580 commit c351b34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/nx/src/lock-file/yarn-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ function findVersion(
) {
return snapshot.resolution.slice(packageName.length + 1);
}
if (!isBerry && !satisfies(snapshot.version, versionRange)) {
if (
!isBerry &&
snapshot.resolved &&
!satisfies(snapshot.version, versionRange)
) {
return snapshot.resolved;
}
// otherwise it's a standard version
Expand Down

0 comments on commit c351b34

Please sign in to comment.