@clickview/ship-it 0.0.35-rc.0 → 0.0.35-rc.2
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.
|
@@ -359,22 +359,6 @@ var GitLabApiClient = /** @class */ (function () {
|
|
|
359
359
|
});
|
|
360
360
|
});
|
|
361
361
|
};
|
|
362
|
-
GitLabApiClient.prototype.updateFiles = function (projectId, branchName, commitMessage, files) {
|
|
363
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
364
|
-
return __generator(this, function (_a) {
|
|
365
|
-
switch (_a.label) {
|
|
366
|
-
case 0: return [4 /*yield*/, this.client.Commits.create(projectId, branchName, commitMessage, files.map(function (f) { return ({
|
|
367
|
-
action: 'update',
|
|
368
|
-
filePath: f.filePath,
|
|
369
|
-
content: f.content
|
|
370
|
-
}); }))];
|
|
371
|
-
case 1:
|
|
372
|
-
_a.sent();
|
|
373
|
-
return [2 /*return*/];
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
});
|
|
377
|
-
};
|
|
378
362
|
GitLabApiClient.prototype.commit = function (projectId, branchName, files, commitMessage) {
|
|
379
363
|
return __awaiter(this, void 0, void 0, function () {
|
|
380
364
|
return __generator(this, function (_a) {
|
package/lib/src/index.js
CHANGED
|
File without changes
|
|
@@ -353,9 +353,6 @@ var GitLabService = /** @class */ (function () {
|
|
|
353
353
|
GitLabService.prototype.updateFile = function (projectId, filePath, branchName, content, commit) {
|
|
354
354
|
return this.apiClient.updateFile(projectId, filePath, branchName, content, commit);
|
|
355
355
|
};
|
|
356
|
-
GitLabService.prototype.updateFiles = function (projectId, branchName, commitMessage, files) {
|
|
357
|
-
return this.apiClient.updateFiles(projectId, branchName, commitMessage, files);
|
|
358
|
-
};
|
|
359
356
|
GitLabService.prototype.commit = function (projectId, branchName, commitMessage, files) {
|
|
360
357
|
return __awaiter(this, void 0, void 0, function () {
|
|
361
358
|
return __generator(this, function (_a) {
|
|
@@ -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;
|
|
72
|
+
var _a, branch, isValid, commitFiles, _i, commitFiles_1, file;
|
|
73
73
|
return __generator(this, function (_b) {
|
|
74
74
|
switch (_b.label) {
|
|
75
75
|
case 0:
|
|
@@ -93,6 +93,12 @@ var BumpPackagesTask = /** @class */ (function () {
|
|
|
93
93
|
return [2 /*return*/, false];
|
|
94
94
|
utils_1.Logger.logInfo('Options are valid! Proceeding to bump package versions.');
|
|
95
95
|
commitFiles = this.getCommitFiles(options);
|
|
96
|
+
utils_1.Logger.logInfo('Writing new versions to package.json files...');
|
|
97
|
+
for (_i = 0, commitFiles_1 = commitFiles; _i < commitFiles_1.length; _i++) {
|
|
98
|
+
file = commitFiles_1[_i];
|
|
99
|
+
(0, fs_1.writeFileSync)(file.filePath, file.content);
|
|
100
|
+
}
|
|
101
|
+
utils_1.Logger.logInfo('Committing new versions...');
|
|
96
102
|
return [4 /*yield*/, this.service.commit(utils_1.ProjectIds.MONOREPO_PROJECT_ID, options.branchName, 'Bump package versions', commitFiles)];
|
|
97
103
|
case 3:
|
|
98
104
|
_b.sent();
|
|
@@ -128,7 +128,7 @@ var InstallPackagesTask = /** @class */ (function () {
|
|
|
128
128
|
/**
|
|
129
129
|
* Run npm i to update our package log file
|
|
130
130
|
*/
|
|
131
|
-
utils_1.Logger.logInfo("[".concat(project.title, "]: Running npm i
|
|
131
|
+
utils_1.Logger.logInfo("[".concat(project.title, "]: Running npm i"));
|
|
132
132
|
this.npmInstall(project, folderName);
|
|
133
133
|
utils_1.Logger.logInfo('\n');
|
|
134
134
|
/**
|
|
@@ -221,7 +221,7 @@ var InstallPackagesTask = /** @class */ (function () {
|
|
|
221
221
|
/**
|
|
222
222
|
* Run npm i to update our package log file
|
|
223
223
|
*/
|
|
224
|
-
utils_1.Logger.logInfo("[".concat(project.title, "]: Running npm i
|
|
224
|
+
utils_1.Logger.logInfo("[".concat(project.title, "]: Running npm i"));
|
|
225
225
|
this.npmInstall(project, options.milestone);
|
|
226
226
|
utils_1.Logger.logInfo('\n');
|
|
227
227
|
/**
|
|
@@ -280,7 +280,7 @@ var InstallPackagesTask = /** @class */ (function () {
|
|
|
280
280
|
};
|
|
281
281
|
InstallPackagesTask.prototype.npmInstall = function (project, folderName) {
|
|
282
282
|
var outputPath = this.getOutputPath(project, folderName);
|
|
283
|
-
child_process_1.default.execSync('npm i
|
|
283
|
+
child_process_1.default.execSync('npm i', {
|
|
284
284
|
cwd: outputPath,
|
|
285
285
|
// Uncomment if we want to silence
|
|
286
286
|
// stdio: 'pipe'
|