fix
This commit is contained in:
parent
9715ca9f4b
commit
88b99fa86b
|
|
@ -66,9 +66,10 @@ export class Watcher {
|
||||||
const files = await readdir(path);
|
const files = await readdir(path);
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
if (file.startsWith(".") || file === "node_modules") continue;
|
if (file.startsWith(".") || file === "node_modules") continue;
|
||||||
const stats = statSync(file);
|
const fullpath = join(path, file);
|
||||||
|
const stats = statSync(fullpath);
|
||||||
if (stats.isDirectory()) {
|
if (stats.isDirectory()) {
|
||||||
this.watchers[file] = createWatcher(join(path, file), true);
|
this.watchers[file] = createWatcher(fullpath, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue