Skip to content

how to commit changes generated by a version hook? #361

Answered by blaugold
osaxma asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @osaxma! Great to hear that Melos is helping you.

For the melos package, we currently have some special handling.

In your version hook script, you should add the generated files to git's staging area after updating them. That way, changes to those files will be included in the commit created by Melos. That's how I do it other packages that I maintain with Melos.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@osaxma
Comment options

Answer selected by osaxma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants