From ae131a3e278a8a332fa2edcb6818021d0bad8ecd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 28 Apr 2016 16:09:34 +0100 Subject: [PATCH] Remove duplicate build script --- build | 20 -------------------- scripts/build | 6 ++++++ 2 files changed, 6 insertions(+), 20 deletions(-) delete mode 100755 build diff --git a/build b/build deleted file mode 100755 index cb8d694..0000000 --- a/build +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -if [ -z "$NVM_DIR" ] -then - NVM_DIR="~/.nvm" -fi - -. $NVM_DIR/nvm.sh -nvm install -nvm use - -set -e - -npm install - -echo "Fixing the hacks..." - -# React-Native doesnt like having .babelrc files in modules, and officially suggests not shipping react-native modules with them included. -# This script scans all sub-dirs of node_modules, and removes any it finds, except the ones inside react-native itself. -find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm || echo "Already patched!" diff --git a/scripts/build b/scripts/build index 38e8171..cb8d694 100755 --- a/scripts/build +++ b/scripts/build @@ -12,3 +12,9 @@ nvm use set -e npm install + +echo "Fixing the hacks..." + +# React-Native doesnt like having .babelrc files in modules, and officially suggests not shipping react-native modules with them included. +# This script scans all sub-dirs of node_modules, and removes any it finds, except the ones inside react-native itself. +find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm || echo "Already patched!"