Skip to content

feat(create-vite): validate project name#20257

Merged
sapphi-red merged 1 commit intovitejs:mainfrom
btea:feat/create-vue-add-validate
Jun 23, 2025
Merged

feat(create-vite): validate project name#20257
sapphi-red merged 1 commit intovitejs:mainfrom
btea:feat/create-vue-add-validate

Conversation

@btea
Copy link
Copy Markdown
Contributor

@btea btea commented Jun 20, 2025

Description

When you enter a project name with a string of spaces in the terminal, the terminal prints nothing. The actual name you use is defaultTargetDir, which seems inconsistent with the context. So, add a validate function to check for inappropriate names in advance.

Copy link
Copy Markdown
Member

@patak-cat patak-cat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this works better!

@sapphi-red sapphi-red added p2-edge-case Bug, but has workaround or limited in scope (priority) feat: create-vite create-vite package labels Jun 23, 2025
@sapphi-red sapphi-red merged commit 17700b7 into vitejs:main Jun 23, 2025
18 checks passed
@btea btea deleted the feat/create-vue-add-validate branch June 23, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: create-vite create-vite package p2-edge-case Bug, but has workaround or limited in scope (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants