Skip to content

Commit

Permalink
Improve watch mode (#238)
Browse files Browse the repository at this point in the history
* Remove file extension from watch glob

* Remove package.json from watch patterns
  • Loading branch information
Sergey Slipchenko committed Jun 29, 2021
1 parent 08f8af4 commit 5af2e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/size-limit/run.js
Expand Up @@ -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))
Expand Down

0 comments on commit 5af2e61

Please sign in to comment.