@sap-ux/create 0.13.171 → 0.14.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.
@@ -37,19 +37,12 @@ async function addCardsGeneratorConfig(basePath, simulate, yamlPath) {
37
37
  try {
38
38
  logger.debug(`Called add cards-generator-config for path '${basePath}', simulate is '${simulate}'`);
39
39
  await (0, validation_1.validateBasePath)(basePath);
40
- const projectRoot = await (0, project_access_1.findProjectRoot)(basePath, true, true);
41
- const projectType = await (0, project_access_1.getProjectType)(projectRoot);
42
- if (projectType === 'CAPJava' || projectType === 'CAPNodejs') {
43
- await Promise.reject(new Error(`Adding the card generator configuration is not supported for CAP projects.`));
40
+ const fs = await (0, app_config_writer_1.enableCardGeneratorConfig)(basePath, yamlPath, logger);
41
+ if (!simulate) {
42
+ fs.commit(() => logger.info(`Card Generator configuration written.`));
44
43
  }
45
44
  else {
46
- const fs = await (0, app_config_writer_1.enableCardGeneratorConfig)(basePath, yamlPath, logger);
47
- if (!simulate) {
48
- fs.commit(() => logger.info(`Card Generator configuration written.`));
49
- }
50
- else {
51
- await (0, tracing_1.traceChanges)(fs);
52
- }
45
+ await (0, tracing_1.traceChanges)(fs);
53
46
  }
54
47
  }
55
48
  catch (error) {
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.13.171",
4
+ "version": "0.14.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,19 +30,19 @@
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.6.49",
34
- "@sap-ux/abap-deploy-config-writer": "0.2.34",
35
- "@sap-ux/adp-tooling": "0.18.8",
36
- "@sap-ux/app-config-writer": "0.6.57",
37
- "@sap-ux/cap-config-writer": "0.12.25",
33
+ "@sap-ux/abap-deploy-config-inquirer": "1.6.50",
34
+ "@sap-ux/app-config-writer": "0.6.58",
35
+ "@sap-ux/adp-tooling": "0.18.9",
36
+ "@sap-ux/cap-config-writer": "0.12.26",
38
37
  "@sap-ux/logger": "0.7.1",
39
- "@sap-ux/mockserver-config-writer": "0.9.26",
40
- "@sap-ux/odata-service-writer": "0.27.30",
41
- "@sap-ux/preview-middleware": "0.23.60",
42
- "@sap-ux/project-access": "1.32.9",
43
- "@sap-ux/system-access": "0.6.28",
44
- "@sap-ux/ui5-config": "0.29.9",
45
- "@sap-ux/flp-config-inquirer": "0.4.67"
38
+ "@sap-ux/abap-deploy-config-writer": "0.2.35",
39
+ "@sap-ux/mockserver-config-writer": "0.9.27",
40
+ "@sap-ux/odata-service-writer": "0.27.31",
41
+ "@sap-ux/preview-middleware": "0.23.61",
42
+ "@sap-ux/project-access": "1.32.10",
43
+ "@sap-ux/system-access": "0.6.29",
44
+ "@sap-ux/ui5-config": "0.29.10",
45
+ "@sap-ux/flp-config-inquirer": "0.4.68"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/diff": "5.0.9",
@@ -50,7 +50,7 @@
50
50
  "@types/mem-fs": "1.1.2",
51
51
  "@types/mem-fs-editor": "7.0.1",
52
52
  "@types/prompts": "2.4.4",
53
- "@sap-ux/inquirer-common": "0.9.6",
53
+ "@sap-ux/inquirer-common": "0.9.7",
54
54
  "@sap-ux/store": "1.3.3"
55
55
  },
56
56
  "scripts": {