@sap-ux/create 0.9.3 → 0.10.2

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.
@@ -42,7 +42,8 @@ async function addMockserverConfig(basePath, simulate, skipInstall, interactive)
42
42
  const webappPath = await (0, project_access_1.getWebappPath)(basePath);
43
43
  const config = { webappPath };
44
44
  if (interactive) {
45
- const questions = (0, mockserver_config_writer_1.getMockserverConfigQuestions)({ webappPath });
45
+ const questions = (0, mockserver_config_writer_1.getMockserverConfigQuestions)({ webappPath, askForOverwrite: true });
46
+ // User responses for webappPath and whether to overwrite existing services in mockserver config
46
47
  config.ui5MockYamlConfig = await (0, prompts_1.prompt)(questions);
47
48
  }
48
49
  const fs = await (0, mockserver_config_writer_1.generateMockserverConfig)(basePath, config);
@@ -35,7 +35,7 @@ async function removeMockserverConfiguration(basePath, force) {
35
35
  try {
36
36
  logger.debug(`Called remove mockserver-config for path '${basePath}', force is '${force}'`);
37
37
  await (0, validation_1.validateBasePath)(basePath);
38
- const fs = (0, mockserver_config_writer_1.removeMockserverConfig)(basePath);
38
+ const fs = await (0, mockserver_config_writer_1.removeMockserverConfig)(basePath);
39
39
  await (0, tracing_1.traceChanges)(fs);
40
40
  const hasDeletions = (0, validation_1.hasFileDeletes)(fs);
41
41
  let doCommit = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.9.3",
4
+ "version": "0.10.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,21 +30,21 @@
30
30
  "mem-fs": "2.1.0",
31
31
  "mem-fs-editor": "9.4.0",
32
32
  "prompts": "2.4.2",
33
- "@sap-ux/abap-deploy-config-inquirer": "1.1.2",
34
- "@sap-ux/abap-deploy-config-writer": "0.0.62",
35
- "@sap-ux/adp-tooling": "0.12.85",
36
- "@sap-ux/app-config-writer": "0.5.0",
37
- "@sap-ux/cap-config-writer": "0.7.60",
38
- "@sap-ux/cards-editor-config-writer": "0.4.7",
39
- "@sap-ux/inquirer-common": "0.5.4",
33
+ "@sap-ux/abap-deploy-config-inquirer": "1.1.3",
34
+ "@sap-ux/abap-deploy-config-writer": "0.0.63",
35
+ "@sap-ux/adp-tooling": "0.12.87",
36
+ "@sap-ux/app-config-writer": "0.5.1",
37
+ "@sap-ux/cap-config-writer": "0.7.61",
38
+ "@sap-ux/cards-editor-config-writer": "0.4.8",
39
+ "@sap-ux/inquirer-common": "0.5.5",
40
40
  "@sap-ux/logger": "0.6.0",
41
- "@sap-ux/mockserver-config-writer": "0.6.7",
42
- "@sap-ux/odata-service-writer": "0.23.3",
43
- "@sap-ux/preview-middleware": "0.16.133",
44
- "@sap-ux/project-access": "1.28.7",
41
+ "@sap-ux/mockserver-config-writer": "0.7.0",
42
+ "@sap-ux/odata-service-writer": "0.24.0",
43
+ "@sap-ux/preview-middleware": "0.16.137",
44
+ "@sap-ux/project-access": "1.28.8",
45
45
  "@sap-ux/system-access": "0.5.19",
46
- "@sap-ux/ui5-config": "0.25.2",
47
- "@sap-ux/flp-config-inquirer": "0.1.0"
46
+ "@sap-ux/ui5-config": "0.26.0",
47
+ "@sap-ux/flp-config-inquirer": "0.1.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/diff": "5.0.9",
@@ -52,7 +52,7 @@
52
52
  "@types/mem-fs": "1.1.2",
53
53
  "@types/mem-fs-editor": "7.0.1",
54
54
  "@types/prompts": "2.4.4",
55
- "@sap-ux/inquirer-common": "0.5.4",
55
+ "@sap-ux/inquirer-common": "0.5.5",
56
56
  "@sap-ux/store": "0.9.3"
57
57
  },
58
58
  "scripts": {