Skip to content

Commit

Permalink
fix: mischecked file existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Akronae committed Nov 24, 2024
1 parent 3f8bd4e commit ad7fc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/get-import-declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function getImportDeclaration(

function findFileExtension(extless: string, tries: string[]) {
for (const ext of tries) {
if (extless + ext) {
if (existsSync(extless + ext)) {
return extless + ext;
}
}
Expand Down

0 comments on commit ad7fc9c

Please sign in to comment.