File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ async function runReactNativeBundleCommand(
5454 let cliPath = require . resolve ( 'react-native/local-cli/cli.js' , {
5555 paths : [ process . cwd ( ) ] ,
5656 } ) ;
57+ let usingExpo = false ;
5758 try {
5859 require . resolve ( 'expo-router' , {
5960 paths : [ process . cwd ( ) ] ,
@@ -64,10 +65,9 @@ async function runReactNativeBundleCommand(
6465 cliPath = require . resolve ( '@expo/cli' , {
6566 paths : [ process . cwd ( ) ] ,
6667 } ) ;
68+ usingExpo = true ;
6769 } catch ( e ) { }
68- const bundleCommand = cliPath . includes ( '@expo/cli' )
69- ? 'export:embed'
70- : 'bundle' ;
70+ const bundleCommand = usingExpo ? 'export:embed' : 'bundle' ;
7171
7272 Array . prototype . push . apply ( reactNativeBundleArgs , [
7373 cliPath ,
@@ -204,7 +204,7 @@ async function compileHermesByteCode(
204204 }
205205
206206 const hermesCommand = `${ hermesPath } /hermesc` ;
207-
207+
208208 const args = [
209209 '-emit-binary' ,
210210 '-out' ,
You can’t perform that action at this time.
0 commit comments