@sap-ux/fiori-elements-writer 2.8.46 → 2.8.48

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 +7 -6
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -199,12 +199,6 @@ async function generate(basePath, data, fs, log) {
199
199
  };
200
200
  }
201
201
  fs.writeJSON(packagePath, packageJson);
202
- if (addTest) {
203
- const opaConfig = getOpaConfig({
204
- useVirtualPreviewEndpoints: feApp.appOptions?.useVirtualPreviewEndpoints
205
- }, feApp.app.flpAppId);
206
- await (0, ui5_test_writer_1.generateOPAFiles)(basePath, opaConfig, fs, log);
207
- }
208
202
  if (feApp.service.capService) {
209
203
  const settings = {
210
204
  appRoot: basePath,
@@ -220,6 +214,13 @@ async function generate(basePath, data, fs, log) {
220
214
  if (feApp.appOptions?.addAnnotations) {
221
215
  await (0, writeAnnotations_1.writeAnnotations)(basePath, feApp, fs, log);
222
216
  }
217
+ // OPA tests must be generated last since they depend on other parts of the app, such as annotations, being in place
218
+ if (addTest) {
219
+ const opaConfig = getOpaConfig({
220
+ useVirtualPreviewEndpoints: feApp.appOptions?.useVirtualPreviewEndpoints
221
+ }, feApp.app.flpAppId);
222
+ await (0, ui5_test_writer_1.generateOPAFiles)(basePath, opaConfig, fs, log);
223
+ }
223
224
  return fs;
224
225
  }
225
226
  __exportStar(require("./types"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-elements-writer",
3
3
  "description": "SAP Fiori elements application writer",
4
- "version": "2.8.46",
4
+ "version": "2.8.48",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -28,12 +28,12 @@
28
28
  "read-pkg-up": "7.0.1",
29
29
  "semver": "7.5.4",
30
30
  "@sap-ux/odata-service-writer": "0.29.9",
31
- "@sap-ux/ui5-application-writer": "1.7.2",
31
+ "@sap-ux/ui5-application-writer": "1.7.3",
32
32
  "@sap-ux/fe-fpm-writer": "0.41.1",
33
33
  "@sap-ux/ui5-config": "0.29.13",
34
- "@sap-ux/ui5-test-writer": "0.7.55",
35
- "@sap-ux/fiori-generator-shared": "0.13.57",
36
- "@sap-ux/cap-config-writer": "0.12.48",
34
+ "@sap-ux/ui5-test-writer": "0.7.56",
35
+ "@sap-ux/fiori-generator-shared": "0.13.58",
36
+ "@sap-ux/cap-config-writer": "0.12.49",
37
37
  "@sap-ux/annotation-generator": "0.4.11",
38
38
  "@sap-ux/logger": "0.8.0"
39
39
  },
@@ -46,7 +46,7 @@
46
46
  "@types/semver": "7.5.2",
47
47
  "fs-extra": "10.0.0",
48
48
  "@sap-ux/project-access": "1.34.2",
49
- "@sap-ux/eslint-plugin-fiori-tools": "9.2.1"
49
+ "@sap-ux/eslint-plugin-fiori-tools": "9.2.3"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=20.x"