JamieMason / syncpack

Consistent dependency versions in large JavaScript Monorepos.
https://jamiemason.github.io/syncpack/
MIT License
1.34k stars 44 forks source link

Feature Request: Disallow redefining dependencies already defined in the root #194

Open midzdotdev opened 5 months ago

midzdotdev commented 5 months ago

Description

I'd really like the ability to prevent having a dependency in a monorepo package that's already defined at the root.

Say I have jest defined in ./package.json, syncpack could be configured to disallow ./apps/my-app/package.json having that dependency too.

Suggested Solution

Honestly I have no idea how you'd want to configure this. I'm happy with something as simple as the above, but I'm sure others would love to customise it further for their own needs.

Help Needed

The ability to produce a sweet ass config interface.