Merge pull request #573 from Szpadel/fix-listing-exclude

Do not exclude whole project dir when listing in case where project i…
This commit is contained in:
Matt Rubens 2025-03-09 21:59:54 -04:00 • committed by GitHub
commit 85775ce0a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ export async function listFiles(dirPath: string, recursive: boolean, limit: numb
"pkg",
"Pods",
".*", // '!**/.*' excludes hidden directories, while '!**/.*/**' excludes only their contents. This way we are at least aware of the existence of hidden directories.
].map((dir) => `**/${dir}/**`)
].map((dir) => `${dirPath}/**/${dir}/**`)
const options = {
cwd: dirPath,