@coveo/semantic-monorepo-tools
Advanced tools
Comparing version 2.4.60 to 2.4.61
@@ -0,1 +1,5 @@ | ||
## 2.4.61 (2024-10-21) | ||
## 2.4.60 (2024-10-21) | ||
@@ -2,0 +6,0 @@ |
@@ -6,2 +6,5 @@ /** | ||
*/ | ||
export default function (prefix?: string): Promise<string>; | ||
export default function ({ prefix, onBranch, }?: { | ||
prefix?: string; | ||
onBranch?: string; | ||
}): Promise<string>; |
@@ -8,3 +8,3 @@ import spawn from "../utils/spawn.js"; | ||
*/ | ||
export default async function (prefix) { | ||
export default async function ({ prefix, onBranch, } = {}) { | ||
const gitParams = ["describe", "--tags", "--abbrev=0"]; | ||
@@ -14,4 +14,7 @@ if (prefix) { | ||
} | ||
if (onBranch) { | ||
gitParams.push(`${onBranch}`); | ||
} | ||
const gitPs = await spawn("git", gitParams, gitLogger); | ||
return gitPs.stdout.trim(); | ||
} |
{ | ||
"name": "@coveo/semantic-monorepo-tools", | ||
"version": "2.4.60", | ||
"version": "2.4.61", | ||
"description": "A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/coveo/semantic-monorepo-tools#readme", |
@@ -9,3 +9,6 @@ import spawn from "../utils/spawn.js"; | ||
*/ | ||
export default async function (prefix?: string): Promise<string> { | ||
export default async function ({ | ||
prefix, | ||
onBranch, | ||
}: { prefix?: string; onBranch?: string } = {}): Promise<string> { | ||
const gitParams = ["describe", "--tags", "--abbrev=0"]; | ||
@@ -15,2 +18,5 @@ if (prefix) { | ||
} | ||
if (onBranch) { | ||
gitParams.push(`${onBranch}`); | ||
} | ||
const gitPs = await spawn("git", gitParams, gitLogger); | ||
@@ -17,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
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
139663
2731