Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e # Exit on error

# Clean project
rm -rf .expo android ios node_modules vendor
rm -rf .expo dist android ios node_modules vendor

# Install dependencies
./scripts/install-dependencies.sh
Expand Down
10 changes: 9 additions & 1 deletion scripts/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ fi

# Install dependencies
echo "Running '$PACKAGE_MANAGER install' in ${PWD}"
$PACKAGE_MANAGER install
$PACKAGE_MANAGER install

# Update PR Checks GitHub Action if required
if [ "$PACKAGE_MANAGER" = "yarn" ]; then
sed -i '' 's/cache: npm/cache: yarn/g' .github/workflows/PR\ Checks.yml
sed -i '' 's/npm install/yarn install/g' .github/workflows/PR\ Checks.yml
sed -i '' 's/npm run/yarn/g' .github/workflows/PR\ Checks.yml
sed -i '' 's/npx/yarn/g' .github/workflows/PR\ Checks.yml
fi
Loading