-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Allow initializing non-empty directory #12958
Comments
Isolated irrelevant will not be processed by Vite. Could you provide a repro to demonstrate your issue? |
Hello @Kinrany. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
A repo with an empty file named |
made a repro https://stackblitz.com/edit/vitejs-vite-x2aaj6?file=shell.nix&terminal=dev and didn't see anything wrong. Could you describe it in more detail? |
Sorry, I did miss a part. Initialization is not done by Vite itself. From Getting Started > Scaffolding Your First Vite Project:
So here's what it looks like when the directory is completely empty (no
We chose The suggestion is to add "ignore existing files and continue" as the third option. |
+1 to this. I have a build system that wraps around NPM where I need to have a specified build file. From that build file, I have my npm config which allows me to run commands like |
Description
When Vite finds files in the current directory, it offers no option to ignore existing files even when they are completely irrelevant, like a
shell.nix
file used to install Node.Suggested solution
There should be an extra option: to keep the files and continue anyway.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: