From 35d044ce54a745f8d6895876b45f80a9fc481da5 Mon Sep 17 00:00:00 2001 From: Kristian Jones Date: Tue, 12 May 2020 17:37:09 -0500 Subject: [PATCH] Revert "fix: Readd JS_EXTS to findFIles to allow for post build JS support" This reverts commit c72ee53f3ec30ccd7130217ae42662ffad0892c2. --- src/findFiles.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/findFiles.ts b/src/findFiles.ts index 1240166..53a7916 100644 --- a/src/findFiles.ts +++ b/src/findFiles.ts @@ -8,8 +8,6 @@ interface FileRule { extensions: string[]; } -const JS_EXTS = ['.js', '.jsx']; - async function findFile( cwd: string, { fileName, extensions }: FileRule, @@ -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; }