You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preVersionCommit: Runs before the version commit is created. Allows you to make your own changes as part of versioning. You need to stage changes that you make yourself.
But it seems like a script called version has to be created.
@fischerscode Sorry you are running into this problem. A few days back, I refactored the command hooks a bit to make them more consistent. As part of that, the version hook became preVersionCommit. Unfortunately, the docs are a bit ahead of the last release because there currently is no mechanism to version the docs. I'm currently working towards 3.0.0 of Melos and hope to get there in the next few days.
@blaugold No worries, melos is such a great tool, and a few minor bugs should always be expected when using open source software. I just feel like it's the responsibility of the users to report bugs / unexpected behavior.
Just an idea for the 3.0 release:
As an user, I feel like it would be better if there would be a dedicated section called hooks.
Is there an existing issue for this?
Version
2.9.0 (#456)
Description
The documentation says:
But it seems like a script called
version
has to be created.melos/packages/melos/lib/src/commands/version.dart
Lines 308 to 311 in 3d857c4
Steps to reproduce
preVersionCommit
that changes files, likemelos/melos.yaml
Line 45 in a1a265e
melos version
Expected behavior
The script
preVersionCommit
should be executed and the changed files should be commited (you might have togit add
them in the script).Screenshots
No response
Additional context and comments
I actually run the version from #456, but when reading the code, the behavior should be the same for 2.9.0.
Maybe I'm the problem, but when renaming the script
preVersionCommit
toversion
, everything works fine.One might argue it's a documentation mistake instead of a bug.
Additional:
postversion
is not documented.melos/packages/melos/lib/src/commands/version.dart
Lines 328 to 331 in 3d857c4
The text was updated successfully, but these errors were encountered: