Skip to content

Commit

Permalink
Revert "fix: Readd JS_EXTS to findFIles to allow for post build JS su…
Browse files Browse the repository at this point in the history
…pport"

This reverts commit c72ee53.
  • Loading branch information
EntraptaJ authored May 12, 2020
1 parent 67d27c6 commit 35d044c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/findFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ interface FileRule {
extensions: string[];
}

const JS_EXTS = ['.js', '.jsx'];

async function findFile(
cwd: string,
{ fileName, extensions }: FileRule,
Expand All @@ -24,7 +22,7 @@ async function findFile(
if (directoryEntry.name.includes(fileName)) {
if (directoryEntry.isDirectory()) return true;

for (let extension of [...extensions, ...JS_EXTS]) {
for (let extension of extensions) {
if (directoryFileName === fileName + extension) {
return true;
}
Expand Down

0 comments on commit 35d044c

Please sign in to comment.