From 5af2e615ea61b0db992d78b569706550e60ea775 Mon Sep 17 00:00:00 2001 From: Sergey Slipchenko Date: Tue, 29 Jun 2021 06:58:59 +0300 Subject: [PATCH] Improve watch mode (#238) * Remove file extension from watch glob * Remove package.json from watch patterns --- packages/size-limit/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/size-limit/run.js b/packages/size-limit/run.js index 0b1d4c54..388e9d8d 100644 --- a/packages/size-limit/run.js +++ b/packages/size-limit/run.js @@ -80,7 +80,7 @@ module.exports = async process => { await calcAndShow() if (hasArg('--watch')) { - let watcher = chokidar.watch(['**/*.js', 'package.json'], { + let watcher = chokidar.watch(['**/*'], { ignored: '**/node_modules/**' }) watcher.on('change', throttle(calcAndShow))