Permalink
Browse files

react-native-xcode.sh: Support Homebrew-installed nodenv

Summary:
As well as nvm.

https://github.com/facebook/react-native/blob/9d315f4a1e7b0c9cd80a51903db0b1b561b19e33/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 #19509

Differential Revision: D8243181

Pulled By: hramos

fbshipit-source-id: fbd75f377f4aebf89ce35b96a47c59238e62e9ce
  • Loading branch information...
ikesyo authored and facebook-github-bot committed Jun 1, 2018
1 parent 83c990b commit 0964135a178b459e06b44a49a4ecb0dd6c5bec9b
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripts/react-native-xcode.sh
@@ -62,6 +62,8 @@ fi
# Set up the nodenv node version manager if present
if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
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
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"

0 comments on commit 0964135

Please sign in to comment.