This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/build

20 lines
515 B
Bash
Executable file

#!/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!"