fix(docker): parse peer-suffixed lockfile packages

This commit is contained in:
Peter Steinberger
2026-05-24 09:51:29 +01:00
parent f799da0947
commit cf46f2e3a0

View File

@@ -25,7 +25,7 @@ function packageSpecFromLockfileKey(key) {
if (typeof key !== "string") {
return undefined;
}
const normalizedKey = key.startsWith("/") ? key.slice(1) : key;
const normalizedKey = (key.startsWith("/") ? key.slice(1) : key).replace(/\(.+\)$/, "");
const separator = normalizedKey.lastIndexOf("@");
if (separator <= 0) {
return undefined;