You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like using path.join and ./, the root would be something like /foo/bar/my-project/ (with a trailing slash), while using path.resolve doesn't have the trailing slash.
Feel free to test it out and make a PR though. I think this is a minor bug.
Olyno
added a commit
to Olyno/vite
that referenced
this issue
Feb 13, 2022
Describe the bug
Hi team, when I create a vite project inside a folder and input project name with current directory
./
.I got prompts after scaffolding project as below:
I checked packages/create-vite and found the reason at line 266:
I think the condition here needs to be:
In this way, when typing
./
is still make sense. If this is a bug, I can raise a PR to fix it.Reproduction
https://telegra.ph/create-vite-issue-of-prompts-after-scaffolding-project-02-13
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: