Determine the semantic version number of your project
OTHER License
Using a conventional-changelog commit history, determine the current version number of your project.
This is done by reading your local git commit history and searching for fixes, features, and breaking changes.
npm install conventional-recommended-version
import { getVersion } from 'conventional-recommended-version';
getVersion('/Users/you/projects/some-project').then(console.log);
// { major: 1, minor: 0, patch: 0 }
conventional-recommended-version currently only supports the angular conventional-changelog convention as that's the one I use.
Patches are welcome.