Skip to content

Commit

Permalink
fix: remove patches before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 29, 2024
1 parent af89048 commit 05bb03b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,15 @@ export async function applyPackageOverrides(
if (!pkg.pnpm) {
pkg.pnpm = {}
}
if (pkg.pnpm.patchedDependencies) {
for (const item of Object.keys(pkg.pnpm.patchedDependencies)) {
for (const override in overrides) {
if (item.startsWith(override + '@')) {
delete pkg.pnpm.patchedDependencies[item]
}
}
}
}
pkg.pnpm.overrides = {
...pkg.resolutions,
...pkg.pnpm.overrides,
Expand Down

0 comments on commit 05bb03b

Please sign in to comment.