Skip to content

Commit

Permalink
chore(create-vite): add current directory description
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 8, 2022
1 parent 408e5a7 commit 5404e07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/create-vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import prompts from 'prompts'
import {
blue,
cyan,
gray,
green,
lightRed,
magenta,
Expand Down Expand Up @@ -145,7 +146,9 @@ async function init() {
{
type: targetDir ? null : 'text',
name: 'projectName',
message: reset('Project name:'),
message: `${reset('Project name')}${gray(
' (Use . for the current directory)'
)}${reset(':')}`,
initial: defaultProjectName,
onState: (state) =>
(targetDir =
Expand Down

0 comments on commit 5404e07

Please sign in to comment.