1.0.0 • Published 4 years ago

@contiamo/git-describe v1.0.0

Weekly downloads
36
License
MIT
Repository
-
Last release
4 years ago

Git describe

Simple package to provide a semver compatible version of git describe.

Usage

yarn add @contiamo/git-describe
// With `git describe --tags --always --dirty` -> "v16.0.4-1-gf93077752-dirty"
import { getSemanticVersion } from '@contiamo/git-describe';

getSemanticVersion(); // v16.0.5-dev.1+gf93077752.dirty

Please note that the patch version is bumped, so the semver order is correct. We can check this on any semver validator:

https://jubianchi.github.io/semver-check/#/version/v16.0.5-dev.1%2Bgf93077752.dirty

Ref

https://github.com/mdomke/git-semver