@clerc/plugin-not-found 0.9.2 → 0.10.1

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var clerc = require('clerc');
5
+ var core = require('@clerc/core');
6
6
  var fastestLevenshtein = require('fastest-levenshtein');
7
7
  var pc = require('picocolors');
8
8
 
@@ -10,13 +10,13 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var pc__default = /*#__PURE__*/_interopDefaultLegacy(pc);
12
12
 
13
- const notFoundPlugin = () => clerc.definePlugin({
13
+ const notFoundPlugin = () => core.definePlugin({
14
14
  setup(cli) {
15
15
  return cli.inspector((ctx, next) => {
16
16
  try {
17
17
  next();
18
18
  } catch (e) {
19
- if (!(e instanceof clerc.NoSuchCommandError)) {
19
+ if (!(e instanceof core.NoSuchCommandError)) {
20
20
  throw e;
21
21
  }
22
22
  if (ctx.raw._.length === 0) {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as clerc from 'clerc';
1
+ import * as _clerc_core from '@clerc/core';
2
2
 
3
- declare const notFoundPlugin: () => clerc.Plugin<clerc.Clerc<{}>, clerc.Clerc<{}>>;
3
+ declare const notFoundPlugin: () => _clerc_core.Plugin<_clerc_core.Clerc<{}>, _clerc_core.Clerc<{}>>;
4
4
 
5
5
  export { notFoundPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { definePlugin, NoSuchCommandError } from 'clerc';
1
+ import { definePlugin, NoSuchCommandError } from '@clerc/core';
2
2
  import { closest } from 'fastest-levenshtein';
3
3
  import pc from 'picocolors';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-not-found",
3
- "version": "0.9.2",
3
+ "version": "0.10.1",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin not found (did you mean)",
6
6
  "keywords": [
@@ -40,13 +40,15 @@
40
40
  "access": "public"
41
41
  },
42
42
  "peerDependencies": {
43
- "clerc": "*"
43
+ "@clerc/core": "*"
44
44
  },
45
45
  "dependencies": {
46
46
  "fastest-levenshtein": "^1.0.16",
47
47
  "picocolors": "^1.0.0",
48
- "@clerc/utils": "0.9.2",
49
- "clerc": "0.9.2"
48
+ "@clerc/utils": "0.10.1"
49
+ },
50
+ "devDependencies": {
51
+ "@clerc/core": "0.10.1"
50
52
  },
51
53
  "scripts": {
52
54
  "build": "puild",