@@ -43,7 +43,7 @@ export const init = new Command()
43
43
type : 'text' ,
44
44
name : 'projectPath' ,
45
45
message : `Enter the project name or relative path (e.g., 'my-app' or './apps/my-app'):` ,
46
- initial : './starter-base ' ,
46
+ initial : './my-app ' ,
47
47
} ) ;
48
48
49
49
const { packageManager } = await prompts ( {
@@ -89,11 +89,13 @@ export const init = new Command()
89
89
] ) ;
90
90
91
91
if ( packageManager !== 'none' ) {
92
- spinner . start ( `Installing dependencies using ${ packageManager } ...` ) ;
92
+ spinner . start (
93
+ `Installing dependencies using ${ packageManager } (this may take a few minutes)...`
94
+ ) ;
93
95
await execa ( packageManager , [ 'install' ] , {
94
96
cwd : fullProjectPath ,
95
97
} ) ;
96
- spinner . text = 'Running expo doctor to fix package version conflicts ...' ;
98
+ spinner . text = 'Running expo doctor to ensure package compatibility ...' ;
97
99
await execa ( 'npx' , [ 'expo' , 'install' , '--fix' ] , {
98
100
cwd : fullProjectPath ,
99
101
} ) ;
@@ -110,6 +112,13 @@ export const init = new Command()
110
112
spinner . start ( 'Initializing Git repository...' ) ;
111
113
try {
112
114
execSync ( 'git init' , { stdio : 'inherit' , cwd : fullProjectPath } ) ;
115
+
116
+ execSync ( 'git add -A' , { stdio : 'inherit' , cwd : fullProjectPath } ) ;
117
+ execSync ( 'git commit -m "initialize project with @react-native-reusables/cli"' , {
118
+ stdio : 'inherit' ,
119
+ cwd : fullProjectPath ,
120
+ } ) ;
121
+
113
122
spinner . succeed ( 'Git repository initialized successfully.' ) ;
114
123
} catch ( error ) {
115
124
logger . error ( 'Failed to initialize Git repository:' , error ) ;
0 commit comments