File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,11 @@ case "$CONFIGURATION" in
54
54
;;
55
55
esac
56
56
57
- # Setting up a project root was a workaround to enable support for non-standard
58
- # structures, including monorepos. Today, CLI supports that out of the box
59
- # and setting custom `PROJECT_ROOT` only makes it confusing.
60
- #
61
- # As a backwards-compatible change, I am leaving "PROJECT_ROOT" support for those
62
- # who already use it - it is likely a non-breaking removal.
63
- #
64
- # For new users, we default to $PWD - not changing things all.
65
- #
66
- # For context: https://github.com/facebook/react-native/commit/9ccde378b6e6379df61f9d968be6346ca6be7ead#commitcomment-37914902
67
- PROJECT_ROOT=${PROJECT_ROOT:- $PWD }
57
+ # Path to react-native folder inside node_modules
58
+ REACT_NATIVE_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd) "
59
+ # The project should be located next to where react-native is installed
60
+ # in node_modules.
61
+ PROJECT_ROOT=${PROJECT_ROOT:- " $REACT_NATIVE_DIR /../.." }
68
62
69
63
cd " $PROJECT_ROOT " || exit
70
64
@@ -102,9 +96,6 @@ if [[ ! -x node && -d ${HOME}/.anyenv/bin ]]; then
102
96
fi
103
97
fi
104
98
105
- # Path to react-native folder inside node_modules
106
- REACT_NATIVE_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd) "
107
-
108
99
# check and assign NODE_BINARY env
109
100
# shellcheck source=/dev/null
110
101
source " $REACT_NATIVE_DIR /scripts/node-binary.sh"
You can’t perform that action at this time.
0 commit comments