cli
cli copied to clipboard
feat: allow providing current directory in `init` command
Summary:
Context: https://github.com/react-native-community/cli/pull/365#issuecomment-2298684999.
Test Plan:
- Clone the repository and do all the required steps from the Contributing guide
- Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js init asdf --directory ./
- Should create project in current directory, if it contains some files it should ask what to do before.
Checklist
- [x] Documentation is up to date to reflect these changes.
- [x] Follows commit message convention described in CONTRIBUTING.md