Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

btea
Copy link
Collaborator

@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
Member

@patak-dev patak-dev 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