napcat-plugin-debug-cli 1.2.4 → 1.2.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/package.json +1 -1
  2. package/vite.mjs +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "napcat-plugin-debug-cli",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "type": "module",
5
5
  "description": "NapCat 插件调试 CLI — 连接调试服务实现热重载",
6
6
  "author": "NapNeko",
package/vite.mjs CHANGED
@@ -198,12 +198,11 @@ function napcatHmrPlugin(options = {}) {
198
198
  log(`构建 WebUI (${co(webuiTargetDir, C.cyan)})...`);
199
199
  execSync(wc.buildCommand, {
200
200
  cwd: webuiRoot,
201
- stdio: "pipe",
202
- env: { ...process.env, NODE_ENV: "production" }
201
+ stdio: "pipe"
203
202
  });
204
203
  logOk(`WebUI (${webuiTargetDir}) 构建完成`);
205
204
  } catch (e) {
206
- logErr(`WebUI (${webuiTargetDir}) 构建失败: ${e.stderr?.toString() || e.message}`);
205
+ logErr(`WebUI (${webuiTargetDir}) 构建失败: ${e.stderr?.toString() || e.stdout?.toString() || e.message}`);
207
206
  continue;
208
207
  }
209
208
  }
@@ -270,12 +269,11 @@ function napcatHmrPlugin(options = {}) {
270
269
  log(`构建 WebUI (${co(webuiTargetDir, C.cyan)})...`);
271
270
  execSync(wc.buildCommand, {
272
271
  cwd: webuiRoot,
273
- stdio: "pipe",
274
- env: { ...process.env, NODE_ENV: "production" }
272
+ stdio: "pipe"
275
273
  });
276
274
  logOk(`WebUI (${webuiTargetDir}) 构建完成`);
277
275
  } catch (e) {
278
- logErr(`WebUI (${webuiTargetDir}) 构建失败: ${e.stderr?.toString() || e.message}`);
276
+ logErr(`WebUI (${webuiTargetDir}) 构建失败: ${e.stderr?.toString() || e.stdout?.toString() || e.message}`);
279
277
  continue;
280
278
  }
281
279
  }