Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-core): add setMaxListener for chokidar watchers
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 17, 2018
1 parent 507e149 commit 6053c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docz-core/src/states/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const state = (config: Config): State => {
persistent: true,
})

watcher.setMaxListeners(Infinity)

return {
init: updateConfig(config),
close: () => watcher.close(),
Expand Down
2 changes: 2 additions & 0 deletions packages/docz-core/src/states/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const state = (entries: Entries, config: Config): State => {
persistent: true,
})

watcher.setMaxListeners(Infinity)

return {
init: updateEntries(entries),
close: () => watcher.close(),
Expand Down

0 comments on commit 6053c16

Please sign in to comment.