react-native-community / react-native-community/cli
Handle prompts in `init` command
Open
Nobody has claimed this yet.
bug report
no-stale-bot
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 949
- PR merge metrics
- No merged PRs in 30d
Description
Description
When doing all necessary parts in init command we run also yarn set version which sometimes can show a prompt (e.g. related to Corepack), current we hide all logs, so prompt is not presented and init command hangs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the implementation of the init command and trace how it invokes yarn set version and handles its output. Reproduce a Corepack-related prompt and verify that the prompt is visible and the init command no longer hangs while other required init steps still complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100