@lerna/describe-ref
Parse git describe output for lerna-related tags
Last updated 3 years ago by jameshenry .
MIT · Repository · Bugs · Original npm
$ cnpm install @lerna/describe-ref 
SYNC missed versions from official npm registry.

@lerna/describe-ref

Parse git describe output for lerna-related tags

Usage

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

Current Tags

  • 6.0.3                                ...           latest (3 years ago)

5 Versions

  • 6.0.0-alpha.2                                ...           3 years ago
  • 6.0.3                                ...           3 years ago
  • 4.0.0                                ...           5 years ago
  • 3.14.2                                ...           6 years ago
  • 3.16.5                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org