From d81bf65600e49f1c2d8ef28418f2a902df6b8a4b Mon Sep 17 00:00:00 2001
From: jerrykingxyz <jerrykingxyz@gmail.com>
Date: Wed, 25 Oct 2023 17:44:58 +0800
Subject: [PATCH] fix: print error when run rspack failed

---
 lib/utils.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils.js b/lib/utils.js
index 09f043fa..17609931 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -16,7 +16,7 @@ export async function runCommand(
 	const stdio = verbose ? "inherit" : "ignore";
 	const p = spawn(command, args, {
 		shell: true,
-		stdio: [stdio, hasOnData ? "pipe" : stdio, stdio],
+		stdio: [stdio, hasOnData ? "pipe" : stdio, "inherit"],
 		env: env
 			? {
 					...process.env,