chore: ensure consistent dependency versions across packages
We have some multiple packages requiring the same dependency with different the versions it would be useful to sync them using something like syncpack
Giving this a go
Awesome! Thanks for looking into this.
Hi @maschad, do you have experience with syncpack? I'm struggling to create a configuration that gives us the exact solution we want. They somehow seem to come out mismatched even when the rule applies to all dependencies
I can try and help @richardgreg, what are you trying to configure?
Hi @JamieMason, thanks for offering to help.
I want to configure .syncpackrc to accomplish the goal (ensure consistent dependency versions across packages) after I run syncpack fix-mismatches and then pnpm update` command. So far, only some packages get updated from my effort. 😅
No problem @richardgreg. If you can give me some information on which packages you are expecting to change but don't, I'll do my best to try and help you.
I used @typescript-eslint/types as a reference. I expect that all instances of the package will be version 6.12.0. I think if we can come up with a general config, not mentioning any particular package, that fixes that, then it should apply to other packages as well 🙂
When I search for @typescript-eslint/types in your branch chore/packages-dependency-consistency there are no results?
@JamieMason, you can take a look now. I configured synckpack to ignore local packages, as I assumed the team would prefer.
Ok great, let me know if you have any questions or you notice something which you don't think is right and I can try and help you. You're not using @typescript-eslint/types in your project so I'm guessing whatever that was is resolved.