@0x-lerna-fork/describe-ref

3.16.3 • Public • Published

@0x-lerna-fork/describe-ref

Parse git describe output for lerna-related tags

Usage

const describe = require("@0x-lerna-fork/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.

Readme

Keywords

Package Sidebar

Install

npm i @0x-lerna-fork/describe-ref

Weekly Downloads

6

Version

3.16.3

License

MIT

Unpacked Size

7.97 kB

Total Files

5

Last publish

Collaborators

  • albrow
  • fberger