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 in the top of script
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 4, 2018
1 parent 4394a5b commit 2eef307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docz-core/src/commands/dev.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
process.setMaxListeners(Infinity)

import logger from 'signale'
import detectPort from 'detect-port'
import envDotProp from 'env-dot-prop'
Expand Down Expand Up @@ -55,7 +57,6 @@ export const dev = async (args: Config) => {
process.exit(1)
}

process.setMaxListeners(9999)
const signals: any = ['SIGINT', 'SIGTERM']
for (const sig of signals) {
process.on(sig, async () => {
Expand Down

0 comments on commit 2eef307

Please sign in to comment.