@vantaloom/cli 0.16.3 → 0.16.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.
- package/package.json +1 -1
- package/src/lib/platform.mjs +4 -1
package/package.json
CHANGED
package/src/lib/platform.mjs
CHANGED
|
@@ -118,7 +118,10 @@ export async function writeText(filePath, content) {
|
|
|
118
118
|
|
|
119
119
|
export function run(command, args, options = {}) {
|
|
120
120
|
try {
|
|
121
|
-
|
|
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}`)
|