From d25db7edfa57296fd268b3775de6ce9cd6866165 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Sun, 17 Nov 2024 12:14:52 -0500 Subject: [PATCH] [lint] fix listener warning --- scripts/lint/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lint/src/main.ts b/scripts/lint/src/main.ts index fcc04733..7f3172e2 100644 --- a/scripts/lint/src/main.ts +++ b/scripts/lint/src/main.ts @@ -176,6 +176,10 @@ async function runConcurrently( parentPrefix = '', procs = new Set(), ) { + // Ensure the "MaxListenersExceededWarning" is not logged. + process.stdout.setMaxListeners(1000) + process.stderr.setMaxListeners(1000) + await Promise.all( commands.map(async cmd => { if (!cmd) {