Skip to content

Commit 102cc3c

Browse files
committed
skip globcheck in case of recursion...
1 parent 918523e commit 102cc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/lookup-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function lookupFiles(
110110
fileExtensions = normalizeFileExtensions(fileExtensions, recursion);
111111

112112
// Detect glob patterns by checking if the path does not exist as-is
113-
if (!fs.existsSync(filepath)) {
113+
if (recursion === false && !fs.existsSync(filepath)) {
114114
let pattern;
115115
if (glob.hasMagic(filepath, {windowsPathsNoEscape: true})) {
116116
// Handle glob as is without extensions

0 commit comments

Comments
 (0)