@clerc/plugin-not-found 1.0.0-beta.8 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +5 -9
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NoCommandSpecifiedError, NoSuchCommandError, definePlugin } from "@clerc/core";
2
+ import * as tint from "@uttr/tint";
2
3
  import didyoumean from "didyoumean2";
3
- import * as yc from "yoctocolors";
4
4
 
5
5
  //#region src/index.ts
6
6
  const notFoundPlugin = () => definePlugin({ setup: (cli) => cli.interceptor({
@@ -19,8 +19,8 @@ const notFoundPlugin = () => definePlugin({ setup: (cli) => cli.interceptor({
19
19
  }
20
20
  const { commandName } = e;
21
21
  const closestCommandName = didyoumean(commandName, commandKeys);
22
- let text = `Command "${yc.strikethrough(commandName)}" not found.`;
23
- if (hasCommands && closestCommandName) text += `\nDid you mean "${yc.bold(closestCommandName)}"?`;
22
+ let text = `Command "${tint.strikethrough(commandName)}" not found.`;
23
+ if (hasCommands && closestCommandName) text += `\nDid you mean "${tint.bold(closestCommandName)}"?`;
24
24
  else if (!hasCommands) text += "\nNo commands registered.";
25
25
  throw new NoSuchCommandError(commandName, text);
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-not-found",
3
- "version": "1.0.0-beta.8",
3
+ "version": "1.0.0",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc plugin not found (did you mean)",
@@ -45,18 +45,14 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "didyoumean2": "^7.0.4",
49
- "yoctocolors": "^2.1.2",
50
- "@clerc/utils": "1.0.0-beta.8"
48
+ "@uttr/tint": "^0.1.3",
49
+ "didyoumean2": "^7.0.4"
51
50
  },
52
51
  "devDependencies": {
53
- "@clerc/core": "1.0.0-beta.8"
52
+ "@clerc/core": "1.0.0",
53
+ "@clerc/utils": "1.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@clerc/core": "*"
57
- },
58
- "scripts": {
59
- "build": "tsdown",
60
- "watch": "tsdown --watch"
61
57
  }
62
58
  }