Skip to content

Commit

Permalink
Fix a bug preventing ts-run to run it is symlinked
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Sep 27, 2024
1 parent e93bea2 commit f51b5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install_cjs_hooks(defaultModuleType)
// (the first argument that does not start with a dash)
// - (B): replace us in argv with that entry point
// - (C): dynamically import the real entry point.
if (process.argv[1] === fileURLToPath(self)) {
if (await realpath(process.argv[1]) === await realpath(fileURLToPath(self))) {

// (A)
let realEntryPointIndex = -1
Expand Down

0 comments on commit f51b5d8

Please sign in to comment.