From becc981e7d88b534dfdef2ce96858264a578c48e Mon Sep 17 00:00:00 2001 From: Eric King Date: Fri, 29 Mar 2024 16:41:15 -0500 Subject: [PATCH] fix: added `recursive` option --- src/utils/expandEntryPoint.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/expandEntryPoint.ts b/src/utils/expandEntryPoint.ts index 75178e7..21df8f7 100644 --- a/src/utils/expandEntryPoint.ts +++ b/src/utils/expandEntryPoint.ts @@ -30,7 +30,9 @@ export async function* expandEntryPoint(entryPoint: EntryPoint): AsyncGenerator< return star; }; - const dir = await opendir(entryPoint.directory); + const dir = await opendir(entryPoint.directory, { + recursive: true, + }); for await (const item of dir) { if (item.isFile() && (typeof suffix == 'undefined' || item.name.endsWith(suffix))) {