fix: revert fs:readableWebStream change (#632)

* Revert "fix: fix file closing issue (#629)"

This reverts commit 07a2257003.

* fix: revert `fh.readableWebStream` change

Signed-off-by: Rui Chen <rui@chenrui.dev>

---------

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2025-06-10 18:27:48 -04:00 committed by GitHub
parent f3cad8bcbf
commit 552dc5524b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 22 deletions

View file

@ -91,10 +91,7 @@ const parseMakeLatest = (
export const paths = (patterns: string[]): string[] => {
return patterns.reduce((acc: string[], pattern: string): string[] => {
return acc.concat(
glob
.sync(pattern)
.filter((path) => statSync(path).isFile())
.map((path) => path.replace(/\\/g, "/")),
glob.sync(pattern).filter((path) => statSync(path).isFile()),
);
}, []);
};