fix bug with wildcard peerDependencies

This commit is contained in:
silverwind 2022-12-21 11:04:42 +01:00
parent 10f2576f59
commit f1e9b652a9
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -516,7 +516,7 @@ function resolutionsBasePackage(name) {
function normalizeRange(range) {
const versionMatches = range.match(versionRe);
if (versionMatches.length !== 1) return range;
if (versionMatches?.length !== 1) return range;
return range.replace(versionRe, semver.coerce(versionMatches[0]));
}