diff --git a/utils/PatchesParser.js b/utils/PatchesParser.js index 4f974a06..e0599105 100644 --- a/utils/PatchesParser.js +++ b/utils/PatchesParser.js @@ -40,8 +40,12 @@ module.exports = async function parsePatch(packageName, hasRoot) { global.versions.push(compatibleVersion); } } - - if (!isCompatible || (isRooted && !hasRoot)) continue; + + if (!isCompatible) { + if (patch.compatiblePackages.length !== 0) continue; + } + + if (isRooted && !hasRoot) continue; for (const dependencyName of patch.dependencies) { if (dependencyName.includes('integrations')) {