Comments (4)
We only need to replace it with "start": "react-native start" I guess. When CLI is present in the "node_modules", it should call the "bin". Otherwise, I imagine it will call the global "react-native" CLI which proxies all the calls to "node_modules" anyway.
from cli.
Looks like this is already done, local-cli/cli.js
imports react-native-local-cli
. I wouldn't go as far as removing that file from react-native
, because existing projects created with react-native init
reference it in the start
script in package.json
and tools like Expo CLI use it.
from cli.
Yeah, @fson, this is totally our idea. In this issue, we are talking about "react-native-cli" (npm package, global CLI) to call into the right file, instead of the proxy.
from cli.
@grabbou do you mean replace the start
command with this instead of proxy?
"start": "react-native-local-cli start"
It would require users to install react-native-local-cli
because of how package managers work (not every each of them hoists dependencies to the root node_modules – it's an implementation detail)
from cli.
Related Issues (20)
- `profile-hermes` throws an error when more than one device is connected HOT 1
- Android: `run-android` fails with `Activity class {...} does not exist` HOT 10
- Improve the developer experience of specifying device/simulator HOT 3
- How to `bundle` when upgrading from version 7 to 12 HOT 9
- How do we build different variation of android apps?
- TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["X-React-Native-Project-Root"] at ServerResponse.setHeader (node:_http_outgoing:651:3) HOT 16
- Setting `buildTypes` for a dependency still adds it to main list of packages, is this expected?
- Getting Error While initialization react native app in ubuntu 22.04.3 LTS. HOT 2
- Error when converting default `settings.gradle` to Kotlin DSL (`settings.gradle.kts`) HOT 3
- --mode vs (deprecated) --variant flag - clarity required HOT 8
- How to solve "Cannot find module 'react-native/cli" correctly? HOT 4
- Support for javascript template when initialize latest React Native HOT 1
- How can I get cli-platform-ios to recognize my M1-based Mac as a Destination/target-device?
- 🚨 Security Vulnerability: ip npm package is unsafe for use as of v1.1.8 HOT 21
- Could not create an empty Git repository, see debug logs with --verbose HOT 14
- Unable to start server in new window when using yarn with pnpm linker HOT 2
- FAILURE: Build failed with an exception.
- FAILURE: Build failed with an exception. Script '/home/xyz/Documents/CQ/projectName/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 375 HOT 1
- Implement support for Android activity aliases
- Not possible to specify macCatalyst UDID as run target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.