File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
build-system-tests/scripts Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ while [[ $# -gt 0 ]]; do
24
24
BUILD_TOOL=$2
25
25
shift
26
26
;;
27
+ -b | --build-tool-version)
28
+ BUILD_TOOL_VERSION=$2
29
+ shift
30
+ ;;
27
31
-n | --name)
28
32
MEGA_APP_NAME=$2
29
33
shift
@@ -115,6 +119,11 @@ else
115
119
DEPENDENCIES=" $DEPENDENCIES react-native-safe-area-context@^4.2.5"
116
120
fi ;
117
121
122
+ # expo-asset is nested under expo/node_modules in expo 52, causing Metro resolution issues
123
+ if [[ " $BUILD_TOOL " == " expo" && $BUILD_TOOL_VERSION > " 51" ]]; then
124
+ DEPENDENCIES=" $DEPENDENCIES expo-asset"
125
+ fi
126
+
118
127
echo " npm install $DEPENDENCIES "
119
128
install_dependencies_with_retries npm " $DEPENDENCIES "
120
129
if [[ " $BUILD_TOOL " == " expo" ]]; then
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ BASE_OPTIONS="--build-tool $BUILD_TOOL --name $MEGA_APP_NAME --framework $FRAMEW
91
91
./scripts/mega-app-copy-files.sh $BASE_OPTIONS
92
92
93
93
# Install dependencies
94
- ./scripts/mega-app-install.sh $BASE_OPTIONS --pkg-manager $PKG_MANAGER --tag $TAG
94
+ ./scripts/mega-app-install.sh $BASE_OPTIONS --pkg-manager $PKG_MANAGER --tag $TAG --build-tool-version $BUILD_TOOL_VERSION
95
95
96
96
# Build mega app
97
97
./scripts/mega-app-build.sh $BASE_OPTIONS --platform $PLATFORM
You can’t perform that action at this time.
0 commit comments