invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.16k stars 205 forks source link

Question: How to run manual version command for multiple packages at once? #586

Closed vbuberen closed 11 months ago

vbuberen commented 1 year ago

Is there an existing feature request for this?

Command

melos version -V

Description

In the documentation it is said that multiple packages can also be manually versioned, but it is not clear which syntax a person should use when wants to manually version multiple package.

As an example I will show how this command works on Plus Plugins:

When I use

melos version -V android_alarm_manager_plus:4.0.0 --no-git-tag-version

command works correctly and bumps android_alarm_manager to 4.0.0 as it should.

However, as soon as I try to specify multiple packages to manually version them:

melos version -V android_alarm_manager_plus:4.0.0 android_intent_plus:5.0.0 --no-git-tag-version

I am getting the following error

ERROR: When manually setting a version to apply to a package you must specify both <packageName> and <newVersion> arguments when calling "melos version".

I tried to separate packages with , ; but had no luck.

Would appreciate explanation on how to manually version multiple packages.

Reasoning

Need to manually version multiple packages.

Additional context and comments

No response

vbuberen commented 1 year ago

Found out how to do it. Will open a PR to update docs with examples.