@ioffice/tc-builder
Advanced tools
Comparing version 2.0.0 to 2.0.1-beta.1806261210
@@ -104,3 +104,3 @@ "use strict"; | ||
_a.trys.push([8, 11, , 12]); | ||
return [4 /*yield*/, this.runStep('beforePublish', '', this.beforePublish)]; | ||
return [4 /*yield*/, this.runStep('beforePublish', 'running beforePublish', this.beforePublish)]; | ||
case 9: | ||
@@ -185,3 +185,3 @@ _a.sent(); | ||
_a.trys.push([1, 4, , 5]); | ||
return [4 /*yield*/, this.runStep('beforePublish', '', this.beforePublish)]; | ||
return [4 /*yield*/, this.runStep('beforePublish', 'running beforePublish', this.beforePublish)]; | ||
case 2: | ||
@@ -199,3 +199,3 @@ _a.sent(); | ||
_a.trys.push([5, 7, , 8]); | ||
return [4 /*yield*/, this.runStep('afterPublish', '', this.afterPublish)]; | ||
return [4 /*yield*/, this.runStep('afterPublish', 'running afterPublish', this.afterPublish)]; | ||
case 6: | ||
@@ -228,11 +228,11 @@ _a.sent(); | ||
_a.trys.push([1, 7, , 8]); | ||
return [4 /*yield*/, this.runStep('beforeVerifyPullRequest', '', this.beforeVerifyPullRequest)]; | ||
return [4 /*yield*/, this.runStep('beforeVerifyPullRequest', 'running beforeVerifyPullRequest', this.beforeVerifyPullRequest)]; | ||
case 2: | ||
_a.sent(); | ||
if (!(this.env.pullRequestBranch === 'release')) return [3 /*break*/, 4]; | ||
return [4 /*yield*/, this.runStep('verifyRelease', '', this.verifyRelease)]; | ||
return [4 /*yield*/, this.runStep('verifyRelease', 'verifying release', this.verifyRelease)]; | ||
case 3: | ||
_a.sent(); | ||
return [3 /*break*/, 6]; | ||
case 4: return [4 /*yield*/, this.runStep('verifyNonRelease', '', this.verifyNonRelease)]; | ||
case 4: return [4 /*yield*/, this.runStep('verifyNonRelease', 'verifying non-release', this.verifyNonRelease)]; | ||
case 5: | ||
@@ -247,3 +247,3 @@ _a.sent(); | ||
_a.trys.push([8, 10, , 11]); | ||
return [4 /*yield*/, this.runStep('afterVerifyPullRequest', '', this.afterVerifyPullRequest)]; | ||
return [4 /*yield*/, this.runStep('afterVerifyPullRequest', 'running afterVerifyPullRequest', this.afterVerifyPullRequest)]; | ||
case 9: | ||
@@ -250,0 +250,0 @@ _a.sent(); |
@@ -9,2 +9,3 @@ "use strict"; | ||
var Util_1 = require("../Util"); | ||
var services_1 = require("../services"); | ||
var AbstractBuilder_1 = require("./AbstractBuilder"); | ||
@@ -20,2 +21,5 @@ var NPMBuilder = /** @class */ (function (_super) { | ||
var mocha = new Mocha(); | ||
if (_this.env.ci === services_1.CI.TRAVIS) { | ||
mocha.useColors(true); | ||
} | ||
mocha.addFile('build/test/index.js'); | ||
@@ -22,0 +26,0 @@ mocha.run(function (failures) { |
{ | ||
"name": "@ioffice/tc-builder", | ||
"version": "2.0.0", | ||
"version": "2.0.1-beta.1806261210", | ||
"description": "iOFFICE TeamCity Builder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,3 @@ "use strict"; | ||
var Util_1 = require("../Util"); | ||
var colors = require("colors"); | ||
var IO = /** @class */ (function () { | ||
@@ -67,2 +68,5 @@ function IO(env) { | ||
this.log("travis_fold:start:" + name); | ||
if (desc) { | ||
this.log(colors.yellow(desc)); | ||
} | ||
} | ||
@@ -113,3 +117,8 @@ else { | ||
} | ||
Util_1.util.writeJSON(data, fileName); | ||
if (data.errors.length === 0 && data.warnings.length === 0) { | ||
// remove file since there is no content? | ||
} | ||
else { | ||
Util_1.util.writeJSON(data, fileName); | ||
} | ||
}; | ||
@@ -116,0 +125,0 @@ IO.warnings = []; |
@@ -16,3 +16,3 @@ "use strict"; | ||
function getFileContents(fileName, replacements) { | ||
var contents = fs.readFileSync(rel("./setup/projectFiles/" + fileName + ".tpl")); | ||
var contents = fs.readFileSync(rel("./projectFiles/" + fileName + ".tpl")); | ||
return Util_1.util.replaceStrings(contents.toString(), replacements); | ||
@@ -19,0 +19,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
109890
51
2617
2
2