fix(windows): hide terminal windows when spawning child processes
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ export function getCurrentProjectName(): string {
|
||||
const gitRoot = execSync('git rev-parse --show-toplevel', {
|
||||
cwd: process.cwd(),
|
||||
encoding: 'utf8',
|
||||
stdio: ['pipe', 'pipe', 'ignore']
|
||||
stdio: ['pipe', 'pipe', 'ignore'],
|
||||
windowsHide: true
|
||||
}).trim();
|
||||
return basename(gitRoot);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user