Skip to content

Commit

Permalink
Just build a RN bundle, not the whole app (#4266)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Mar 11, 2024
1 parent 5b16303 commit e31224f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions examples/publish-ci/expo/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

module.exports = config;
2 changes: 1 addition & 1 deletion examples/publish-ci/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"build": "expo prebuild --clean -p android && cd android && chmod +x ./gradlew && ./gradlew bundleRelease --no-daemon && cd .. && react-native build-android",
"build": "react-native bundle --entry-file App.tsx --bundle-output app.bundle",
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
Expand Down
2 changes: 1 addition & 1 deletion examples/publish-ci/react-native/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": {
"build": "cd android && chmod +x ./gradlew && ./gradlew bundleRelease --no-daemon && cd .. && react-native build-android",
"build": "react-native bundle --entry-file index.js --bundle-output app.bundle",
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
Expand Down

0 comments on commit e31224f

Please sign in to comment.