Thinkmill / manypkg

☔️ An umbrella for your monorepo
MIT License
872 stars 48 forks source link

feature request: (optionally) enforce the same versions of dependencies across all packages + root #135

Closed Offirmo closed 2 years ago

Offirmo commented 2 years ago

Hi and thanks for this tool!

I'm trying to use manypkg to replace bolt.

Bolt has an opinionated feature where it enforces that every package in the monorepo should have the exact same versions of the same dependency. For example we can't have a package A depending on lodash@3 while package B depends on lodash@4

I agree that it's a design choice so it should be optional.

Bolt also enforces that dependencies of sub-packages should also appear in the root package.json.

Are those ideas something that manypkg could check / warn about?

Offirmo commented 2 years ago

It seems this is already a feature. However the behavior is a bit strange. I'll open another issue.