napcat-plugin-debug-cli 1.2.5 → 1.2.6

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