@sap-ux/fe-fpm-writer 0.24.15 → 0.24.16

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.
@@ -27,7 +27,7 @@ exports.validateVersion = validateVersion;
27
27
  * @returns true if the path is valid, otherwise, throws and error
28
28
  */
29
29
  function validateBasePath(basePath, fs) {
30
- var _a, _b;
30
+ var _a, _b, _c;
31
31
  if (!fs) {
32
32
  fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
33
33
  }
@@ -37,9 +37,8 @@ function validateBasePath(basePath, fs) {
37
37
  }
38
38
  else {
39
39
  const manifest = fs.readJSON(manifestPath);
40
- const ui5Dependencies = (_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs;
41
- if (!(ui5Dependencies && (ui5Dependencies['sap.fe.core'] || ui5Dependencies['sap.fe.templates']))) {
42
- throw new Error('Dependencies sap.fe.core or sap.fe.templates are missing in the manifest.json. Fiori elements FPM requires the SAP FE libraries.');
40
+ if ((((_c = (_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs) === null || _c === void 0 ? void 0 : _c['sap.fe.templates']) !== undefined) === false) {
41
+ throw new Error('Dependency sap.fe.templates is missing in the manifest.json. Fiori elements FPM requires the SAP FE libraries.');
43
42
  }
44
43
  }
45
44
  return true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fe-fpm-writer",
3
3
  "description": "SAP Fiori elements flexible programming model writer",
4
- "version": "0.24.15",
4
+ "version": "0.24.16",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -33,7 +33,7 @@
33
33
  "@types/mem-fs": "1.1.2",
34
34
  "@types/mem-fs-editor": "7.0.1",
35
35
  "@types/semver": "7.5.2",
36
- "@sap-ux/project-access": "1.21.2"
36
+ "@sap-ux/project-access": "1.22.3"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=18.x"