ics-builder 4.2.7 → 4.2.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ics-builder",
3
- "version": "4.2.7",
3
+ "version": "4.2.8",
4
4
  "description": "",
5
5
  "main": "./src/app.js",
6
6
  "preferGlobal": true,
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CustomUiBuilder = void 0;
17
17
  var path = require("path");
18
18
  var utils_1 = require("../../utils");
19
+ var yaml = require("yamljs");
19
20
  var baseBuilder_1 = require("../baseBuilder");
20
21
  var CustomUiBuilder = /** @class */ (function (_super) {
21
22
  __extends(CustomUiBuilder, _super);
@@ -27,7 +28,8 @@ var CustomUiBuilder = /** @class */ (function (_super) {
27
28
  this.config.packages.forEach(function (pkg) {
28
29
  var _a, _b, _c, _d;
29
30
  var packageDir = path.join(_this.config.paths.source, pkg.name);
30
- var pkgInfo = pkg.packageInfo;
31
+ var packageYamlPath = path.join(packageDir, "package.yml");
32
+ var pkgInfo = utils_1.Utils.ensurePath(packageYamlPath) ? yaml.load(packageYamlPath) : {};
31
33
  var buildDir = path.join(packageDir, (((_b = (_a = pkgInfo === null || pkgInfo === void 0 ? void 0 : pkgInfo.builder) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.path) || "").replace(pkg.name, ""));
32
34
  var cmd = ((_d = (_c = pkgInfo === null || pkgInfo === void 0 ? void 0 : pkgInfo.builder) === null || _c === void 0 ? void 0 : _c.ui) === null || _d === void 0 ? void 0 : _d.cmd) || "";
33
35
  var envArgs = _this.prepareEnvArgs();