@gunshi/plugin-global 0.26.3 → 0.27.0-alpha.5

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/lib/index.d.ts +4 -11
  2. package/package.json +8 -8
package/lib/index.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import { Awaitable, PluginWithExtension } from "@gunshi/plugin";
2
2
 
3
3
  //#region src/extension.d.ts
4
- /**
5
- * Extended command context which provides utilities via global options plugin.
6
- * These utilities are available via `CommandContext.extensions['g:global']`.
7
- */
8
4
 
9
5
  /**
10
6
  * Extended command context which provides utilities via global options plugin.
@@ -32,7 +28,8 @@ interface GlobalCommandContext {
32
28
  * @returns The rendered error message, or `undefined` if `renderValidationErrors` is null
33
29
  */
34
30
  showValidationErrors: (error: AggregateError) => Awaitable<string | undefined>;
35
- } //#endregion
31
+ }
32
+ //#endregion
36
33
  //#region ../shared/src/constants.d.ts
37
34
  /**
38
35
  * @author kazuya kawaguchi (a.k.a. kazupon)
@@ -41,19 +38,17 @@ interface GlobalCommandContext {
41
38
  declare const BUILT_IN_PREFIX = "_";
42
39
  declare const PLUGIN_PREFIX = "g";
43
40
  declare const BUILT_IN_KEY_SEPARATOR = ":";
44
-
45
41
  //#endregion
46
42
  //#region ../shared/src/types.d.ts
47
43
  /**
48
44
  * Generate a namespaced key.
49
45
  */
50
46
  type GenerateNamespacedKey<Key extends string, Prefixed extends string = typeof BUILT_IN_PREFIX> = `${Prefixed}${typeof BUILT_IN_KEY_SEPARATOR}${Key}`;
51
-
52
- //#endregion
53
- //#region src/types.d.ts
54
47
  /**
55
48
  * Command i18n built-in arguments keys.
56
49
  */
50
+ //#endregion
51
+ //#region src/types.d.ts
57
52
  /**
58
53
  * The unique identifier for the global options plugin.
59
54
  */
@@ -62,13 +57,11 @@ declare const pluginId: GenerateNamespacedKey<'global', typeof PLUGIN_PREFIX>;
62
57
  * Type representing the unique identifier for the global options plugin.
63
58
  */
64
59
  type PluginId = typeof pluginId;
65
-
66
60
  //#endregion
67
61
  //#region src/index.d.ts
68
62
  /**
69
63
  * global options plugin
70
64
  */
71
65
  declare function global(): PluginWithExtension<GlobalCommandContext>;
72
-
73
66
  //#endregion
74
67
  export { GlobalCommandContext, PluginId, global as default, pluginId };
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": "0.26.3",
4
+ "version": "0.27.0-alpha.5",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -51,17 +51,17 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@gunshi/plugin": "0.26.3"
54
+ "@gunshi/plugin": "0.27.0-alpha.5"
55
55
  },
56
56
  "devDependencies": {
57
- "deno": "^2.3.3",
58
- "jsr": "^0.13.4",
57
+ "deno": "^2.4.0",
58
+ "jsr": "^0.13.5",
59
59
  "jsr-exports-lint": "^0.4.1",
60
60
  "publint": "^0.3.12",
61
- "tsdown": "^0.12.3",
62
- "typedoc": "^0.28.4",
63
- "typedoc-plugin-markdown": "^4.6.3",
64
- "@gunshi/shared": "0.26.3"
61
+ "tsdown": "^0.12.9",
62
+ "typedoc": "^0.28.7",
63
+ "typedoc-plugin-markdown": "^4.7.0",
64
+ "@gunshi/shared": "0.27.0-alpha.5"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsdown",