Hello Thomas Leclaire, hello Sujit Daswant,
now you can use my newly released npm package @spfxappdev/cli. This package is a command-line utility that modifies your SharePoint Framework solution so that you can use the versioning logic described above without additional modifications. You can use "alias" paths instead of relative paths. Also, an automatic "version increment" task (gulp) is included and you can build, version, bundle and package the solution with just one npm command.
A blog post will follow in the next few days.
Hi Sergej Schwabauer, I am really appreciate for this blog, this is helped me lot for Auto increment the the version number.
But I am facing issue with the above, when I am trying to run the command for npm run publish -- --no-patch,npm run publish -- --major,npm run publish -- --minor version always the minor version get updated even for no patch also.
Please let me know how to fix this.
How would you use this in an Azure Devops Deployment pipeline where you would have to save the increased version back to the repo?
Jonathan Adcox
Application Engineer
Very useful. Deployed it instantly