0.2.5 • Published 3 years ago

@pubbo/describe-ref v0.2.5

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

@pubbo/describe-ref

Parse git describe output for lerna-related tags

Usage

const describe = require("@pubbo/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.

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.11

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago