@lerna/describe-ref
Advanced tools
Comparing version 3.3.0 to 3.5.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.5.0](https://github.com/lerna/lerna/compare/v3.4.3...v3.5.0) (2018-11-27) | ||
### Features | ||
* **version:** Add `--include-merged-tags` option ([#1712](https://github.com/lerna/lerna/issues/1712)) ([7ee05d7](https://github.com/lerna/lerna/commit/7ee05d7)) | ||
<a name="3.3.0"></a> | ||
@@ -8,0 +19,0 @@ # [3.3.0](https://github.com/lerna/lerna/compare/v3.2.1...v3.3.0) (2018-09-06) |
@@ -10,4 +10,4 @@ "use strict"; | ||
function getArgs(options) { | ||
const args = [ | ||
function getArgs(options, commandOptions = {}) { | ||
let args = [ | ||
"describe", | ||
@@ -28,7 +28,12 @@ // fallback to short sha if no tags located | ||
if (commandOptions.includeMergedTags) { | ||
// we want to consider all tags, also from merged branches | ||
args = args.filter(arg => arg !== "--first-parent"); | ||
} | ||
return args; | ||
} | ||
function describeRef(options = {}) { | ||
const promise = childProcess.exec("git", getArgs(options), options); | ||
function describeRef(options = {}, commandOptions = {}) { | ||
const promise = childProcess.exec("git", getArgs(options, commandOptions), options); | ||
@@ -45,4 +50,4 @@ return promise.then(({ stdout }) => { | ||
function sync(options = {}) { | ||
const stdout = childProcess.execSync("git", getArgs(options), options); | ||
function sync(options = {}, commandOptions = {}) { | ||
const stdout = childProcess.execSync("git", getArgs(options, commandOptions), options); | ||
const result = parse(stdout, options); | ||
@@ -49,0 +54,0 @@ |
{ | ||
"name": "@lerna/describe-ref", | ||
"version": "3.3.0", | ||
"version": "3.5.0", | ||
"description": "Parse git describe output for lerna-related tags", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "901e6d54a47151dfed3d6ed2912804b97d05c6b5" | ||
"gitHead": "1c142db1ecb50120f0ddce8ff8a7d9cde1bee278" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5733
56