@clickview/ship-it 0.0.35 → 0.0.37-dev.0
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.
|
@@ -69,7 +69,7 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
69
69
|
}
|
|
70
70
|
BumpPackagesTask.prototype.run = function (options) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function () {
|
|
72
|
-
var _a, branch, isValid, commitFiles, _i, commitFiles_1, file;
|
|
72
|
+
var _a, branch, isValid, commitFiles, _i, commitFiles_1, file, newJsonFile;
|
|
73
73
|
return __generator(this, function (_b) {
|
|
74
74
|
switch (_b.label) {
|
|
75
75
|
case 0:
|
|
@@ -97,6 +97,8 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
97
97
|
for (_i = 0, commitFiles_1 = commitFiles; _i < commitFiles_1.length; _i++) {
|
|
98
98
|
file = commitFiles_1[_i];
|
|
99
99
|
(0, fs_1.writeFileSync)(file.filePath, file.content);
|
|
100
|
+
newJsonFile = JSON.parse(file.content);
|
|
101
|
+
utils_1.Logger.logInfo("Updated version for ".concat(newJsonFile.name, " to ").concat(newJsonFile.version));
|
|
100
102
|
}
|
|
101
103
|
utils_1.Logger.logInfo('Committing new versions...');
|
|
102
104
|
return [4 /*yield*/, this.service.commit(utils_1.ProjectIds.MONOREPO_PROJECT_ID, options.branchName, 'Bump package versions', commitFiles)];
|
|
@@ -186,9 +188,9 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
186
188
|
return "".concat(utils_1.Versions.getNextVersion(version, 'patch'), "-rc.0");
|
|
187
189
|
}
|
|
188
190
|
if (this.isReleaseBranch)
|
|
189
|
-
utils_1.Versions.getNextVersion(version, 'minor');
|
|
191
|
+
return utils_1.Versions.getNextVersion(version, 'minor');
|
|
190
192
|
if (this.isHotfixBranch)
|
|
191
|
-
utils_1.Versions.getNextVersion(version, 'patch');
|
|
193
|
+
return utils_1.Versions.getNextVersion(version, 'patch');
|
|
192
194
|
return version;
|
|
193
195
|
};
|
|
194
196
|
BumpPackagesTask.prototype.getIsInPrerelease = function (branchName) {
|