Skip to content

Commit 4bfa5ee

Browse files
committed
fix: pass reactRoot to detectCliPath
1 parent 2635756 commit 4bfa5ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

react.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def hermesCommand = config.hermesCommand ?: "../../node_modules/hermes-engine/%O
3434
/**
3535
* Detects CLI location in a similar fashion to the React Native CLI
3636
*/
37-
def detectCliPath(config) {
37+
def detectCliPath(config, reactRoot) {
3838
// 1. preconfigured path
3939
if (config.cliPath) {
4040
def cliJsAbsolute = new File(config.cliPath)
@@ -173,7 +173,7 @@ afterEvaluate {
173173

174174
// Additional node and packager commandline arguments
175175
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
176-
def cliPath = detectCliPath(config)
176+
def cliPath = detectCliPath(config, reactRoot)
177177

178178
def execCommand = []
179179

0 commit comments

Comments
 (0)