vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.25k stars 1.81k forks source link

Docs: bun package manager #7923

Open huilensolis opened 6 months ago

huilensolis commented 6 months ago

What is the improvement or update you wish to see?

I would like to see bun in the installation documentation. Also, I would like it if there were references to Bun because if I hadn't seen a Twitter tweet about Bun support, I would not know if it was compatible.

Is there any context that might help us understand?

.

Does the docs page already exist? Please link to it.

No response

anthonyshew commented 5 months ago

Bun's current workspace support is somewhat buggy, and we're reflecting that in our Support Policy as Beta support. Notably, the Bun team is focusing some effort there to get that support improved.

It's more likely that we would be able to add Bun to the docs code block tabs once Bun's Workspace support work is completed.

net-tech commented 2 months ago

Bun's current workspace support is somewhat buggy, and we're reflecting that in our Support Policy as Beta support. Notably, the Bun team is focusing some effort there to get that support improved.

It's more likely that we would be able to add Bun to the docs code block tabs once Bun's Workspace support work is completed.

While I understand this it makes the fact that turbo supports bun basically useless, since there is no documentation on how to set it up.

anthonyshew commented 2 months ago

What setup instructions are you looking for? The interactions between Bun compared to the other package managers should be generally the same.

You'll need to head into the Bun documentation to sort out a few of the flag combinations to re-create the ones that you see for the other package managers. Other than that, I'm not sure what would be different.

net-tech commented 2 months ago

What setup instructions are you looking for? The interactions between Bun compared to the other package managers should be generally the same.

You'll need to head into the Bun documentation to sort out a few of the flag combinations to re-create the ones that you see for the other package managers. Other than that, I'm not sure what would be different.

It actually seems to work by just replacing the package manager I use in my scripts, which I was not expecting. I did want to ask however: What is the recommended approach for watch? Do I use Bun's watch or turbos?

anthonyshew commented 2 months ago

I'm not sure what comes with Bun's watch functionality but turbo's is able to track changes across packages in the workspace. If it doesn't look like Bun is watching what you're expecting, I'd give turbo watch a try.

https://turbo.build/repo/docs/reference/watch