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
Currently, execute is used to run scripts before git commit. It is a common API but there are some drawbacks like it cannot get the new version after bumping. Also #11 tried using %s placeholder, which is ambiguous. We can imagine how many features are difficult to implement due to script limitations.
But bumpp could have a config file bump.config.ts, which gave the proposal an opportunity. In bump.config.ts, user could pass a function options.execute to achieve more functions that are difficult for scripts to achieve.
Clear and concise description of the problem
Currently,
execute
is used to run scripts before git commit. It is a common API but there are some drawbacks like it cannot get the new version after bumping. Also #11 tried using%s
placeholder, which is ambiguous. We can imagine how many features are difficult to implement due to script limitations.But
bumpp
could have a config filebump.config.ts
, which gave the proposal an opportunity. Inbump.config.ts
, user could pass a functionoptions.execute
to achieve more functions that are difficult for scripts to achieve.Suggested solution
https://github.com/antfu-collective/bumpp/blob/main/src/types/version-bump-options.ts#L138
https://github.com/antfu-collective/bumpp/blob/main/src/version-bump.ts#L74
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: