diff --git a/lib/get-files.js b/lib/get-files.js index 37d5692..cf54b64 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -126,7 +126,12 @@ const explode = async function (paths, ignored, { limit, debug }) { // in case the file comes from `files` or `main` // and it wasn't specified with `.js` by the user path = file + '.js'; - s = await stat(path); + + try { + s = await stat(path); + } catch (e2) { + return null; + } } if (isIgnored(file, ignored)) {