ics-builder 4.2.5 → 4.2.6
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.
package/package.json
CHANGED
|
@@ -130,8 +130,7 @@ var DotnetApiBuilder = /** @class */ (function (_super) {
|
|
|
130
130
|
DotnetApiBuilder.prototype.msbuild = function (project, targets, props) {
|
|
131
131
|
var args = targets.map(function (t) { return "/t:" + t; }).join(" ") + " " + props.map(function (p) { return "/p:" + p; }).join(" ");
|
|
132
132
|
utils_1.Utils.exec("msbuild /restore /nologo /clp:ErrorsOnly;WarningsOnly /verbosity:quiet " + project + " " + args, {
|
|
133
|
-
silent: false
|
|
134
|
-
skipLog: true
|
|
133
|
+
silent: false
|
|
135
134
|
});
|
|
136
135
|
};
|
|
137
136
|
DotnetApiBuilder.prototype.clearCache = function (folderPath) {
|
|
@@ -33,7 +33,7 @@ var CustomUiBuilder = /** @class */ (function (_super) {
|
|
|
33
33
|
var envArgs = _this.prepareEnvArgs();
|
|
34
34
|
if (envArgs.length)
|
|
35
35
|
cmd = _this.prepareCmd(cmd, envArgs);
|
|
36
|
-
utils_1.Utils.exec(cmd, { cwd: buildDir
|
|
36
|
+
utils_1.Utils.exec(cmd, { cwd: buildDir });
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
CustomUiBuilder.prototype.prepareEnvArgs = function () {
|
package/src/dotnetUtils.js
CHANGED
|
@@ -19,8 +19,7 @@ var DotnetUtils = /** @class */ (function () {
|
|
|
19
19
|
if (outputPath)
|
|
20
20
|
command += " -o " + outputPath;
|
|
21
21
|
utils_1.Utils.exec(command, {
|
|
22
|
-
silent: false
|
|
23
|
-
skipLog: true
|
|
22
|
+
silent: false
|
|
24
23
|
});
|
|
25
24
|
};
|
|
26
25
|
DotnetUtils.addProjectsToSln = function (slnFilePath, projects, dropSlnOnFail) {
|
|
@@ -39,8 +39,7 @@ var ApiTestRunner = /** @class */ (function (_super) {
|
|
|
39
39
|
var name = path.basename(p, ".csproj");
|
|
40
40
|
var logPath = path.join(_this.config.resultPath, name + ".trx");
|
|
41
41
|
utils_1.Utils.exec("dotnet test " + p + " -p:DefineConstants=TEST --logger:\"trx;LogFileName=" + _this.config.resultPath + "\"", {
|
|
42
|
-
silent: false
|
|
43
|
-
skipLog: true
|
|
42
|
+
silent: false
|
|
44
43
|
});
|
|
45
44
|
});
|
|
46
45
|
};
|
package/src/utils.js
CHANGED
|
@@ -33,14 +33,14 @@ var Utils = /** @class */ (function () {
|
|
|
33
33
|
function Utils() {
|
|
34
34
|
}
|
|
35
35
|
Utils.exec = function (cmd, options) {
|
|
36
|
-
var _a = __assign({}, options),
|
|
36
|
+
var _a = __assign({}, options), skipError = _a.skipError, _b = _a.logCmd, logCmd = _b === void 0 ? true : _b, cmdOptions = __rest(_a, ["skipError", "logCmd"]);
|
|
37
37
|
logCmd && Logger.info(cmd);
|
|
38
38
|
try {
|
|
39
39
|
var result = shell.exec(cmd, __assign({}, cmdOptions));
|
|
40
40
|
if (result.code !== 0 && !skipError) {
|
|
41
41
|
if (options === null || options === void 0 ? void 0 : options.onProcessExit)
|
|
42
42
|
options.onProcessExit();
|
|
43
|
-
Logger.error(
|
|
43
|
+
Logger.error(result.stderr || result.stdout);
|
|
44
44
|
}
|
|
45
45
|
return result;
|
|
46
46
|
}
|