@sap-ux/ui5-application-writer 1.4.1 → 1.4.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -56,10 +56,12 @@ async function generate(basePath, ui5AppConfig, fs) {
56
56
  }
57
57
  });
58
58
  ui5Config.addFioriToolsAppReloadMiddleware();
59
- if (isEdmxProjectType) {
60
- const previewMiddleWareOpts = getPreviewMiddlewareOpts(ui5App.app, ui5App.ui5?.ui5Theme, ui5AppConfig.appOptions?.useVirtualPreviewEndpoints);
61
- // add preview middleware to ui5Config
59
+ const previewMiddleWareOpts = getPreviewMiddlewareOpts(ui5App.app, ui5App.ui5?.ui5Theme, ui5AppConfig.appOptions?.useVirtualPreviewEndpoints);
60
+ // add preview middleware to ui5Config for edmx projects and cap apps using virtual endpoints
61
+ if (isEdmxProjectType || ui5AppConfig.appOptions?.useVirtualPreviewEndpoints) {
62
62
  ui5Config.addFioriToolsPreviewMiddleware(previewMiddleWareOpts);
63
+ }
64
+ if (isEdmxProjectType) {
63
65
  const ui5LocalConfigPath = (0, path_1.join)(basePath, 'ui5-local.yaml');
64
66
  // write ui5-local.yaml only for non-CAP applications
65
67
  const ui5LocalConfig = await ui5_config_1.UI5Config.newInstance(fs.read(ui5LocalConfigPath));
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
11
11
  },
12
- "version": "1.4.1",
12
+ "version": "1.4.3",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,7 +27,7 @@
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/ui5-config": "0.27.1"
30
+ "@sap-ux/ui5-config": "0.27.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/ejs": "3.1.2",
@@ -38,7 +38,7 @@
38
38
  "@types/semver": "7.5.2",
39
39
  "fs-extra": "10.0.0",
40
40
  "@sap-ux/eslint-plugin-fiori-tools": "0.5.0",
41
- "@sap-ux/project-access": "1.29.20"
41
+ "@sap-ux/project-access": "1.29.21"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18.x"