plugin data reduction & args changes

This commit is contained in:
Jacob Nguyen
2024-05-17 15:07:32 -05:00
parent ca9b84ba21
commit 6717672722
9 changed files with 74 additions and 61 deletions

View File

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