From 0e3abe489a597f2c6687a9162e2028ade36ef707 Mon Sep 17 00:00:00 2001 From: Joshua Kifer Date: Tue, 3 Apr 2018 12:58:06 -0700 Subject: [PATCH] Re-upgrade chokidar, disable globbing --- package.json | 2 +- src/cli/dev.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7234d2f..973fda8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "cheerio": "^1.0.0-rc.2", - "chokidar": "^1.7.0", + "chokidar": "^2.0.3", "clorox": "^1.0.3", "cookie": "^0.3.1", "devalue": "^1.0.1", diff --git a/src/cli/dev.ts b/src/cli/dev.ts index ea2a364..55df157 100644 --- a/src/cli/dev.ts +++ b/src/cli/dev.ts @@ -311,7 +311,8 @@ function watch_files(pattern: string, events: string[], callback: () => void) { const watcher = chokidar.watch(pattern, { persistent: true, - ignoreInitial: true + ignoreInitial: true, + disableGlobing: true }); events.forEach(event => {