Revert "refactor: migrate from Bun.Glob to npm glob package"

This reverts commit 3c21735b35.
This commit is contained in:
Dax Raad
2026-02-19 12:48:43 -05:00
parent 50883cc1e9
commit af72010e9f
17 changed files with 122 additions and 226 deletions
+7 -5
View File
@@ -5,7 +5,6 @@ import { realpathSync } from "fs"
import { dirname, join, relative } from "path"
import { Readable } from "stream"
import { pipeline } from "stream/promises"
import { Glob } from "./glob"
export namespace Filesystem {
// Fast sync version for metadata checks
@@ -157,13 +156,16 @@ export namespace Filesystem {
const result = []
while (true) {
try {
const matches = await Glob.scan(pattern, {
const glob = new Bun.Glob(pattern)
for await (const match of glob.scan({
cwd: current,
absolute: true,
include: "file",
onlyFiles: true,
followSymlinks: true,
dot: true,
})
result.push(...matches)
})) {
result.push(match)
}
} catch {
// Skip invalid glob patterns
}