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
{{ message }}
Repository navigation
When I create a new app in the current directory, the name in package.json is "." and not the name of the directory #157
When I type bun create tsrouter-app . in an empty directory, the name field in package.json of the generated app is set to ".". It should be set to the name of the directory instead.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
create an empty folder
run bun create tsrouter-app . in that folder
check the package.json
Expected behavior
I expect the name in package.json to be the name of the directory. This is how it works with most other project scaffolding clis (i tested sveltekit cli and create-next-app)
Activity
jherr commentedon Aug 24, 2025
bun create tsrouter-app .should just be an error because.is not a valid package name. The argument is a package name and not a path.egvr2002 commentedon Nov 6, 2025
So the fix would consist of throwing an error when the package name is
.?jherr commentedon Nov 6, 2025
The fix is to not allow invalid package names and "." is an invalid package name.