up to speed with event modules

This commit is contained in:
Jacob Nguyen
2024-05-15 14:59:24 -05:00
parent 16a84e85d1
commit 0d82658fc5
9 changed files with 71 additions and 50 deletions

View File

@@ -59,7 +59,7 @@ export async function* readRecursive(dir: string): AsyncGenerator<string> {
const files = await readdir(dir, { withFileTypes: true });
for (const file of files) {
const fullPath = path.join(dir, file.name);
const fullPath = path.posix.resolve(dir, file.name);
if (file.isDirectory()) {
if (!file.name.startsWith('!')) {
yield* readRecursive(fullPath);