@sap-ux/create 0.0.2 → 0.0.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.
package/dist/cli/index.js CHANGED
@@ -29,8 +29,8 @@ function handleCreateFioriCommand(argv) {
29
29
  program.parse(argv);
30
30
  }
31
31
  catch (error) {
32
- logger.error(`Error while executing ${argv[0]} ${argv[1]}`);
33
- logger.error(error);
32
+ // Commander report meaningful error messages, output only if log level is set to debug
33
+ logger.debug(error);
34
34
  }
35
35
  }
36
36
  exports.handleCreateFioriCommand = handleCreateFioriCommand;
@@ -48,6 +48,8 @@ function getCommanderProgram() {
48
48
  program.addCommand(add_1.getAddCommands());
49
49
  // Handler for create-fiori remove <feature> ..
50
50
  program.addCommand(remove_1.getRemoveCommands());
51
+ // Override exit so calling this command without arguments does not result in an exit code 1, which causes an error message when running from npm init
52
+ program.exitOverride();
51
53
  return program;
52
54
  }
53
55
  /**
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.0.2",
4
+ "version": "0.0.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@sap-ux/logger": "0.3.2",
29
- "@sap-ux/mockserver-config-writer": "0.0.2",
29
+ "@sap-ux/mockserver-config-writer": "0.0.3",
30
30
  "@sap-ux/project-access": "1.0.4",
31
31
  "chalk": "4.1.2",
32
32
  "commander": "9.4.0",