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 4199d30 commit 19cd88aCopy full SHA for 19cd88a
utils/bump/bump-utils.mjs
@@ -66,9 +66,9 @@ export function findFileBySuffix({
66
if (entry == 'node_modules') continue
67
const entryPath = path.join(currentDir, entry), stat = fs.statSync(entryPath)
68
if (stat.isDirectory() && recursive) search(entryPath)
69
- else if (stat.isFile() && entry.endsWith(suffix)
70
- && (dotFiles || !entry.startsWith('.'))
71
- && !ignoreFiles.includes(entry)
+ else if (stat.isFile() && entry.endsWith(suffix) // file w/ `suffix`
+ && (dotFiles || !entry.startsWith('.')) // not dotfile if disabled
+ && !ignoreFiles.includes(entry) // not ignored file
72
) { foundFiles.push(entryPath) ; if (verbose) console.log(entryPath) }
73
}
74
})(path.resolve(dir))
0 commit comments