From df2de5e4702a07549396d75b4a3e18f58a65a6a0 Mon Sep 17 00:00:00 2001 From: Joar Date: Wed, 1 Nov 2023 06:56:46 +0100 Subject: [PATCH] Prioritize nodeModulesPath over config.root if present. (#2507) Co-authored-by: Dima --- android/codepush.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/codepush.gradle b/android/codepush.gradle index a0f9d2748..be305bf06 100644 --- a/android/codepush.gradle +++ b/android/codepush.gradle @@ -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"; }