Files
bun.sh/src
Claude Bot b4493db088 Add interactive prompt for bun init in non-empty directories
When running `bun init` in a non-empty directory in TTY mode, users are now presented with an interactive prompt asking whether to:
1. Create in a new subdirectory (default)
2. Use the current directory (may overwrite files)
3. Cancel

This prevents accidental file creation in wrong directories and provides a better UX, similar to tools like `create-next-app`.

The prompt is only shown when:
- No folder was explicitly specified as an argument
- stdin is a TTY (not piped input)
- Not using auto-yes flags (-y, --react, etc.)
- The directory is not empty (ignores .DS_Store and Thumbs.db)

Fixes #24555

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 03:40:24 +00:00
..
2025-10-16 21:52:22 -04:00
2025-07-21 13:26:47 -07:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-10-23 17:52:13 -07:00
2025-09-11 23:29:53 -07:00
2025-10-25 00:05:28 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00