Skip to content

Commit 78f16fc

Browse files
authored
fix: correctly log error output when building (#698)
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary If an error occurs, it is not printed in the CLI. * as-is: <img width="611" alt="image" src="https://github.com/user-attachments/assets/f535b6d7-b4bd-4274-868e-30640ca1f653"> * to-be: <img width="626" alt="image" src="https://github.com/user-attachments/assets/8bd6d0c5-da74-4230-bb8f-02adf3bb10b4"> <!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? --> ### Test plan 1. `react-native-config.js` file: ```js test // That code will cause an error. ``` 2. yarn prepare <!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->
1 parent a9f2ede commit 78f16fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-builder-bob/src/utils/runRNCCli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { spawn } from './spawn';
77
export async function runRNCCli(
88
args: string[],
99
options: SpawnOptions = {
10-
stdio: 'ignore',
10+
stdio: ['ignore', 'ignore', 'pipe'],
1111
}
1212
) {
1313
return await spawn('npx', ['@react-native-community/cli', ...args], options);

0 commit comments

Comments
 (0)