Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b3cd7d1

Browse files
committed
Fix watcher walker, ensuring sub-dirs watched on Linux, closes #153
1 parent 33c0562 commit b3cd7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/watcher/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function walkDirs(root: string, callback: (dir: string) => void) {
1717
callback(root);
1818
for (const name of fs.readdirSync(root)) {
1919
const filePath = path.join(root, name);
20-
if (!fs.statSync(filePath).isDirectory()) return;
20+
if (!fs.statSync(filePath).isDirectory()) continue;
2121
walkDirs(filePath, callback);
2222
}
2323
}

0 commit comments

Comments
 (0)