Skip to content

Commit

Permalink
fix: pass reactRoot to detectCliPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisztiaan committed Feb 14, 2022
1 parent 2cdb041 commit 9197f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react.gradle
Expand Up @@ -34,7 +34,7 @@ def hermesCommand = config.hermesCommand ?: "../../node_modules/hermes-engine/%O
/**
* Detects CLI location in a similar fashion to the React Native CLI
*/
def detectCliPath(config) {
def detectCliPath(config, reactRoot) {
// 1. preconfigured path
if (config.cliPath) {
def cliJsAbsolute = new File(config.cliPath)
Expand Down Expand Up @@ -173,7 +173,7 @@ afterEvaluate {

// Additional node and packager commandline arguments
def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
def cliPath = detectCliPath(config)
def cliPath = detectCliPath(config, reactRoot)

def execCommand = []

Expand Down

0 comments on commit 9197f89

Please sign in to comment.