Closed Bnaya closed 4 years ago
Huh, was looking at some of my recent PRs to change deps and did see duplicates -- but Yarn suggests that can't happen -- so I was confused. Guess Yarn has some bugs around this. Thanks for the add!
Huh, was looking at some of my recent PRs to change deps and did see duplicates -- but Yarn suggests that can't happen -- so I was confused. Guess Yarn has some bugs around this. Thanks for the add!
That's behaviour of yarn is indeed cryptic, but not completely senseles. There's more info and discussions around it on yarn issues and yarn-deduplicate docs
Worth noting: I choose to use the "fewer" strategy and not "newer"
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/formium/tsdx/bi15xym0y
✅ Preview: https://tsdx-git-fork-bnaya-deps-dedup-yarn-lock.formium.vercel.app
@all-contributors please add @Bnaya for bug, code
@agilgur5
I've put up a pull request to add @Bnaya! :tada:
Motivation: https://github.com/atlassian/yarn-deduplicate#why-is-this-necessary
Benefits: Smaller & less nested node_modules less deps are loaded into node when running dev stuff
It's good to run this command after every deps changes