ics-builder 4.1.85 → 4.1.86
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
package/src/app.js
CHANGED
|
File without changes
|
|
@@ -123,13 +123,8 @@ var DotnetApiBuilder = /** @class */ (function (_super) {
|
|
|
123
123
|
if (/(\.svc)$/.test(fileName))
|
|
124
124
|
utils_1.Utils.copyFile(path.join(moduleDir, fileName), path.join(targetDir, fileName));
|
|
125
125
|
});
|
|
126
|
-
var
|
|
127
|
-
|
|
128
|
-
var baseDir = path.basename(moduleDir);
|
|
129
|
-
if (baseDir.endsWith("api"))
|
|
130
|
-
baseDir = path.basename(path.dirname(moduleDir));
|
|
131
|
-
utils_1.Utils.copyFile(moduleConfigFile, path.join(targetDir, moduleName + ".app.config"));
|
|
132
|
-
}
|
|
126
|
+
var moduleConfigFileName = "app.config";
|
|
127
|
+
this.copyModuleConfig(moduleDir, targetDir, moduleConfigFileName, moduleName + "." + moduleConfigFileName);
|
|
133
128
|
utils_1.Utils.deleteFiles(targetDir, ["packages.config", "web.config.template"]);
|
|
134
129
|
utils_1.Logger.info(moduleName.replace("._core", "") + ": " + info.join(", "));
|
|
135
130
|
}
|
|
@@ -26,6 +26,7 @@ var Net5ApiBuilder = /** @class */ (function (_super) {
|
|
|
26
26
|
var _this = _super.call(this, config) || this;
|
|
27
27
|
_this.modules = new Array();
|
|
28
28
|
_this.allProjects = [];
|
|
29
|
+
_this.configFile = "appsettings.json";
|
|
29
30
|
_this.buildApiFolder = path.join(_this.config.paths.build, "api");
|
|
30
31
|
shell.config.silent = true;
|
|
31
32
|
return _this;
|
|
@@ -49,6 +50,10 @@ var Net5ApiBuilder = /** @class */ (function (_super) {
|
|
|
49
50
|
silent: false,
|
|
50
51
|
skipLog: true
|
|
51
52
|
});
|
|
53
|
+
if (!isCoreModule) {
|
|
54
|
+
var projectDir = path.dirname(m.Project);
|
|
55
|
+
_this.copyModuleConfig(projectDir, outputPath, _this.configFile);
|
|
56
|
+
}
|
|
52
57
|
});
|
|
53
58
|
};
|
|
54
59
|
Net5ApiBuilder.prototype.collectModuleInfo = function (pkg) {
|
|
@@ -38,6 +38,12 @@ var BaseBuilder = /** @class */ (function () {
|
|
|
38
38
|
utils_1.Logger.info("Tests successfully passed. Coverage report: \n" + stdout);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
BaseBuilder.prototype.copyModuleConfig = function (sourceDir, targetDir, configFileName, newConfigFileName) {
|
|
42
|
+
var moduleConfigFile = path.join(sourceDir, configFileName);
|
|
43
|
+
if (utils_1.Utils.ensurePath(moduleConfigFile)) {
|
|
44
|
+
utils_1.Utils.copyFile(moduleConfigFile, path.join(targetDir, newConfigFileName !== null && newConfigFileName !== void 0 ? newConfigFileName : configFileName));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
41
47
|
return BaseBuilder;
|
|
42
48
|
}());
|
|
43
49
|
exports.BaseBuilder = BaseBuilder;
|