Skip to content

Commit

Permalink
Merge pull request #248 from kaplanlior/244-postinstall
Browse files Browse the repository at this point in the history
Create postinstall script
  • Loading branch information
SagivOnoApps authored Aug 2, 2020
2 parents 2e334d1 + 597dae9 commit 40d0de4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
"postinstall": "cd ios && pod install && cd ../ && npx jetify",
"postinstall": "./scripts/postinstall",
"android": "react-native run-android",
"ios": "react-native run-ios --scheme hamagen",
"ios-qa": "react-native run-ios --scheme hamagen-qa",
Expand Down
8 changes: 8 additions & 0 deletions scripts/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#/bin/sh
case "`uname`" in
Darwin* )
cd ios && pod install && cd ../
;;
esac

npx jetify

0 comments on commit 40d0de4

Please sign in to comment.