berry icon indicating copy to clipboard operation
berry copied to clipboard

Optimise dedupe to skip install when nothing to dedupe

Open jordanoverbye opened this issue 3 months ago • 0 comments

What's the problem this PR addresses?

Currently the dedupe command always runs project.installWithNewReport() even when no packages need deduplication, causing unnecessary installs and lockfile updates.

How did you fix it?

Exit early if no packages need deduping. Only run project.installWithNewReport() when necessary.

Checklist

  • [x] I have read the Contributing Guide.
  • [x] I have set the packages that need to be released for my changes to be effective.
  • [x] I will check that all automated PR checks pass before the PR gets reviewed.

jordanoverbye avatar Nov 11 '25 07:11 jordanoverbye