3.17.2 • Published 3 years ago

@merna/describe-ref v3.17.2

Weekly downloads
66
License
MIT
Repository
bitbucket
Last release
3 years ago

@merna/describe-ref

Parse git describe output for lerna-related tags

Usage

const describe = require("@merna/describe-ref");

(async () => {
  const { lastTagName, lastVersion, refCount, sha, isDirty } = await describe();
})();

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  // pass a glob to match tag name, e.g. "v*.*.*"
  match: undefined,
  // if true, omit --first-parent option
  includeMergedTags: false,
};

const { lastTagName, lastVersion, refCount, sha, isDirty } = describe.sync(options);

const result = describe.parse("v1.0.0-5-gdeadbeef");
// { lastTagName, lastVersion, refCount, sha, isDirty }

Install lerna for access to the lerna CLI.

3.17.2

3 years ago

3.17.1

3 years ago

3.17.0

3 years ago

3.16.6

4 years ago

3.16.5

4 years ago