We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04af079 commit 78488d6Copy full SHA for 78488d6
1 file changed
_packages/native-preview/bin/tsgo.js
@@ -5,6 +5,16 @@ import { execFileSync } from "node:child_process";
5
6
const exe = getExePath();
7
8
+if (typeof process.execve === "function") {
9
+ // > v22.15.0
10
+ try {
11
+ process.execve(exe, [exe, ...process.argv.slice(2)]);
12
+ }
13
+ catch {
14
+ // not available on windows, ignore the error and fallback
15
16
+}
17
+
18
try {
19
execFileSync(exe, process.argv.slice(2), { stdio: "inherit" });
20
}
0 commit comments