befly 3.4.9 → 3.4.10

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/bin/launcher.ts +6 -2
  2. package/package.json +2 -2
package/bin/launcher.ts CHANGED
@@ -101,9 +101,13 @@ export async function launch(entryFile: string): Promise<void> {
101
101
  cwd: process.cwd(),
102
102
  stdio: ['inherit', 'inherit', 'inherit'],
103
103
  env: {
104
- ...process.env,
104
+ // 不继承父进程的环境变量,只使用以下变量
105
105
  BEFLY_SUBPROCESS: '1', // 标记为子进程
106
- NODE_ENV: envName // 同时设置 NODE_ENV
106
+ NODE_ENV: envName, // 设置 NODE_ENV
107
+ PATH: process.env.PATH, // 保留 PATH
108
+ SYSTEMROOT: process.env.SYSTEMROOT, // Windows 需要
109
+ TEMP: process.env.TEMP, // Windows 需要
110
+ TMP: process.env.TMP // Windows 需要
107
111
  }
108
112
  });
109
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.4.9",
3
+ "version": "3.4.10",
4
4
  "description": "Befly - 为 Bun 专属打造的 TypeScript API 接口框架核心引擎",
5
5
  "type": "module",
6
6
  "private": false,
@@ -81,5 +81,5 @@
81
81
  "ora": "^9.0.0",
82
82
  "pathe": "^2.0.3"
83
83
  },
84
- "gitHead": "813660c1474980368c593c0d06d04239f3c012ba"
84
+ "gitHead": "cff7a359c94cef609c5d7fa0b34b114d34fbe04f"
85
85
  }