diff --git a/src/glob.ts b/src/glob.ts index b3f9eef..f4ee5c2 100644 --- a/src/glob.ts +++ b/src/glob.ts @@ -1,16 +1,5 @@ -import { stat } from "node:fs/promises"; -import { fileExists } from "./fs"; import { glob } from "glob"; export async function globFiles(pattern: string): Promise { - const result = await glob(pattern); - const files = [] as string[]; - - for (const file of result) { - if (await fileExists(file) && !(await stat(file)).isDirectory()) { - files.push(file); - } - } - - return files; + return glob(pattern, { nodir: true }); } \ No newline at end of file