on Windows, path returned by process.cwd()
breaks the path parser
#302
Labels
🐞 confirmed bug
Something isn't working
process.cwd()
breaks the path parser
#302
Describe the bug
create-t3-app/src/utils/parseNameAndPath.ts
Lines 16 to 19 in f060d59
On windows, process.cwd() returns something like:

D:\\path\\to\\project
, which breaks the above code since it uses\\
instead of/
to separate efferent segments of path.Consequently, project generated by
create t3 app
will use an invalid app name:Steps To Reproduce
npx create-t3-app .
package.json
Possible Solution
Use nodejs's builtin path module to parse the path returned by process.cwd():
The text was updated successfully, but these errors were encountered: