Skip to content

Commit bf477bc

Browse files
committed
sort imports
1 parent 2e73a1c commit bf477bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cta-cli/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
getProjectName,
1414
promptForAddOnOptions,
1515
selectAddOns,
16-
selectGit,
1716
selectDeployment,
17+
selectGit,
1818
selectPackageManager,
1919
selectRouterType,
2020
selectTailwind,
@@ -43,7 +43,6 @@ export async function promptForCreateOptions(
4343

4444
options.framework = getFrameworkById(cliOptions.framework || 'react-cra')!
4545

46-
options.projectName = cliOptions.projectName || (await getProjectName())
4746
// Validate project name
4847
if (cliOptions.projectName) {
4948
const { valid, error } = validateProjectName(cliOptions.projectName)
@@ -55,6 +54,7 @@ export async function promptForCreateOptions(
5554
} else {
5655
options.projectName = await getProjectName()
5756
}
57+
5858
// Check if target directory is empty
5959
if (
6060
!cliOptions.force &&

0 commit comments

Comments
 (0)