@@ -62,48 +62,21 @@ publish it there. See this StackOverflow question for more information:
6262 // update app.json file with new contents
6363 await fse . writeFile ( appJsonPath , JSON . stringify ( appJson , null , 2 ) ) ;
6464
65- await Detach . detachAsync ( process . cwd ( ) ) ;
66- // yesno lib doesn't properly shut down. without this the command won't exit
67- process . stdin . pause ( ) ;
68-
6965 const pkgJson = JSON . parse ( ( await fse . readFile ( path . resolve ( 'package.json' ) ) ) . toString ( ) ) ;
70-
7166 pkgJson . main = 'node_modules/expo/AppEntry.js' ;
72-
7367 delete pkgJson . devDependencies [ 'react-native-scripts' ] ;
7468 delete pkgJson . scripts . start ;
7569 delete pkgJson . scripts . build ;
7670 delete pkgJson . scripts . eject ;
7771 delete pkgJson . scripts . android ;
7872 delete pkgJson . scripts . ios ;
79-
80- const versions = await Versions . versionsAsync ( ) ;
81- const sdkTag = versions . sdkVersions [ appJson . expo . sdkVersion ] . expoReactNativeTag ;
82-
8373 await fse . writeFile ( 'package.json' , JSON . stringify ( pkgJson , null , 2 ) ) ;
8474
85- console . log ( 'Installing the Expo fork of react-native...' ) ;
86- const reactNativeVersion = `https://github.com/expo/react-native/archive/${ sdkTag } .tar.gz` ;
87- const {
88- code,
89- } = await install ( process . cwd ( ) , 'react-native' , reactNativeVersion , {
90- silent : true ,
91- } ) ;
92-
93- if ( code === 0 ) {
94- console . log ( `${ chalk . green ( 'Successfully set up ExpoKit!' ) } ` ) ;
95- } else {
96- console . warn (
97- `
98- ${ chalk . yellow ( 'Unable to install the Expo fork of react-native.' ) }
99- ${ chalk . yellow ( `Please install react-native@${ reactNativeVersion } before continuing.` ) }
100- `
101- ) ;
102- }
75+ await Detach . detachAsync ( process . cwd ( ) ) ;
10376
10477 console . log (
10578 `
106- You'll need to use Expo's XDE to run this project:
79+ You'll need to use Expo's XDE or exp to run this project:
10780 ${ chalk . cyan ( 'https://docs.expo.io/versions/latest/introduction/installation.html' ) }
10881
10982 For further instructions, please read ExpoKit's build documentation:
0 commit comments