@spryker-lerna/version
Advanced tools
Comparing version 5.1.1 to 5.1.4
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.1.4](https://github.com/lerna/lerna/compare/v5.1.3...v5.1.4) (2022-06-04) | ||
### Bug Fixes | ||
* **lerna:** apply tag prefix consistenly for all modes ([8869664](https://github.com/lerna/lerna/commit/88696640a224b71f2f5297836707ff33ec995323)) | ||
## [5.1.1](https://github.com/lerna/lerna/compare/v5.1.0...v5.1.1) (2022-06-04) | ||
@@ -8,0 +19,0 @@ |
12
index.js
@@ -70,3 +70,3 @@ "use strict"; | ||
forceGitTag, | ||
tagVersionPrefix = "v", | ||
tagVersionPrefix = this.project.isIndependent() ? "" : "v", | ||
} = this.options; | ||
@@ -256,3 +256,7 @@ | ||
const check = checkUncommittedOnly ? throwIfUncommitted : checkWorkingTree; | ||
tasks.unshift(() => check(this.execOpts)); | ||
const opts = { ...this.execOpts }; | ||
if (this.tagPrefix) { | ||
opts.match = `${this.tagPrefix}**`; | ||
} | ||
tasks.unshift(() => check(opts)); | ||
} else { | ||
@@ -654,3 +658,5 @@ this.logger.warn("version", "Skipping working tree validation, proceed at your own risk"); | ||
gitCommitAndTagVersionForUpdates() { | ||
const tags = this.packagesToVersion.map((pkg) => `${pkg.name}@${this.updatesVersions.get(pkg.name)}`); | ||
const tags = this.packagesToVersion.map( | ||
(pkg) => `${this.tagPrefix}${pkg.name}@${this.updatesVersions.get(pkg.name)}` | ||
); | ||
const subject = this.options.message || "Publish"; | ||
@@ -657,0 +663,0 @@ const message = tags.reduce((msg, tag) => `${msg}${os.EOL} - ${tag}`, `${subject}${os.EOL}`); |
{ | ||
"name": "@spryker-lerna/version", | ||
"version": "5.1.1", | ||
"version": "5.1.4", | ||
"description": "Bump version of packages changed since the last release", | ||
@@ -37,5 +37,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@spryker-lerna/check-working-tree": "5.1.0", | ||
"@spryker-lerna/check-working-tree": "5.1.4", | ||
"@spryker-lerna/child-process": "5.1.0", | ||
"@spryker-lerna/collect-updates": "5.1.0", | ||
"@spryker-lerna/collect-updates": "5.1.4", | ||
"@spryker-lerna/command": "5.1.0", | ||
@@ -65,3 +65,3 @@ "@spryker-lerna/conventional-commits": "5.1.0", | ||
}, | ||
"gitHead": "587eb7632dd6622e23aaa050bf93eb92b0d298b2" | ||
"gitHead": "9019cc0df0b63339d424210897e47a01bd27684f" | ||
} |
90719
1181
+ Added@spryker-lerna/check-working-tree@5.1.4(transitive)
+ Added@spryker-lerna/collect-updates@5.1.4(transitive)
+ Addedpicocolors@1.0.0(transitive)
- Removed@spryker-lerna/check-working-tree@5.1.0(transitive)
- Removed@spryker-lerna/collect-updates@5.1.0(transitive)
- Removedpicocolors@1.0.1(transitive)