@cabloy/cli 3.0.59 → 3.0.61

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/lib/cli.js CHANGED
@@ -12,8 +12,8 @@ export class CliCommand extends BaseCommand {
12
12
  __argv;
13
13
  constructor(rawArgv, { meta, argv }) {
14
14
  super(rawArgv);
15
- // this.usage = meta.info.usage; // readonly
16
- // this.options = meta.options; // readonly
15
+ this.usage = meta.info.usage; // readonly
16
+ this.options = meta.options; // readonly
17
17
  this.version = meta.info.version;
18
18
  this.__meta = meta;
19
19
  this.__groups = meta.groups;
@@ -26,7 +26,7 @@ async function _collectCommands() {
26
26
  const sets = commandsConfig.sets[process.env.CabloyCliBrandName];
27
27
  for (const setName in sets) {
28
28
  const setModuleName = sets[setName];
29
- const setModule = await import(__rewriteRelativeImportExtension(setModuleName));
29
+ const setModule = await import(__rewriteRelativeImportExtension(setModuleName)); // 270ms
30
30
  const commands = setModule.commands;
31
31
  if (!commands)
32
32
  continue;
package/dist/start.js CHANGED
@@ -54,8 +54,8 @@ export class CabloyCommand extends CommonBin {
54
54
  }
55
55
  const command = new CliCommand(rawArgv, { meta, argv });
56
56
  await command[DISPATCH]();
57
- // force exit
58
- process.exit(0);
57
+ // need not force exit
58
+ // process.exit(0);
59
59
  }
60
60
  _prepareCliFullName(cliName) {
61
61
  if (!cliName) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
3
  "type": "module",
4
- "version": "3.0.59",
4
+ "version": "3.0.61",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"