ms-vite-plugin 1.0.6 → 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 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -228,7 +228,6 @@ async function wsStartCommand(options) {
228
228
  connected: ws.isClientConnected(),
229
229
  clientIp: ws.getConnectedClientIp(),
230
230
  });
231
- console.log("按 Ctrl+C 停止 WS 服务");
232
231
  await new Promise((resolve) => {
233
232
  const shutdown = async () => {
234
233
  process.off("SIGINT", shutdown);
@@ -353,7 +352,12 @@ function renderDetailedCommandHelp() {
353
352
  continue;
354
353
  }
355
354
  for (const opt of cmd.options) {
356
- 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;
357
361
  lines.push(` ${opt.flags}${desc}`);
358
362
  }
359
363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.0.6",
3
+ "version": "1.1.1",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {