Skip to content

fix(create-vite): change create-app prompt to not remove existing files by default#18710

Merged
sapphi-red merged 1 commit intovitejs:mainfrom
texuf:patch-1
Nov 21, 2024
Merged

fix(create-vite): change create-app prompt to not remove existing files by default#18710
sapphi-red merged 1 commit intovitejs:mainfrom
texuf:patch-1

Conversation

@texuf
Copy link
Copy Markdown
Contributor

@texuf texuf commented Nov 19, 2024

Description

If the create app script was run in a directory with files (say ~), the default option is to delete all files and install the app.

This seems like a dangerously destructive option to have as the default. I switched the default to be cancel.

This seems like a dangerously destructive option to have as the default. I switched the default to be cancel.
@texuf texuf changed the title Change create-app prompt to not remove existing files by default fix(create-app) Change create-app prompt to not remove existing files by default Nov 20, 2024
@texuf texuf changed the title fix(create-app) Change create-app prompt to not remove existing files by default fix(create-vite): Change create-app prompt to not remove existing files by default Nov 20, 2024
@texuf texuf changed the title fix(create-vite): Change create-app prompt to not remove existing files by default fix: Change create-app prompt to not remove existing files by default Nov 20, 2024
@texuf texuf changed the title fix: Change create-app prompt to not remove existing files by default fix(create-vite): change create-app prompt to not remove existing files by default Nov 20, 2024
@sapphi-red sapphi-red added p2-edge-case Bug, but has workaround or limited in scope (priority) feat: create-vite create-vite package labels Nov 21, 2024
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thanks!

@sapphi-red sapphi-red merged commit c2b7529 into vitejs:main Nov 21, 2024
moonlitusun pushed a commit to moonlitusun/vite that referenced this pull request May 25, 2025
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