Skip to content

Commit

Permalink
fix: a project name bug (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Oct 15, 2023
1 parent a7e7dad commit 4657ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ async function main() {
let projectName = ''
if (args._[0]) {
target = args._[0].toString()
projectName = target
console.log(`${bold(`${green(`✔`)} Using target directory`)}${target}`)
projectName = path.basename(target)
} else {
const answer = await prompts({
type: 'text',
Expand Down

0 comments on commit 4657ad1

Please sign in to comment.