mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
react-native-xcode.sh: Support Homebrew-installed nodenv
Summary:
As well as nvm.
9d315f4a1e/scripts/react-native-xcode.sh (L56-L60)
Build React Native iOS app with Release configuration and run the script using `node` command which is installed through Homebrew-installed `nodenv` and `node-build`.
None.
[IOS] [ENHANCEMENT] [scripts/react-native-xcode.sh] - Support Homebrew-installed nodenv
Closes https://github.com/facebook/react-native/pull/19509
Differential Revision: D8243181
Pulled By: hramos
fbshipit-source-id: fbd75f377f4aebf89ce35b96a47c59238e62e9ce
This commit is contained in:
parent
83c990b25c
commit
0964135a17
@ -62,6 +62,8 @@ fi
|
|||||||
# Set up the nodenv node version manager if present
|
# Set up the nodenv node version manager if present
|
||||||
if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
|
if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
|
||||||
eval "$("$HOME/.nodenv/bin/nodenv" init -)"
|
eval "$("$HOME/.nodenv/bin/nodenv" init -)"
|
||||||
|
elif [[ -x "$(command -v brew)" && -x "$(brew --prefix nodenv)/bin/nodenv" ]]; then
|
||||||
|
eval "$("$(brew --prefix nodenv)/bin/nodenv" init -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
|
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user