Skip to content

Commit ffc9852

Browse files
committed
fix: don't log watch mode not supported to stdout (fixes Expo) (#1027)
1 parent bda5fc0 commit ffc9852

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/commands/server/watchMode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ function printWatchModeInstructions() {
99
}
1010

1111
function enableWatchMode(messageSocket: any) {
12-
readline.emitKeypressEvents(process.stdin);
13-
1412
// We need to set this to true to catch key presses individually.
1513
// As a result we have to implement our own method for exiting
1614
// and other commands (e.g. ctrl+c & ctrl+z)
1715
if (!process.stdin.setRawMode) {
18-
logger.log('Watch mode is not supported in this environment');
16+
logger.debug('Watch mode is not supported in this environment');
1917
return;
2018
}
2119

20+
readline.emitKeypressEvents(process.stdin);
21+
2222
process.stdin.setRawMode(true);
2323

2424
// We have no way of knowing when the dependency graph is done loading

0 commit comments

Comments
 (0)