Skip to content

Commit

Permalink
fix: added recursive option
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeveric committed Mar 29, 2024
1 parent d43223b commit becc981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/expandEntryPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit becc981

Please sign in to comment.