react-native-community / react-native-community/cli

Handle prompts in `init` command

Open
#2,390 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.