Skip to content

Commit 2fe4792

Browse files
authored
Fix ts-node wrapper on windows (#2070)
1 parent 3b510be commit 2fe4792

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ts-node-wrapper.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
import {execFileSync} from 'node:child_process';
1111

1212
try {
13-
execFileSync('node', ['--no-experimental-strip-types', '-e', ''], {
14-
shell: process.platform === 'win32',
13+
execFileSync(process.execPath, ['--no-experimental-strip-types', '-e', 'undefined'], {
1514
stdio: 'ignore',
1615
});
1716

0 commit comments

Comments
 (0)