semver icon indicating copy to clipboard operation
semver copied to clipboard

Allow updating files other than package.json with version

Open klagrida opened this issue 2 years ago • 0 comments

Hi, Thanks for this plugin. I'm creating an executor to release a maven project based on semver. The postTargets is great for that but I found myself copying attribute from semver/version like tag, postTargets , push, skipCommit,... and what I want is just to modify one file (the pom.xml).

It is possible to add a feature to override updatePackageJson function from utils/project (an optional function like updateVersionFile)?

export default async function version(
  options: VersionBuilderSchema,
  context: ExecutorContext,
  updateVersionFile?      <-------- an optional function to be added by libs to use the plugin
): Promise<{ success: boolean }> {
) {

klagrida avatar May 08 '23 13:05 klagrida