-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support initializing with Bun #1366
Comments
Until now our approach has been mostly about consistency. If you run the cli with pnpm, we assume you also want to use that as your package manager, and run your app with it. Same for npm and yarn. Bun cannot currently be used as an end to end solution. You can use it to init and install dependencies, but as far as I can tell if you try to run the dev server with it, it will start it but fail to serve requests correctly. I can see why people would want to use it as their init tool / package manager, but we also have to be careful about being clear that you can't run your app with it after you're done bootstrapping. Sorry for the vague answer, I don't have a well defined opinion on this, let's see what others think :) |
Yes you can't use custom But it's the same as with Also using tools like ni the TLDR; While Bun has a WIP dev server it can be used exactly as pnpm
|
One of the other reasons why you cannot run t3-app with |
I know prisma doesn't work / also next itself has a fork with a subset of features that works under bun, but that's what this issue / PR are about Bun isn't just a https://bun.sh/docs/cli/install |
Provide environment information
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1
Memory: 102.36 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.18.0 - ~/Library/Caches/fnm_multishells/78864_1681854261277/bin/node
npm: 8.19.2 - ~/Library/Caches/fnm_multishells/78864_1681854261277/bin/npm
Watchman: 2023.01.02.00 - /opt/homebrew/bin/watchman
Describe the bug
If running create-t3-app with bunx it defaults to installing depends with
npm
rather thanbun install
To reproduce
bunx create-t3-app
Should prompt for "install depends with bun" instead of npm
Additional information
I have a patch ready if you're ok with this change, the performance diff is massive...
The text was updated successfully, but these errors were encountered: