Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 2cdb3c0

Browse files
committed
Fix config watcher bug on OSX
1 parent a4d868a commit 2cdb3c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,13 @@ gtt._watchers.config = {
425425
add() {
426426
gtt._dump('Added config watcher');
427427
this.watcher = chokidar
428-
.watch(gtt._config.global)
428+
.watch(gtt._config.global, {
429+
ignoreInitial: true,
430+
awaitWriteFinish: {
431+
stabilityThreshold: 2000,
432+
pollInterval: 100,
433+
},
434+
})
429435
.on('change', () => {
430436
gtt.loadConfig();
431437
gtt._unauthorized = false;

0 commit comments

Comments
 (0)