File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,23 @@ const isYarnAvailable = () => {
17
17
}
18
18
}
19
19
20
- console . log ( '🔄 Please wait...' ) ;
20
+ console . log ( '\n 🔄 Please wait...\n ' ) ;
21
21
22
22
packageJson . scripts . start = `${ packageJson . scripts . start } --config ../../../../rn-cli.config.js` ;
23
23
packageJson . jest = Object . assign ( packageJson . jest , jestJson ) ;
24
24
writeFile ( 'package.json' , JSON . stringify ( packageJson , null , 2 ) ) ;
25
25
26
- const logInstallingWith = pkg => console . log ( `📦 Installing dependencies with ${ pkg } ...` ) ;
26
+ const logInstallingWith = pkg => console . log ( `\n📦 Installing dependencies with ${ pkg } ...\n` ) ;
27
+ const execOptions = {
28
+ stdio : 'inherit'
29
+ }
30
+
27
31
if ( isYarnAvailable ) {
28
32
logInstallingWith ( "yarn" ) ;
29
- execSync ( `yarn add ${ devDependencies . join ( ' ' ) } --dev --exact` ) ;
33
+ execSync ( `yarn add ${ devDependencies . join ( ' ' ) } --dev --exact` , execOptions ) ;
30
34
} else {
31
35
logInstallingWith ( "npm" ) ;
32
- execSync ( `npm i ${ devDependencies . join ( ' ' ) } --save-dev --save-exact` ) ;
36
+ execSync ( `npm i ${ devDependencies . join ( ' ' ) } --save-dev --save-exact` , execOptions ) ;
33
37
}
34
38
35
39
deleteFile ( 'App.js' ) ;
@@ -41,4 +45,4 @@ deleteFile('README.md');
41
45
deleteFile ( 'LICENSE' ) ;
42
46
deleteFile ( 'setup.js' ) ;
43
47
44
- console . log ( `✅ Setup completed! You can now start with: ${ isYarnAvailable ? "yarn" : "npm" } start` ) ;
48
+ console . log ( `\n ✅ Setup completed! You can now start with: ${ isYarnAvailable ? "yarn" : "npm" } start\n ` ) ;
You can’t perform that action at this time.
0 commit comments