@clickview/ship-it 0.0.35-dev.13 → 0.0.35-dev.15
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.
|
@@ -62,7 +62,7 @@ var DEV_VERSION_REGEX = /-dev\.\d+$/;
|
|
|
62
62
|
var RC_VERSION_REGEX = /-rc\.\d+$/;
|
|
63
63
|
var BumpPackagesTask = /** @class */ (function () {
|
|
64
64
|
function BumpPackagesTask(service) {
|
|
65
|
-
this.isReleaseBranch =
|
|
65
|
+
this.isReleaseBranch = false;
|
|
66
66
|
this.isHotfixBranch = false;
|
|
67
67
|
this.isInPreRelease = false;
|
|
68
68
|
this.service = service;
|
|
@@ -76,6 +76,7 @@ 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) || true;
|
|
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');
|
|
79
80
|
_a = this;
|
|
80
81
|
return [4 /*yield*/, this.getIsInPrerelease(options.branchName)];
|
|
81
82
|
case 1:
|
|
@@ -90,11 +91,12 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
90
91
|
isValid = this.validateOptions(options);
|
|
91
92
|
if (!isValid)
|
|
92
93
|
return [2 /*return*/, false];
|
|
94
|
+
utils_1.Logger.logInfo('Options are valid! Proceeding to bump package versions.');
|
|
93
95
|
commitFiles = this.getCommitFiles(options);
|
|
94
96
|
return [4 /*yield*/, this.service.commit(utils_1.ProjectIds.MONOREPO_PROJECT_ID, options.branchName, 'Bump package versions', commitFiles)];
|
|
95
97
|
case 3:
|
|
96
98
|
_b.sent();
|
|
97
|
-
utils_1.Logger.logSuccess('Successfully
|
|
99
|
+
utils_1.Logger.logSuccess('Successfully committed updated version numbers.');
|
|
98
100
|
return [2 /*return*/, true];
|
|
99
101
|
}
|
|
100
102
|
});
|
|
@@ -143,6 +145,7 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
143
145
|
var content = '';
|
|
144
146
|
try {
|
|
145
147
|
content = (0, fs_1.readFileSync)(filePath, { encoding: 'utf8' });
|
|
148
|
+
utils_1.Logger.logInfo('file', filePath, content);
|
|
146
149
|
}
|
|
147
150
|
catch (_a) {
|
|
148
151
|
/**
|