File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
if [[ $# = 0 ]]; then
4
- echo " Usage: $0 Scheme-Name Debug/Release"
5
- exit 1
4
+ echo " Usage: $0 Scheme-Name Debug/Release"
5
+ exit 1
6
6
fi
7
7
8
8
TS_FILE=" ./scripts/validate-env.ts"
@@ -25,9 +25,23 @@ if [ $EXIT_CODE -ne 0 ]; then
25
25
exit 1
26
26
fi
27
27
28
- # check if expo is installed as devDependency
29
- if [ -d " ./node_modules/expo" ]; then
30
- expo run:ios --scheme $1 --configuration $2 ${@: 3}
31
- else
32
- react-native run-ios --scheme $1 --mode $2 ${@: 3}
28
+ if [ ! -d " ./node_modules" ]; then
29
+ echo " node_modules not found. Installing dependencies..."
30
+ yarn install
33
31
fi
32
+
33
+ if [[ $USE_RN_CLI = true ]]; then
34
+ echo " Using react-native-cli"
35
+ react-native run-ios --scheme $1 --mode $2 ${@: 3}
36
+ exit 0
37
+ else
38
+ # check if expo is in node_modules
39
+ if [ ! -d " ./node_modules/expo" ]; then
40
+ echo " expo not found. Installing expo locally..."
41
+ yarn add -D expo
42
+ fi
43
+
44
+ echo " Using expo-cli"
45
+ expo run:ios --scheme $1 --configuration $2 ${@: 3}
46
+ exit 0
47
+ fi
Original file line number Diff line number Diff line change @@ -9300,7 +9300,7 @@ ts-interface-checker@^0.1.9:
9300
9300
9301
9301
ts-node@^10.9.1 :
9302
9302
version "10.9.1"
9303
- resolved "https://registry.npmjs.org /ts-node/-/ts-node-10.9.1.tgz"
9303
+ resolved "https://registry.yarnpkg.com /ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b "
9304
9304
integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==
9305
9305
dependencies :
9306
9306
" @cspotcode/source-map-support" " ^0.8.0"
You can’t perform that action at this time.
0 commit comments