algolia / shipjs

Take control of what is going to be your next release.
https://community.algolia.com/shipjs/
MIT License
766 stars 30 forks source link

make `nextVersion` work with multiple versions #986

Open Haroenv opened 1 year ago

Haroenv commented 1 year ago

Is your feature request related to a problem? Please describe.

When you use independent versioning, the logic in shouldPrepare needs to depend on multiple versions, not just one

Describe the solution you'd like

both shouldPrepare and version should deal with multiple version numbers, possibly an array of package name and version.

Describe alternatives you've considered

Ignore shouldPrepare in those cases, and always prepare, even if there's nothing to release

Additional context

we are using "monorepo with independent versioning" that skips most of the features of shouldVersion in favour of version, but shouldPrepare still gets called