@@ -42,7 +42,7 @@ export const init = new Command()
42
42
const { projectPath } = await prompts ( {
43
43
type : 'text' ,
44
44
name : 'projectPath' ,
45
- message : `What is the name of your project? (Include the path) ` ,
45
+ message : `Enter the project name or relative path (e.g., 'my-app' or './apps/my-app'): ` ,
46
46
initial : './starter-base' ,
47
47
} ) ;
48
48
@@ -89,11 +89,11 @@ export const init = new Command()
89
89
] ) ;
90
90
91
91
if ( packageManager !== 'none' ) {
92
- spinner . start ( ' Installing dependencies...' ) ;
92
+ spinner . start ( ` Installing dependencies using ${ packageManager } ...` ) ;
93
93
await execa ( packageManager , [ 'install' ] , {
94
94
cwd : fullProjectPath ,
95
95
} ) ;
96
- spinner . text = 'Verifying and updating any invalid package versions if needed ...' ;
96
+ spinner . text = 'Running expo doctor to fix package version conflicts ...' ;
97
97
await execa ( 'npx' , [ 'expo' , 'install' , '--fix' ] , {
98
98
cwd : fullProjectPath ,
99
99
} ) ;
@@ -110,9 +110,9 @@ export const init = new Command()
110
110
spinner . start ( 'Initializing Git repository...' ) ;
111
111
try {
112
112
execSync ( 'git init' , { stdio : 'inherit' , cwd : fullProjectPath } ) ;
113
- console . log ( 'Git repository initialized successfully.' ) ;
113
+ spinner . succeed ( 'Git repository initialized successfully.' ) ;
114
114
} catch ( error ) {
115
- console . error ( 'Failed to initialize Git repository:' , error ) ;
115
+ logger . error ( 'Failed to initialize Git repository:' , error ) ;
116
116
}
117
117
}
118
118
@@ -132,6 +132,9 @@ export const init = new Command()
132
132
console . log ( 'Install the dependencies manually using your package manager of choice.' ) ;
133
133
console . log ( 'Then run the dev script.' ) ;
134
134
}
135
+ console . log ( '\nAdditional resources:' ) ;
136
+ console . log ( '- Documentation: https://rnr-docs.vercel.app' ) ;
137
+ console . log ( '- Report issues: https://github.com/mrzachnugent/react-native-reusables/issues' ) ;
135
138
process . exit ( 0 ) ;
136
139
} catch ( error ) {
137
140
handleError ( error ) ;
0 commit comments