diff --git a/lib/index.js b/lib/index.js index 87485f7..7434ba8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -72,7 +72,7 @@ class LCUConnector extends EventEmitter { } const lockfilePath = path.join(this._dirPath, 'lockfile'); - this._lockfileWatcher = chokidar.watch(lockfilePath); + this._lockfileWatcher = chokidar.watch(lockfilePath, { disableGlobbing: true }); this._lockfileWatcher.on('add', this._onFileCreated.bind(this)); this._lockfileWatcher.on('unlink', this._onFileRemoved.bind(this));