@gunshi/plugin-global 1.0.0-beta.0 → 1.0.0-beta.2

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/README.md CHANGED
@@ -101,7 +101,7 @@ const release = define({
101
101
 
102
102
  Other commands of the same CLI are unaffected, and so is the entry command unless it declares the name itself.
103
103
 
104
- One case is left to this plugin on purpose: a schema that is identical to the one this plugin registers, field for field, cannot be told apart from it, so `version: { type: 'boolean', short: 'v', description: 'Display this version' }` still prints the version of the CLI. Any difference at all — a description of your own, an extra property, another type — makes the argument the command's.
104
+ This holds whatever the schema is, even one identical to the schema this plugin registers: a command that declares `version: { type: 'boolean', short: 'v', description: 'Display this version' }` receives `--version` and `-v` itself, and the version of the CLI is not printed. To keep the behaviour of this plugin on a command, leave the name out of its `args`.
105
105
 
106
106
  ## 🧩 Context Extensions
107
107
 
package/lib/index.d.ts CHANGED
@@ -1,11 +1,5 @@
1
1
  import { Awaitable, PluginWithExtension } from "@gunshi/plugin";
2
-
3
2
  //#region src/extension.d.ts
4
- /**
5
- * @author kazuya kawaguchi (a.k.a. kazupon)
6
- * @license MIT
7
- */
8
-
9
3
  /**
10
4
  * Extended command context which provides utilities via global options plugin.
11
5
  * These utilities are available via `CommandContext.extensions['g:global']`.
@@ -46,33 +40,12 @@ interface GlobalExtension {
46
40
  declare const BUILT_IN_PREFIX = "_";
47
41
  declare const PLUGIN_PREFIX = "g";
48
42
  declare const BUILT_IN_KEY_SEPARATOR = ":";
49
- //#endregion
50
- //#region ../plugin-i18n/src/types.d.ts
51
-
52
- //#endregion
53
- //#region ../plugin-i18n/src/helpers.d.ts
54
-
55
- //#endregion
56
- //#region ../plugin-i18n/src/translation.d.ts
57
-
58
- //#endregion
59
- //#region ../gunshi/src/index.d.ts
60
-
61
43
  //#endregion
62
44
  //#region ../shared/src/types.d.ts
63
45
  /**
64
46
  * Generate a namespaced key.
65
47
  */
66
48
  type GenerateNamespacedKey<Key extends string, Prefixed extends string = typeof BUILT_IN_PREFIX> = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;
67
- //#endregion
68
- //#region ../shared/src/localization.d.ts
69
-
70
- //#endregion
71
- //#region ../shared/src/utils.d.ts
72
-
73
- //#endregion
74
- //#region ../shared/src/index.d.ts
75
-
76
49
  //#endregion
77
50
  //#region src/types.d.ts
78
51
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/plugin-global",
3
3
  "description": "global options plugin for gunshi",
4
- "version": "1.0.0-beta.0",
4
+ "version": "1.0.0-beta.2",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -51,15 +51,15 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@gunshi/plugin": "1.0.0-beta.0"
54
+ "@gunshi/plugin": "1.0.0-beta.2"
55
55
  },
56
56
  "devDependencies": {
57
+ "@gunshi/shared": "1.0.0-beta.2",
57
58
  "deno": "^2.7.14",
58
59
  "jsr": "^0.14.3",
59
60
  "jsr-exports-lint": "^0.4.2",
60
61
  "publint": "^0.3.20",
61
- "tsdown": "0.21.0",
62
- "@gunshi/shared": "1.0.0-beta.0"
62
+ "tsdown": "0.22.14"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsdown",