Skip to content

Commit

Permalink
Recognize symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 13, 2025
1 parent 340a6b1 commit b2444c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/io/src/io-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function tryGetExecutablePath(
let stats: fs.Stats | undefined = undefined
try {
// test file exists
stats = await stat(filePath)
stats = await lstat(filePath)
} catch (err) {
if (err.code !== 'ENOENT') {
// eslint-disable-next-line no-console
Expand Down Expand Up @@ -106,7 +106,7 @@ export async function tryGetExecutablePath(

stats = undefined
try {
stats = await stat(filePath)
stats = await lstat(filePath)
} catch (err) {
if (err.code !== 'ENOENT') {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit b2444c0

Please sign in to comment.