@sap-ux/fe-fpm-writer
Advanced tools
Comparing version 0.24.14 to 0.24.15
@@ -30,3 +30,3 @@ "use strict"; | ||
function validateBasePath(basePath, fs) { | ||
var _a, _b, _c; | ||
var _a, _b; | ||
if (!fs) { | ||
@@ -41,4 +41,5 @@ fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)()); | ||
const manifest = fs.readJSON(manifestPath); | ||
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) { | ||
throw new Error('Dependency sap.fe.templates is missing in the manifest.json. Fiori elements FPM requires the SAP FE libraries.'); | ||
const ui5Dependencies = (_b = (_a = manifest['sap.ui5']) === null || _a === void 0 ? void 0 : _a.dependencies) === null || _b === void 0 ? void 0 : _b.libs; | ||
if (!(ui5Dependencies && (ui5Dependencies['sap.fe.core'] || ui5Dependencies['sap.fe.templates']))) { | ||
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.'); | ||
} | ||
@@ -45,0 +46,0 @@ } |
{ | ||
"name": "@sap-ux/fe-fpm-writer", | ||
"description": "SAP Fiori elements flexible programming model writer", | ||
"version": "0.24.14", | ||
"version": "0.24.15", | ||
"repository": { | ||
@@ -36,3 +36,3 @@ "type": "git", | ||
"@types/semver": "7.5.2", | ||
"@sap-ux/project-access": "1.20.3" | ||
"@sap-ux/project-access": "1.21.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "engines": { |
199924
4240