-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Description:
When the CLI prompts for a project name, entering . should automatically use the name of the current directory as the project name.
This behavior would be consistent with common CLI conventions and improve usability when initializing projects inside an existing folder.
Current Behavior:
- Entering
.is rejected with "Project names can't start with a period"
Expected Behavior:
-
If the user enters
.:- The CLI resolves it to the current directory name.
- Uses that directory name as the project name.
Example:
/path/to/my-project
$ bun create tui
? Project name: .Should result in:
Project name = my-project
Benefits:
- Faster workflow when working inside existing directories
- Matches behavior of tools like
gitandnpm - Reduces friction and accidental misnaming
Metadata
Metadata
Assignees
Labels
No labels