argoproj / argo-ui

Argoproj shared React components
Apache License 2.0
220 stars 178 forks source link

chore(deps): dedupe `yarn.lock`, add check for dupes #571

Open agilgur5 opened 1 month ago

agilgur5 commented 1 month ago

Equivalent to https://github.com/argoproj/argo-workflows/pull/11637 and PRs I've made in other repos

Motivation

Same as downstream et al, see https://github.com/atlassian/yarn-deduplicate#why-is-this-necessary Removes ~2.5k+ LoC from the yarn.lock by consolidating duplicated deps (and saves on disk, installation, network, dep issues, etc)

In particular for this repo, all the dep removals and changes I've done for #569 #534 #567 etc have complicated yarn.lock diffs that I've manually reduced (sometimes a removal even causes an addition because yarn just adds the latest version of the dep). This does it automatically and will ensure it doesn't happen again.

I've wanted to do it for a while but it usually merge conflicts with any other dep changes so I kept deferring it and then forgetting it 😅 There should be a lot less of those after #537 though (dependabot also most certainly contributed to duped deps)

Modifications

Verification

agilgur5 commented 1 month ago

Ah a build failure in the deps, same as the ones I dealt with heavily manually before 🫠

This one appears to be in the dep: https://github.com/iarna/wide-align/issues/63. Will resolve to a lower version instead of a higher one from the dedupe to get around it

crenshaw-dev commented 2 weeks ago

Can you rebase?

agilgur5 commented 2 weeks ago

Rebased.

crenshaw-dev commented 2 weeks ago

Sorry, gotta ask for another rebase 😆

agilgur5 commented 2 weeks ago

Rebased once more 😅