This PR modifies the behavior of lineReader which would previously only tried on reading from stderr when requested.
Since typically stderr is used to pass on important information and given almost all uses in out codebase would set stderr as true, this method now connects to stderr by default.
For the use-cases where we want to be able to tell whether line comes from stderr or stdout (like with the sim-server stdout that is used as communication and control channel), the line callback gets an additional argument that indicates whether line comes from stderr.
Test plan
Run expo-router, try clean rebuild on Android and iOS
This PR modifies the behavior of lineReader which would previously only tried on reading from stderr when requested.
Since typically stderr is used to pass on important information and given almost all uses in out codebase would set stderr as
true
, this method now connects to stderr by default.For the use-cases where we want to be able to tell whether line comes from stderr or stdout (like with the sim-server stdout that is used as communication and control channel), the line callback gets an additional argument that indicates whether line comes from stderr.
Test plan
Run expo-router, try clean rebuild on Android and iOS