Skip to content

Function: watchFiles()

watchFiles(paths, options?): FSWatcher

Watches files and directories for real-time changes, applying the shared ignore groups so it prunes the same paths findFiles skips for the same patterns.

string | string[]

FileWatchOptions

FSWatcher