Skip to content

Commit

Permalink
Prioritize nodeModulesPath over config.root if present. (#2507)
Browse files Browse the repository at this point in the history
Co-authored-by: Dima <[email protected]>
  • Loading branch information
joarkosberg and DmitriyKirakosyan authored Nov 1, 2023
1 parent 2687807 commit df2de5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/codepush.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ gradle.projectsEvaluated {
}

def nodeModulesPath;
if (config.root) {
nodeModulesPath = Paths.get(config.root.asFile.get().absolutePath, "/node_modules");
} else if (project.hasProperty('nodeModulesPath')) {
if (project.hasProperty('nodeModulesPath')) {
nodeModulesPath = project.nodeModulesPath
} else if (config.root) {
nodeModulesPath = Paths.get(config.root.asFile.get().absolutePath, "/node_modules");
} else {
nodeModulesPath = "../../node_modules";
}
Expand Down

0 comments on commit df2de5e

Please sign in to comment.