Skip to content

fix(harness): prevent bootstrap hang from npx install prompts#22

Merged
pzuraq merged 1 commit into
mainfrom
revert-react-native-cli-change
May 21, 2026
Merged

fix(harness): prevent bootstrap hang from npx install prompts#22
pzuraq merged 1 commit into
mainfrom
revert-react-native-cli-change

Conversation

@pzuraq

@pzuraq pzuraq commented May 21, 2026

Copy link
Copy Markdown
Contributor

Add --yes to every npx call in the harness builder so npx auto-confirms
package downloads. Under the spinner, stdin is 'ignore' — any prompt
would hang indefinitely. The hang surfaced on npx @react-native-community
/cli init, which always needs to resolve the package over the network
since it runs before npm install.

Also switch buildAndroid from raw gradlew assembleDebug to
npx react-native build-android for symmetry with iOS and to let the RN
CLI handle codegen + Gradle wrapper setup. Pass --tasks assembleDebug
explicitly: the CLI defaults its task prefix to 'bundle' (producing an
.aab), not 'assemble' (producing the .apk we need).

@pzuraq
pzuraq force-pushed the revert-react-native-cli-change branch 2 times, most recently from 9c9e272 to 2712261 Compare May 21, 2026 20:09
… builds

Add --yes to every npx call in the harness builder so npx auto-confirms
package downloads. Under the spinner, stdin is 'ignore' — any prompt
would hang indefinitely. The hang surfaced on npx @react-native-community
/cli init, which always needs to resolve the package over the network
since it runs before npm install.

Also switch buildAndroid from raw gradlew assembleDebug to
npx react-native build-android for symmetry with iOS and to let the RN
CLI handle codegen + Gradle wrapper setup. Pass --tasks assembleDebug
explicitly: the CLI defaults its task prefix to 'bundle' (producing an
.aab), not 'assemble' (producing the .apk we need).
@pzuraq
pzuraq force-pushed the revert-react-native-cli-change branch from 2712261 to 0124380 Compare May 21, 2026 20:18
@pzuraq
pzuraq merged commit 6eac9d6 into main May 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant