@sap-ux/fe-fpm-writer 0.42.13 → 0.42.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.
- package/dist/page/custom.js +9 -0
- package/package.json +5 -5
package/dist/page/custom.js
CHANGED
|
@@ -29,8 +29,17 @@ const i18n_1 = require("../i18n");
|
|
|
29
29
|
*/
|
|
30
30
|
function enhanceData(data, manifestPath, fs) {
|
|
31
31
|
const manifest = fs.readJSON(manifestPath);
|
|
32
|
+
// Check if folder was explicitly provided before setCommonDefaults modifies the data object
|
|
33
|
+
const folderWasProvided = !!data.folder;
|
|
32
34
|
// set common defaults
|
|
33
35
|
const config = (0, defaults_1.setCommonDefaults)(data, manifestPath, manifest);
|
|
36
|
+
// Override folder to use ext/view for custom pages (consistency with Page Map)
|
|
37
|
+
// Only override if no custom folder was explicitly provided
|
|
38
|
+
if (!folderWasProvided) {
|
|
39
|
+
config.folder = 'ext/view';
|
|
40
|
+
config.ns = `${manifest['sap.app'].id}.ext.view`;
|
|
41
|
+
config.path = (0, node_path_1.join)((0, node_path_1.dirname)(manifestPath), 'ext/view');
|
|
42
|
+
}
|
|
34
43
|
// currently the custom page template is always the same
|
|
35
44
|
config.template = 'sap.fe.core.fpm';
|
|
36
45
|
config.settings = (0, common_1.initializeTargetSettings)(data);
|
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.42.
|
|
4
|
+
"version": "0.42.16",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"semver": "7.7.4",
|
|
31
31
|
"xml-formatter": "2.6.1",
|
|
32
32
|
"xpath": "0.0.33",
|
|
33
|
-
"@sap-ux/fiori-annotation-api": "0.9.
|
|
34
|
-
"@sap-ux/project-access": "1.35.
|
|
33
|
+
"@sap-ux/fiori-annotation-api": "0.9.22",
|
|
34
|
+
"@sap-ux/project-access": "1.35.9",
|
|
35
35
|
"@sap-ux/logger": "0.8.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/mem-fs-editor": "7.0.1",
|
|
42
42
|
"@types/semver": "7.7.1",
|
|
43
43
|
"@types/vinyl": "2.0.7",
|
|
44
|
-
"@sap-ux/i18n": "0.3.
|
|
45
|
-
"@sap-ux/ui-prompting": "0.6.
|
|
44
|
+
"@sap-ux/i18n": "0.3.9",
|
|
45
|
+
"@sap-ux/ui-prompting": "0.6.7"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20.x"
|