Nx
Enterprise
Nx
fix(core): use recursive FSEvents on macOS instead of non-recursive kqueue PR #34329 switched all watched paths to non-recursive to reduce inotify watch count on Linux. On macOS, the notify crate uses kqueue for non-recursive watches instead of FSEvents. kqueue silently fails at scale (~5,250+ directories) due to vnode table pressure, causing the daemon to never detect file changes in large monorepos. This fix uses platform-conditional watch modes: - macOS: single recursive watch on the workspace root (uses FSEvents) - Linux/Windows: non-recursive per-directory watches (preserves #33781 fix) On macOS, FSEvents handles recursive watching natively from a single root path, so directory enumeration and dynamic registration are skipped entirely. This also improves daemon startup time on macOS (from ~10 minutes to <1 second in a 354-project monorepo). Fixes #34522 Amp-Thread-ID: https://ampcode.com/threads/T-019c7804-5473-73ae-861f-d5dc1572a1ce Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-019c7804-5473-73ae-861f-d5dc1572a1ce Co-authored-by: Amp <amp@ampcode.com>
nx-cloud record -- nx-cloud conformance:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx-cloud record -- nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
a3a938de
34523