@gunshi/plugin-renderer 0.36.0 → 0.37.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -123,7 +123,6 @@ const COMMON_ARGS = {
123
123
  };
124
124
  //#endregion
125
125
  //#region ../resources/locales/en-US.json
126
- var NEGATABLE = "Negatable of";
127
126
  var en_US_default = {
128
127
  COMMAND: "COMMAND",
129
128
  COMMANDS: "COMMANDS",
@@ -133,7 +132,7 @@ var en_US_default = {
133
132
  OPTIONS: "OPTIONS",
134
133
  EXAMPLES: "EXAMPLES",
135
134
  FORMORE: "For more info, run any command with the `--help` flag",
136
- NEGATABLE,
135
+ NEGATABLE: "Negatable of",
137
136
  DEFAULT: "default",
138
137
  CHOICES: "choices",
139
138
  help: "Display this help message",
@@ -266,7 +265,7 @@ function localizable(ctx, cmd, translate) {
266
265
  }
267
266
  const schema = ctx.args[argKey];
268
267
  if (!schema) return argKey;
269
- return negatable && schema.type === "boolean" && schema.negatable ? `${NEGATABLE} ${makeShortLongOptionPair(schema, argKey, ctx.toKebab)}` : schema.description || "";
268
+ return negatable && schema.type === "boolean" && schema.negatable ? `${en_US_default["NEGATABLE"]} ${makeShortLongOptionPair(schema, argKey, ctx.toKebab)}` : schema.description || "";
270
269
  }
271
270
  if (key === resolveKey("description", ctx.name)) return "";
272
271
  else if (key === resolveKey("examples", ctx.name)) return await resolveExamples$1(ctx, cmd.examples);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/plugin-renderer",
3
3
  "description": "usage renderer plugin for gunshi",
4
- "version": "0.36.0",
4
+ "version": "0.37.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -53,10 +53,10 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@gunshi/plugin": "0.36.0"
56
+ "@gunshi/plugin": "0.37.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@gunshi/plugin-i18n": "0.36.0"
59
+ "@gunshi/plugin-i18n": "0.37.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "deno": "^2.7.14",
@@ -64,7 +64,7 @@
64
64
  "jsr-exports-lint": "^0.4.2",
65
65
  "publint": "^0.3.20",
66
66
  "tsdown": "0.21.0",
67
- "@gunshi/shared": "0.36.0"
67
+ "@gunshi/shared": "0.37.0"
68
68
  },
69
69
  "scripts": {
70
70
  "build": "tsdown",