diff --git a/main.py b/main.py index 6ec0c84c..fba1ef17 100644 --- a/main.py +++ b/main.py @@ -513,8 +513,10 @@ def _reload_dirs() -> list[str]: for entry in sorted(root.iterdir()): if not entry.is_dir() or entry.name.startswith(".") or entry.name in _RELOAD_SKIP: continue - if (entry / "node_modules").is_dir(): - continue # 의존성 트리가 안에 있으면 훑는 값이 이득을 넘는다 + # 의존성 트리가 **한 겹 아래에 숨어 있는** 경우도 뺀다 — `B07_DesignDetail/openwebcad/ + # node_modules`(15,944개)가 그렇다. 바로 밑만 보면 새어 나간다(2026-09-07 실측). + if (entry / "node_modules").is_dir() or any(entry.glob("*/node_modules")): + continue if any(entry.rglob("*.py")): watched.append(str(entry)) return watched