Add a small timeout so the entire file will be written
This commit is contained in:
parent
aed02b3e27
commit
9ac5a6bb12
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ function main() {
|
|||
files.forEach(file => instrument(d, file))
|
||||
if (opts.w == true || opts.watch == true) {
|
||||
const watcher = chokidar.watch(files, {ignored: '*.doctest.*'})
|
||||
watcher.on('change', file => instrument(d, file, 'watch'))
|
||||
watcher.on('change', file => global.setTimeout(() => instrument(d, file, 'watch'), 25))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue