@gunshi/plugin-global 0.29.5 → 0.30.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/lib/index.d.ts +21 -1
- package/lib/index.js +24 -0
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -47,12 +47,32 @@ declare const BUILT_IN_PREFIX = "_";
|
|
|
47
47
|
declare const PLUGIN_PREFIX = "g";
|
|
48
48
|
declare const BUILT_IN_KEY_SEPARATOR = ":";
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region ../
|
|
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
|
|
51
60
|
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../shared/src/types.d.ts
|
|
52
63
|
/**
|
|
53
64
|
* Generate a namespaced key.
|
|
54
65
|
*/
|
|
55
66
|
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
|
+
|
|
56
76
|
//#endregion
|
|
57
77
|
//#region src/types.d.ts
|
|
58
78
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { plugin } from "@gunshi/plugin";
|
|
2
|
+
/**
|
|
3
|
+
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
2
6
|
const COMMON_ARGS = {
|
|
3
7
|
help: {
|
|
4
8
|
type: "boolean",
|
|
@@ -14,6 +18,10 @@ const COMMON_ARGS = {
|
|
|
14
18
|
//#endregion
|
|
15
19
|
//#region ../shared/src/utils.ts
|
|
16
20
|
/**
|
|
21
|
+
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
22
|
+
* @license MIT
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
17
25
|
* Generate a namespaced key for a plugin.
|
|
18
26
|
*
|
|
19
27
|
* @typeParam K - The type of the plugin id to generate a namespaced key for.
|
|
@@ -25,6 +33,18 @@ function namespacedId(id) {
|
|
|
25
33
|
return `g:${id}`;
|
|
26
34
|
}
|
|
27
35
|
//#endregion
|
|
36
|
+
//#region ../shared/src/localization.ts
|
|
37
|
+
/**
|
|
38
|
+
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
39
|
+
* @license MIT
|
|
40
|
+
*/
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../shared/src/index.ts
|
|
43
|
+
/**
|
|
44
|
+
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
45
|
+
* @license MIT
|
|
46
|
+
*/
|
|
47
|
+
//#endregion
|
|
28
48
|
//#region src/types.ts
|
|
29
49
|
/**
|
|
30
50
|
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
@@ -69,6 +89,10 @@ const decorator = (baseRunner) => async (ctx) => {
|
|
|
69
89
|
//#endregion
|
|
70
90
|
//#region src/extension.ts
|
|
71
91
|
/**
|
|
92
|
+
* @author kazuya kawaguchi (a.k.a. kazupon)
|
|
93
|
+
* @license MIT
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
72
96
|
* Extends the command context for global options plugin.
|
|
73
97
|
*
|
|
74
98
|
* @param ctx - The {@linkcode CommandContextCore | command context} core
|
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.
|
|
4
|
+
"version": "0.30.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">= 22"
|
|
29
29
|
},
|
|
30
30
|
"type": "module",
|
|
31
31
|
"files": [
|
|
@@ -51,17 +51,17 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@gunshi/plugin": "0.
|
|
54
|
+
"@gunshi/plugin": "0.30.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"deno": "^2.7.
|
|
57
|
+
"deno": "^2.7.14",
|
|
58
58
|
"jsr": "^0.14.3",
|
|
59
59
|
"jsr-exports-lint": "^0.4.2",
|
|
60
|
-
"publint": "^0.3.
|
|
61
|
-
"tsdown": "0.
|
|
62
|
-
"typedoc": "^0.28.
|
|
60
|
+
"publint": "^0.3.20",
|
|
61
|
+
"tsdown": "0.21.0",
|
|
62
|
+
"typedoc": "^0.28.19",
|
|
63
63
|
"typedoc-plugin-markdown": "^4.11.0",
|
|
64
|
-
"@gunshi/shared": "0.
|
|
64
|
+
"@gunshi/shared": "0.30.1"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsdown",
|