Skip to content

Commit 148a4c6

Browse files
committed
fix: Infinite loop in ts-node lookup
1 parent 37ba047 commit 148a4c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function findTsNodeLocation() {
2929
// just ignore and move on
3030
}
3131

32-
testLocation = dirname(importLocation);
32+
testLocation = dirname(testLocation);
3333
if (testLocation === "/") {
3434
throw new Error("ts-node executable not found");
3535
}

0 commit comments

Comments
 (0)