@clickview/ship-it 0.0.37-dev.0 → 0.0.37-dev.1
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.
|
@@ -76,11 +76,12 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
76
76
|
utils_1.Logger.logTask('Bumping clickview npm package versions');
|
|
77
77
|
this.isReleaseBranch = RELEASE_BRANCH_REGEX.test(options.branchName);
|
|
78
78
|
this.isHotfixBranch = HOTFIX_BRANCH_REGEX.test(options.branchName);
|
|
79
|
-
utils_1.Logger.logTask('Detected that monorepo is currently in a pre-release state');
|
|
80
79
|
_a = this;
|
|
81
80
|
return [4 /*yield*/, this.getIsInPrerelease(options.branchName)];
|
|
82
81
|
case 1:
|
|
83
82
|
_a.isInPreRelease = _b.sent();
|
|
83
|
+
if (this.isInPreRelease)
|
|
84
|
+
utils_1.Logger.logTask('Detected that monorepo is currently in a pre-release state');
|
|
84
85
|
return [4 /*yield*/, this.service.getBranch(utils_1.ProjectIds.MONOREPO_PROJECT_ID, options.branchName)];
|
|
85
86
|
case 2:
|
|
86
87
|
branch = _b.sent();
|
|
@@ -153,6 +154,7 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
153
154
|
// Only bump versions for projects with an output directory
|
|
154
155
|
if (!(0, fs_1.existsSync)(MonorepoPackageJsonFiles_1.MONOREPO_DISTS_MAP[projectId]) || !(0, fs_1.statSync)(MonorepoPackageJsonFiles_1.MONOREPO_DISTS_MAP[projectId]).isDirectory())
|
|
155
156
|
continue;
|
|
157
|
+
utils_1.Logger.logInfo("Bumping version for project with ID: ".concat(projectId));
|
|
156
158
|
var content = '';
|
|
157
159
|
try {
|
|
158
160
|
content = (0, fs_1.readFileSync)(packageJsonFilePath, { encoding: 'utf8' });
|
|
@@ -204,6 +206,8 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
204
206
|
case 1:
|
|
205
207
|
if (!(_i < MONOREPO_PACKAGE_JSON_FILES_1.length)) return [3 /*break*/, 4];
|
|
206
208
|
file = MONOREPO_PACKAGE_JSON_FILES_1[_i];
|
|
209
|
+
if (!file.includes('projects'))
|
|
210
|
+
return [3 /*break*/, 3];
|
|
207
211
|
return [4 /*yield*/, this.getFileText(utils_1.ProjectIds.MONOREPO_PROJECT_ID, branchName, file)];
|
|
208
212
|
case 2:
|
|
209
213
|
text = _a.sent();
|