Skip to content

Commit cdc25d9

Browse files
committed
fix: exclude node_modules from file reading process
1 parent 0268569 commit cdc25d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/utils/file-reader.ts

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class FileReader {
4545
const items = await fs.readdir(dir, { withFileTypes: true });
4646

4747
for (const item of items) {
48+
if (item.name.includes('node_modules')) continue;
4849
const fullPath = path.join(dir, item.name);
4950
const relativePath = path.relative(this.basePath, fullPath);
5051

0 commit comments

Comments
 (0)