fix: use polling instead of fs.watch for .next deletion detection
fs.watch is unreliable for detecting directory deletion across platforms: - On Linux, the inotify watch is destroyed along with the directory - On macOS, kqueue/FSEvents may not fire at all for rmSync Switch to a 2-second polling interval with existsSync, which reliably detects the deletion on all platforms. The interval is unref'd so it doesn't prevent the process from exiting normally.
Showing
Please
register
or
sign in
to comment