@sap-ux/mockserver-config-writer 0.4.1 → 0.5.0
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.
|
@@ -50,9 +50,10 @@ function enhanceDependencies(packageJson, mockserverModule = '@sap-ux/ui5-middle
|
|
|
50
50
|
* @param packageJson - path to package.json
|
|
51
51
|
*/
|
|
52
52
|
function enhanceScripts(fs, packageJson) {
|
|
53
|
+
var _a, _b;
|
|
53
54
|
packageJson.scripts || (packageJson.scripts = {});
|
|
54
55
|
packageJson.scripts['start-mock'] =
|
|
55
|
-
copyStartScript(packageJson.scripts.start)
|
|
56
|
+
(_b = (_a = copyStartScript(packageJson.scripts.start)) !== null && _a !== void 0 ? _a : packageJson.scripts['start-mock']) !== null && _b !== void 0 ? _b : `fiori run --config ./ui5-mock.yaml --open "/"`;
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* Return a copy of package.json's 'start' script with added or replaced config pointing to ui5-mock.yaml.
|
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.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"i18next": "20.6.1",
|
|
23
23
|
"mem-fs": "2.1.0",
|
|
24
24
|
"mem-fs-editor": "9.4.0",
|
|
25
|
-
"@sap-ux/ui5-config": "0.22.
|
|
25
|
+
"@sap-ux/ui5-config": "0.22.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/mem-fs": "1.1.2",
|
|
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.19.
|
|
32
|
+
"@sap-ux/project-access": "1.19.13"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=18.x"
|