@@ -24,39 +24,39 @@ export async function getProjectPath(
2424 customDirectory : string | undefined ,
2525 yes : boolean ,
2626 forceName : boolean ,
27- ) : Promise < { projectPath : string ; createNewDir : boolean } > {
27+ ) : Promise < { projectPath : string ; shouldCreateNewDir : boolean } > {
2828 let projectName = name ;
2929 let projectPath : string ;
30- let createNewDir : boolean ;
30+ let shouldCreateNewDir : boolean ;
3131 if ( useCurrentDirectory ) {
3232 // The "--use-current-directory" command-line flag was specified, so there is no need to prompt
3333 // the user.
3434 projectName = CURRENT_DIRECTORY_NAME ;
3535 projectPath = CWD ;
36- createNewDir = false ;
36+ shouldCreateNewDir = false ;
3737 } else if ( projectName !== undefined ) {
3838 // The project name was specified on the command-line.
3939 const baseDirectory =
4040 customDirectory === undefined ? CWD : path . join ( CWD , customDirectory ) ;
4141 projectPath = path . join ( baseDirectory , projectName ) ;
42- createNewDir = true ;
42+ shouldCreateNewDir = true ;
4343 } else if ( yes ) {
4444 // The "--yes" command-line flag was specified and the project name was not specified on the
4545 // command-line, so default to using the current directory.
4646 projectName = CURRENT_DIRECTORY_NAME ;
4747 projectPath = CWD ;
48- createNewDir = false ;
48+ shouldCreateNewDir = false ;
4949 } else {
5050 // The project name was not specified on the command-line, so prompt the user for it.
51- [ projectName , projectPath , createNewDir ] = await getNewProjectName ( ) ;
51+ [ projectName , projectPath , shouldCreateNewDir ] = await getNewProjectName ( ) ;
5252 }
5353
5454 validateProjectName ( projectName , forceName ) ;
55-
5655 console . log ( `Using a project name of: ${ chalk . green ( projectName ) } ` ) ;
56+
5757 return {
5858 projectPath,
59- createNewDir ,
59+ shouldCreateNewDir ,
6060 } ;
6161}
6262
0 commit comments