History log of /expo/packages/@expo/cli/src/utils/__tests__/port.test.ts (Results 1 – 1 of 1)
Revision Date Author Comments
# 75a300d7 07-Sep-2023 Evan Bacon <[email protected]>

feat(cli): ensure port is running after build. (#24315)

# Why

If a user runs either build command (`npx expo run:ios` or `npx expo
run:android`) simultaneously, then there is chance for a port c

feat(cli): ensure port is running after build. (#24315)

# Why

If a user runs either build command (`npx expo run:ios` or `npx expo
run:android`) simultaneously, then there is chance for a port conflict.
This change proposes we run a secondary port check after the build to
provide a slightly better user experience. If the port is taken by the
same app, the dev server will be skipped and the process will proceed in
headless-mode, if the port is taken by a different process, then an
error will be thrown.

---------

Co-authored-by: Expo Bot <[email protected]>

show more ...