ms-vite-plugin 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -352,7 +352,12 @@ function renderDetailedCommandHelp() {
352
352
  continue;
353
353
  }
354
354
  for (const opt of cmd.options) {
355
- const desc = opt.description ? ` ${opt.description}` : "";
355
+ const defaultText = opt.defaultValue !== undefined && opt.defaultValue !== null
356
+ ? ` (默认: ${String(opt.defaultValue)})`
357
+ : "";
358
+ const desc = opt.description
359
+ ? ` ${opt.description}${defaultText}`
360
+ : defaultText;
356
361
  lines.push(` ${opt.flags}${desc}`);
357
362
  }
358
363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {