breadc 0.8.8 → 0.8.9

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/index.cjs CHANGED
@@ -597,7 +597,13 @@ function makeHelpCommand(name, config, allCommands) {
597
597
  }
598
598
  }
599
599
  }
600
- return commands;
600
+ const alias = /* @__PURE__ */ new Map();
601
+ for (const cmd of commands) {
602
+ if (!alias.has(cmd.format)) {
603
+ alias.set(cmd.format, cmd);
604
+ }
605
+ }
606
+ return [...alias.values()];
601
607
  }
602
608
  const command = {
603
609
  async callback(parsed) {
package/dist/index.mjs CHANGED
@@ -593,7 +593,13 @@ function makeHelpCommand(name, config, allCommands) {
593
593
  }
594
594
  }
595
595
  }
596
- return commands;
596
+ const alias = /* @__PURE__ */ new Map();
597
+ for (const cmd of commands) {
598
+ if (!alias.has(cmd.format)) {
599
+ alias.set(cmd.format, cmd);
600
+ }
601
+ }
602
+ return [...alias.values()];
597
603
  }
598
604
  const command = {
599
605
  async callback(parsed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "breadc",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "Yet another Command Line Application Framework with fully strong TypeScript support",
5
5
  "keywords": [
6
6
  "breadc",
@@ -34,13 +34,13 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@breadc/color": "0.8.8"
37
+ "@breadc/color": "0.8.9"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^18.14.1",
41
- "@vitest/coverage-c8": "^0.29.1",
40
+ "@types/node": "^18.14.5",
41
+ "@vitest/coverage-c8": "^0.29.2",
42
42
  "cac": "^6.7.14",
43
- "vitest": "0.29.1"
43
+ "vitest": "0.29.2"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "unbuild",