Home > @rushstack/heft > IHeftTaskRunIncrementalHookOptions > watchGlobAsync
IHeftTaskRunIncrementalHookOptions.watchGlobAsync property
Reads the specified globs and returns the result, filtering out files that have not changed since the last execution. All file system calls while reading the glob are tracked and will be watched for changes.
If a change to the monitored files is detected, the task will be scheduled for re-execution.
Signature:
readonly watchGlobAsync: WatchGlobFn;