@clickview/ship-it 0.0.37-rc.0 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,15 +179,15 @@ var BumpPackagesTask = /** @class */ (function () {
179
179
  if (this.isInPreRelease && options.preId) {
180
180
  if (options.preId === 'dev') {
181
181
  if (DEV_VERSION_REGEX.test(version)) {
182
- var currentPreId = Number(version[version.length - 1]);
183
- return "".concat(version.substring(0, version.length - 1)).concat(currentPreId + 1);
182
+ var _a = version.split('-dev.'), mainVersion = _a[0], currentPreId = _a[1];
183
+ return "".concat(mainVersion, "-dev.").concat(Number(currentPreId) + 1);
184
184
  }
185
185
  return "".concat(utils_1.Versions.getNextVersion(version, 'patch'), "-dev.0");
186
186
  }
187
187
  if (options.preId === 'rc') {
188
188
  if (RC_VERSION_REGEX.test(version)) {
189
- var currentPreId = Number(version[version.length - 1]);
190
- return "".concat(version.substring(0, version.length - 1)).concat(currentPreId + 1);
189
+ var _b = version.split('-rc.'), mainVersion = _b[0], currentPreId = _b[1];
190
+ return "".concat(mainVersion, "-rc.").concat(Number(currentPreId) + 1);
191
191
  }
192
192
  if (this.isReleaseBranch)
193
193
  return "".concat(utils_1.Versions.getNextVersion(version, 'minor'), "-rc.0");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/ship-it",
3
- "version": "0.0.37-rc.0",
3
+ "version": "0.0.37",
4
4
  "description": "Release Manager",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {