mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: `react.gradle`'s `detectCliPath` was not working correctly for the `cliJsFromNode` check, this fixes it. ## Changelog [Android] [Fixed] - Fix react.gradle's detectCliPath's for finding the path from Node Pull Request resolved: https://github.com/facebook/react-native/pull/34808 Test Plan: Tested manually from a monorepo setup, this incorrect check was preventing the CLI from being found correctly: ``` ❯ pwd /Users/liam.jones/code/monorepo/packages/apps/app1/android ❯ node --print "require.resolve('react-native/cli').bin" # old code undefined ❯ node --print "require.resolve('react-native/cli')" # new code /Users/liam.jones/code/monorepo/node_modules/react-native/cli.js Reviewed By: cortinico Differential Revision: D39883661 Pulled By: cortinico fbshipit-source-id: 2120df3443e38631e0fbd9b844aa93a87449186f