fuels-ts icon indicating copy to clipboard operation
fuels-ts copied to clipboard

chore: ensure consistent dependency versions across packages

Open maschad opened this issue 1 year ago • 10 comments

We have some multiple packages requiring the same dependency with different the versions it would be useful to sync them using something like syncpack

maschad avatar Apr 08 '24 17:04 maschad

Giving this a go

richardgreg avatar Apr 08 '24 19:04 richardgreg

Awesome! Thanks for looking into this.

maschad avatar Apr 08 '24 20:04 maschad

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

richardgreg avatar Apr 14 '24 10:04 richardgreg

I can try and help @richardgreg, what are you trying to configure?

JamieMason avatar Apr 15 '24 08:04 JamieMason

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. 😅

richardgreg avatar Apr 15 '24 11:04 richardgreg

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.

JamieMason avatar Apr 15 '24 12:04 JamieMason

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 🙂

richardgreg avatar Apr 15 '24 13:04 richardgreg

When I search for @typescript-eslint/types in your branch chore/packages-dependency-consistency there are no results?

JamieMason avatar Apr 15 '24 13:04 JamieMason

@JamieMason, you can take a look now. I configured synckpack to ignore local packages, as I assumed the team would prefer.

richardgreg avatar Apr 16 '24 14:04 richardgreg

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.

JamieMason avatar Apr 17 '24 15:04 JamieMason