Skip to content

Commit e31224f

Browse files
authored
Just build a RN bundle, not the whole app (#4266)
1 parent 5b16303 commit e31224f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Learn more https://docs.expo.io/guides/customizing-metro
2+
const { getDefaultConfig } = require('expo/metro-config');
3+
4+
/** @type {import('expo/metro-config').MetroConfig} */
5+
const config = getDefaultConfig(__dirname);
6+
7+
module.exports = config;

examples/publish-ci/expo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"main": "node_modules/expo/AppEntry.js",
55
"scripts": {
6-
"build": "expo prebuild --clean -p android && cd android && chmod +x ./gradlew && ./gradlew bundleRelease --no-daemon && cd .. && react-native build-android",
6+
"build": "react-native bundle --entry-file App.tsx --bundle-output app.bundle",
77
"start": "expo start",
88
"android": "expo run:android",
99
"ios": "expo run:ios",

examples/publish-ci/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"build": "cd android && chmod +x ./gradlew && ./gradlew bundleRelease --no-daemon && cd .. && react-native build-android",
6+
"build": "react-native bundle --entry-file index.js --bundle-output app.bundle",
77
"android": "react-native run-android",
88
"ios": "react-native run-ios",
99
"lint": "eslint .",

0 commit comments

Comments
 (0)