File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-update-cli" ,
3
- "version" : " 1.34.2 " ,
3
+ "version" : " 1.35.0 " ,
4
4
"description" : " Command tools for javaScript updater with `pushy` service for react native apps." ,
5
5
"main" : " index.js" ,
6
6
"bin" : {
Original file line number Diff line number Diff line change @@ -53,31 +53,25 @@ async function runReactNativeBundleCommand(
53
53
54
54
let cliPath ;
55
55
56
- try {
57
- // rn >= 0.75
58
- cliPath = require . resolve ( '@react-native-community/cli/build/bin.js' , {
59
- paths : [ process . cwd ( ) ] ,
60
- } ) ;
61
- } catch ( e ) {
62
- // rn < 0.75
63
- cliPath = require . resolve ( 'react-native/local-cli/cli.js' , {
64
- paths : [ process . cwd ( ) ] ,
65
- } ) ;
66
- }
67
-
68
56
let usingExpo = false ;
69
57
try {
70
- require . resolve ( 'expo-router' , {
71
- paths : [ process . cwd ( ) ] ,
72
- } ) ;
73
-
74
- console . log ( `expo-router detected, will use @expo/cli to bundle.\n` ) ;
75
- // if using expo-router, use expo-cli
76
58
cliPath = require . resolve ( '@expo/cli' , {
77
59
paths : [ process . cwd ( ) ] ,
78
60
} ) ;
79
61
usingExpo = true ;
80
- } catch ( e ) { }
62
+ } catch ( e ) {
63
+ try {
64
+ // rn >= 0.75
65
+ cliPath = require . resolve ( '@react-native-community/cli/build/bin.js' , {
66
+ paths : [ process . cwd ( ) ] ,
67
+ } ) ;
68
+ } catch ( e ) {
69
+ // rn < 0.75
70
+ cliPath = require . resolve ( 'react-native/local-cli/cli.js' , {
71
+ paths : [ process . cwd ( ) ] ,
72
+ } ) ;
73
+ }
74
+ }
81
75
const bundleCommand = usingExpo ? 'export:embed' : 'bundle' ;
82
76
83
77
Array . prototype . push . apply ( reactNativeBundleArgs , [
You can’t perform that action at this time.
0 commit comments