Merge pull request #29187 from andrasczeh/patch-1

CLI: Show constraints in error when getting depndencies
This commit is contained in:
Kasper Peulen 2024-09-24 12:54:52 +02:00 committed by GitHub
commit 71a3eb426c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -418,7 +418,7 @@ export abstract class JsPackageManager {
.find((version) => satisfies(version, constraint));
invariant(
latestVersionSatisfyingTheConstraint != null,
'No version satisfying the constraint.'
`No version satisfying the constraint: ${packageName}${constraint}`
);
return latestVersionSatisfyingTheConstraint;
}