@sap-ux/mockserver-config-writer 0.8.2 → 0.8.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.
|
@@ -40,8 +40,11 @@ async function enhanceYaml(fs, basePath, webappPath, config) {
|
|
|
40
40
|
annotationSource.forEach((annotation) => {
|
|
41
41
|
// Ignore local annotations from YAML file, those are linked through manifest file
|
|
42
42
|
if (annotation.settings?.localUri !== annotation.uri) {
|
|
43
|
+
const localUri = annotation.settings?.localUri;
|
|
43
44
|
annotationsConfig.push({
|
|
44
|
-
localPath:
|
|
45
|
+
localPath: localUri
|
|
46
|
+
? `.${path_1.posix.sep}${(0, path_1.relative)(basePath, (0, path_1.join)(webappPath, localUri)).replaceAll(path_1.sep, path_1.posix.sep)}`
|
|
47
|
+
: undefined,
|
|
45
48
|
urlPath: annotation.uri
|
|
46
49
|
});
|
|
47
50
|
}
|
|
@@ -54,7 +57,9 @@ async function enhanceYaml(fs, basePath, webappPath, config) {
|
|
|
54
57
|
dataSourcesConfig.push({
|
|
55
58
|
serviceName: dataSource,
|
|
56
59
|
servicePath: dataSources[dataSource].uri,
|
|
57
|
-
metadataPath: localUri
|
|
60
|
+
metadataPath: localUri
|
|
61
|
+
? `.${path_1.posix.sep}${(0, path_1.relative)(basePath, (0, path_1.join)(webappPath, localUri)).replaceAll(path_1.sep, path_1.posix.sep)}`
|
|
62
|
+
: undefined
|
|
58
63
|
});
|
|
59
64
|
}
|
|
60
65
|
if (fs.exists(ui5MockYamlPath)) {
|
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.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"i18next": "20.6.1",
|
|
23
23
|
"mem-fs": "2.1.0",
|
|
24
24
|
"mem-fs-editor": "9.4.0",
|
|
25
|
-
"@sap-ux/project-access": "1.29.
|
|
25
|
+
"@sap-ux/project-access": "1.29.10",
|
|
26
26
|
"@sap-ux/ui5-config": "0.26.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|