chore(deps): dedupe yarn.lock
, add check for dupes
#571
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Equivalent to argoproj/argo-workflows#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 becauseyarn
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
add a
deduplicate
script that usesyarn-deduplicate
run
deduplicate
during UI CIrun
deduplicate
once and commit the resultsmove the
build
script to be in the equivalent place as thebuild-v2
script, afterstart
/start-v2
Verification
yarn deduplicate
does not cause another diffyarn start
is still broken until fix(deps-dev): downgrade all Storybook breakage from dependabot et al #567 is merged)