Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit df2de5e

Browse files
Prioritize nodeModulesPath over config.root if present. (#2507)
Co-authored-by: Dima <v-dmkira@microsoft.com>
1 parent 2687807 commit df2de5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/codepush.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ gradle.projectsEvaluated {
3333
}
3434

3535
def nodeModulesPath;
36-
if (config.root) {
37-
nodeModulesPath = Paths.get(config.root.asFile.get().absolutePath, "/node_modules");
38-
} else if (project.hasProperty('nodeModulesPath')) {
36+
if (project.hasProperty('nodeModulesPath')) {
3937
nodeModulesPath = project.nodeModulesPath
38+
} else if (config.root) {
39+
nodeModulesPath = Paths.get(config.root.asFile.get().absolutePath, "/node_modules");
4040
} else {
4141
nodeModulesPath = "../../node_modules";
4242
}

0 commit comments

Comments
 (0)