@sap-ux/mockserver-config-writer 0.7.0 → 0.7.1

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.
@@ -36,10 +36,16 @@ async function enhanceYaml(fs, basePath, webappPath, config) {
36
36
  const manifest = fs.readJSON((0, path_1.join)(webappPath, 'manifest.json'));
37
37
  // Prepare annotations list to be used in mockserver middleware config annotations
38
38
  const annotationSource = Object.values((0, app_info_1.getODataSources)(manifest, 'ODataAnnotation'));
39
- const annotationsConfig = annotationSource.map((annotation) => ({
40
- localPath: `./webapp/${annotation.settings?.localUri}`,
41
- urlPath: annotation.uri
42
- }));
39
+ const annotationsConfig = [];
40
+ annotationSource.forEach((annotation) => {
41
+ // Ignore local annotations from YAML file, those are linked through manifest file
42
+ if (annotation.settings?.localUri !== annotation.uri) {
43
+ annotationsConfig.push({
44
+ localPath: `./webapp/${annotation.settings?.localUri}`,
45
+ urlPath: annotation.uri
46
+ });
47
+ }
48
+ });
43
49
  // Prepare dataSources list to be used in mockserver middleware config services
44
50
  const dataSources = (0, app_info_1.getODataSources)(manifest);
45
51
  const dataSourcesConfig = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/mockserver-config-writer",
3
3
  "description": "Add or update configuration for SAP Fiori tools mockserver",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,7 +29,7 @@
29
29
  "@types/mem-fs-editor": "7.0.1",
30
30
  "@types/prompts": "2.4.4",
31
31
  "prompts": "2.4.2",
32
- "@sap-ux/project-access": "1.28.8"
32
+ "@sap-ux/project-access": "1.29.0"
33
33
  },
34
34
  "engines": {
35
35
  "node": ">=18.x"