@clerc/plugin-version 0.42.1 → 0.43.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.
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ import * as _clerc_core from '@clerc/core';
2
2
 
3
3
  interface VersionPluginOptions {
4
4
  /**
5
- * Whether to register the help command.
5
+ * Whether to register the version command.
6
6
  *
7
7
  * @default true
8
8
  */
9
9
  command?: boolean;
10
10
  /**
11
- * Whether to register the global help flag.
11
+ * Whether to register the global version flag.
12
12
  *
13
13
  * @default true
14
14
  */
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ const versionPlugin = ({
35
35
  type: Boolean,
36
36
  default: false
37
37
  });
38
- cli.inspector({
38
+ cli.interceptor({
39
39
  enforce: "pre",
40
40
  fn: (ctx, next) => {
41
41
  if (ctx.flags.version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-version",
3
- "version": "0.42.1",
3
+ "version": "0.43.0",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc plugin version",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@clerc/utils": "0.42.1"
43
+ "@clerc/utils": "0.43.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@clerc/core": "*"