We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43313db commit 0f7cc3dCopy full SHA for 0f7cc3d
1 file changed
_packages/native-preview/lib/getExePath.js
@@ -41,7 +41,13 @@ export default function getExePath() {
41
}
42
43
44
- const exe = path.join(exeDir, "tsgo" + (process.platform === "win32" ? ".exe" : ""));
+ let exe = path.join(exeDir, "tsgo");
45
+ if (process.platform === "win32") {
46
+ exe += ".exe";
47
+ if (exe.length >= 248) {
48
+ exe = "\\\\?\\" + exe;
49
+ }
50
51
52
if (!fs.existsSync(exe)) {
53
throw new Error("Executable not found: " + exe);
0 commit comments