Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Sep 19, 2023
1 parent 0e482e0 commit cf8f708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resolve-ts-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export const resolveTsPath = (
) => {
const extension = path.extname(filePath);
const [extensionNoQuery, query] = path.extname(filePath).split('?');
const tsExtension = tsExtensions[extensionNoQuery];
const possibleExtensions = tsExtensions[extensionNoQuery];

if (tsExtension) {
if (possibleExtensions) {
const extensionlessPath = filePath.slice(0, -extension.length);
return tsExtension.map(
return possibleExtensions.map(
(tsExtension) => (

Check failure on line 19 in src/resolve-ts-path.ts

View workflow job for this annotation

GitHub Actions / Test

Unexpected parentheses around single function argument having a body with no curly braces
extensionlessPath
+ tsExtension
Expand Down

0 comments on commit cf8f708

Please sign in to comment.