We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918523e commit 102cc3cCopy full SHA for 102cc3c
lib/cli/lookup-files.js
@@ -110,7 +110,7 @@ module.exports = function lookupFiles(
110
fileExtensions = normalizeFileExtensions(fileExtensions, recursion);
111
112
// Detect glob patterns by checking if the path does not exist as-is
113
- if (!fs.existsSync(filepath)) {
+ if (recursion === false && !fs.existsSync(filepath)) {
114
let pattern;
115
if (glob.hasMagic(filepath, {windowsPathsNoEscape: true})) {
116
// Handle glob as is without extensions
0 commit comments