|
2 yıl önce | |
---|---|---|
.. | ||
lib | 2 yıl önce | |
CHANGELOG.md | 2 yıl önce | |
LICENSE | 2 yıl önce | |
README.md | 2 yıl önce | |
package.json | 2 yıl önce |
@lerna/describe-ref
Parse git describe output for lerna-related tags
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.