From 0dbc21ef5b34be00b4749b4698a117637f11720f Mon Sep 17 00:00:00 2001 From: nitaking <10850034+nitaking@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:29:42 +0900 Subject: [PATCH 1/3] :ambulance: :fire: Remove find-node.sh --- scripts/find-node.sh | 33 --------------------------------- scripts/generate-specs.sh | 4 ---- scripts/react-native-xcode.sh | 4 ---- 3 files changed, 41 deletions(-) delete mode 100755 scripts/find-node.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 7751fca30c72fa..93135c15604d8f 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..8cf6e78d38d90a 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -79,10 +79,6 @@ 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" - # check and assign NODE_BINARY env # shellcheck source=/dev/null source "$REACT_NATIVE_DIR/scripts/node-binary.sh" From bbf4acce8f0f99be3a4dd38082ef851368690ee3 Mon Sep 17 00:00:00 2001 From: nitaking <10850034+nitaking@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:36:52 +0900 Subject: [PATCH 2/3] :fire: remove package.json file. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 373c2848233f7d..9455fea7b6c900 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", From 2c27863da1e2bd95ba1643a1ff6421edb0fd4d1c Mon Sep 17 00:00:00 2001 From: nitaking <10850034+nitaking@users.noreply.github.com> Date: Thu, 22 Apr 2021 16:53:20 +0900 Subject: [PATCH 3/3] :sparkles: Fix build error. --- scripts/react-native-xcode.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 8cf6e78d38d90a..0aa6151c5ac6b6 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -79,6 +79,9 @@ if [[ $DEV != true && ! -f "$ENTRY_FILE" ]]; then exit 2 fi +# create bundle file +touch ios/main.jsbundle + # check and assign NODE_BINARY env # shellcheck source=/dev/null source "$REACT_NATIVE_DIR/scripts/node-binary.sh"