Skip to content

Commit

Permalink
fix: fix shared patches not being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
reis committed Dec 15, 2022
1 parent 95e2f70 commit 07c1ec4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions utils/PatchesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 07c1ec4

Please sign in to comment.