@clerc/plugin-help 1.0.0-beta.28 → 1.0.0-beta.29

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -180,10 +180,10 @@ var HelpRenderer = class {
180
180
  }
181
181
  renderAvailableSubcommands(parentCommandName) {
182
182
  const subcommands = this.getSubcommands(parentCommandName);
183
- if (subcommands.size === 0) return "";
183
+ if (subcommands.size === 0) return null;
184
184
  const prefix = `${parentCommandName} `;
185
185
  const body = this.buildGroupedCommandsBody(subcommands, prefix);
186
- if (body.length === 0) return "";
186
+ if (body.length === 0) return null;
187
187
  const sections = [{ body: `${this._cli._name} ${yc.bold(parentCommandName)} not found` }, {
188
188
  title: "Available Subcommands",
189
189
  body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-help",
3
- "version": "1.0.0-beta.28",
3
+ "version": "1.0.0-beta.29",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc plugin help",
@@ -52,9 +52,9 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "kons": "^0.7.1",
55
- "@clerc/core": "1.0.0-beta.28",
56
- "@clerc/utils": "1.0.0-beta.28",
57
- "@clerc/parser": "1.0.0-beta.28"
55
+ "@clerc/parser": "1.0.0-beta.29",
56
+ "@clerc/core": "1.0.0-beta.29",
57
+ "@clerc/utils": "1.0.0-beta.29"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@clerc/core": "*"