@vantaloom/cli 0.16.3 → 0.16.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vantaloom/cli",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Vantaloom local runtime manager.",
@@ -118,7 +118,10 @@ export async function writeText(filePath, content) {
118
118
 
119
119
  export function run(command, args, options = {}) {
120
120
  try {
121
- execFileSync(command, args, { stdio: "inherit", windowsHide: true, ...options })
121
+ // windowsHide 刻意放在 ...options **之后**:它不是一个可以被调用方覆盖的默认值,
122
+ // 而是产品硬规则(永不闪出外部终端窗口)。放在前面的话,任何一个顺手传了整份
123
+ // options 的调用方都可能悄悄把它冲掉。
124
+ execFileSync(command, args, { stdio: "inherit", ...options, windowsHide: true })
122
125
  } catch (error) {
123
126
  if (error && typeof error.status === "number") {
124
127
  throw new Error(`${command} exited with ${error.status}`)