@yoitsro/lerna-describe-ref
@yoitsro/lerna-describe-ref
npm i @yoitsro/lerna-describe-ref
@yoitsro/lerna-describe-ref

@yoitsro/lerna-describe-ref

🐉 Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

by lerna

3.5.1 (see all)License:MITTypeScript:Not Found
npm i @yoitsro/lerna-describe-ref
Readme

@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,
};

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

const result = describe.parse("v1.0.0-5-gdeadbeef");
// { lastTagName, lastVersion, refCount, sha, isDirty }
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate