-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sync versions between dependencies such as @aws-cdk/* #44
Comments
Could you share your project structure and configuration so we can debug it? Thanks |
@JamieMason I think the version groups are not working for me at all. I'm using a lerna project and this is my configuration in my package.json:
This is my directory structure:
|
cdk-toolkit-stack dependencies
parameters-stack dependencies
|
Which version of syncpack please? |
|
What are the contents of lerna.json |
|
Thanks, and what output are you expecting to see? And what do you see instead? |
I have a version mismatch between these 2 packages in the cdk toolkit stack:
But also in the parameters stack:
I'm expecting the package to complain about this version mismatch. |
thanks, what's the output of |
Btw, I tried swapping packages and dependencies field. No luck.
|
Correct me if I'm wrong but I think you're expecting behaviour which isn't quite what this tool is designed for, let me know. Are you expecting that these two separate packages I'll review and improve the docs if so, but the goal is only to ensure that multiple packages requiring the same dependency define the same version, so that every package requires eg. The situation you describe is valid, you do get families of packages which are all versioned in sync with one another, but it's not something syncpack handles at the moment. It's an interesting use case though which I'll think over to see how much effort it would be to account for. Sorry for the confusion. |
Aha, that explains! Yes that's exactly what I was expecting. It would really be a nice feature to have when using dependencies like AWS CDK. AWS CDK only works if all the AWS CDK dependencies are on the same version. |
This should now be possible in 6.1.0, thanks for contributing. |
@JamieMason Sorry to necro, but is there a way to sync back this update to the syncpackrc? We would like to be able to periodically |
Description
I would expect version group to match packages in the devDependencies, dependencies and peerDependencies field alltogether.
Suggested Solution
Fix mismatches for packages across dev, peer and prod dependencies.
Help Needed
The text was updated successfully, but these errors were encountered: