ics-builder 4.2.3 → 4.2.4
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
|
@@ -47,16 +47,20 @@ var Net5ApiBuilder = /** @class */ (function (_super) {
|
|
|
47
47
|
};
|
|
48
48
|
Net5ApiBuilder.prototype._build = function () {
|
|
49
49
|
var _this = this;
|
|
50
|
-
var _a;
|
|
51
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
if (this.modules.length == 0) {
|
|
52
|
+
utils_1.Logger.warn("Api layer not found, skipping.");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
var coreModule = (_a = this.modules.find(function (m) { return m.IsCoreModule; })) !== null && _a !== void 0 ? _a : this.modules[0];
|
|
52
56
|
var slnName = "Mdt";
|
|
53
57
|
var slnDir = path.dirname(coreModule.Project);
|
|
54
|
-
var configuration = ((
|
|
58
|
+
var configuration = ((_b = this.config.api) === null || _b === void 0 ? void 0 : _b.configuration) || "Debug";
|
|
55
59
|
var tempSlnPath = path.join(slnDir, slnName + ".sln");
|
|
56
60
|
try {
|
|
57
61
|
dotnetUtils_1.DotnetUtils.createTempSln(slnDir, slnName);
|
|
58
|
-
for (var _i = 0,
|
|
59
|
-
var m =
|
|
62
|
+
for (var _i = 0, _c = this.modules; _i < _c.length; _i++) {
|
|
63
|
+
var m = _c[_i];
|
|
60
64
|
var csproj = new csprojFile_1.CsprojFile(m.Project);
|
|
61
65
|
csproj.setPublishPath(m.OutputPath);
|
|
62
66
|
csproj.save(m.Project);
|