diff --git a/packages/web/src/lib/console.ts b/packages/web/src/lib/console.ts index 0b183d57..da8adb5b 100644 --- a/packages/web/src/lib/console.ts +++ b/packages/web/src/lib/console.ts @@ -13,11 +13,12 @@ export async function execNext(fn: () => Promise): Promise { const debug = !!process.env.DEBUG; const capturer = new ConsoleCapturer(); - if (debug) { - capturer.onLog = (method, args) => { + capturer.onLog = (method, args, stream) => { + if (stream === "stderr" || debug) { capturer.doPrintln(...["[Next] ", ...args].map((a) => chalk.dim(a))); - }; - } + } + }; + capturer.start(); await fn(); capturer.stop();