-   Notifications  You must be signed in to change notification settings 
- Fork 221
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
#685 changed how the @react-native-community/cli was invoked and now it incorrectly assumes that the binary will be located within process.cwd()/node_modules/bin. In a monorepo structure, it is unlikely the binary is in this location due to package hoisting.
Previously, bob used npx to invoke the binary (which respects monorepo structure), but after the PR the path to the binary is hardcoded as
 const RNC_CLI_BINARY_PATH = path.resolve( process.cwd(), // We are always expected to run in the library 'node_modules', '.bin', rncCliBinaryName ); Packages
- create-react-native-library
- react-native-builder-bob
Selected options
Link to repro
Environment
atlj
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working