Skip to content

Commit 19cd88a

Browse files
committed
Added comments
1 parent 4199d30 commit 19cd88a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/bump/bump-utils.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export function findFileBySuffix({
6666
if (entry == 'node_modules') continue
6767
const entryPath = path.join(currentDir, entry), stat = fs.statSync(entryPath)
6868
if (stat.isDirectory() && recursive) search(entryPath)
69-
else if (stat.isFile() && entry.endsWith(suffix)
70-
&& (dotFiles || !entry.startsWith('.'))
71-
&& !ignoreFiles.includes(entry)
69+
else if (stat.isFile() && entry.endsWith(suffix) // file w/ `suffix`
70+
&& (dotFiles || !entry.startsWith('.')) // not dotfile if disabled
71+
&& !ignoreFiles.includes(entry) // not ignored file
7272
) { foundFiles.push(entryPath) ; if (verbose) console.log(entryPath) }
7373
}
7474
})(path.resolve(dir))

0 commit comments

Comments
 (0)