diff --git a/package.json b/package.json index 98106cbd4ebe04..ad2287fe8f55ab 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "README.md", "rn-get-polyfills.js", "scripts/compose-source-maps.js", - "scripts/find-node.sh", "scripts/generate-specs.sh", "scripts/generate-specs-cli.js", "scripts/ios-configure-glog.sh", diff --git a/scripts/find-node.sh b/scripts/find-node.sh deleted file mode 100755 index 0d0a155b238bfe..00000000000000 --- a/scripts/find-node.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright (c) Facebook, Inc. and its affiliates. -# -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. - -set -e - -# Define NVM_DIR and source the nvm.sh setup script -[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm" - -if [[ -s "$HOME/.nvm/nvm.sh" ]]; then - # shellcheck source=/dev/null - . "$HOME/.nvm/nvm.sh" -elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then - # shellcheck source=/dev/null - . "$(brew --prefix nvm)/nvm.sh" -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 - -# Set up the ndenv of anyenv if preset -if [[ ! -x node && -d ${HOME}/.anyenv/bin ]]; then - export PATH=${HOME}/.anyenv/bin:${PATH} - if [[ "$(anyenv envs | grep -c ndenv )" -eq 1 ]]; then - eval "$(anyenv init -)" - fi -fi diff --git a/scripts/generate-specs.sh b/scripts/generate-specs.sh index ddac05baa1a827..a49ea636c35b84 100755 --- a/scripts/generate-specs.sh +++ b/scripts/generate-specs.sh @@ -30,10 +30,6 @@ RN_DIR=$(cd "$THIS_DIR/.." && pwd) NODE_BINARY="${NODE_BINARY:-$(command -v node || true)}" USE_FABRIC="${USE_FABRIC:-0}" -# Find path to Node -# shellcheck source=/dev/null -source "$RN_DIR/scripts/find-node.sh" - cleanup () { set +e rm -rf "$TEMP_DIR" diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 6809a613a39a34..0aa6151c5ac6b6 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -79,9 +79,8 @@ if [[ $DEV != true && ! -f "$ENTRY_FILE" ]]; then exit 2 fi -# Find path to Node -# shellcheck source=/dev/null -source "$RN_DIR/scripts/find-node.sh" +# create bundle file +touch ios/main.jsbundle # check and assign NODE_BINARY env # shellcheck source=/dev/null