Skip to content

Conversation

@mrswats
Copy link

@mrswats mrswats commented Feb 16, 2025

This PR implements bun as a new language.

Closes #3089

@mrswats
Copy link
Author

mrswats commented Feb 16, 2025

Still a WIP. Working on the tests. I pushed before realizing I was missing a couple of things.

@mrswats
Copy link
Author

mrswats commented Feb 19, 2025

Okay, I need some help. I am not sure what tests to write because I feel like node and npm are a bit quirky and some of the tests are meant to reflect that but with bun I am not super sure what to do.

One thing I noticed is that I do not know how to run binary executables defined in packages.json. The docs say you need to run bun x but I think this is not for a local repo but rather a remote repo.

So I am a bit lost, here and any help would be very appreciated.

@asottile
Copy link
Member

yeah admittedly I'm not super familiar with how bun works but I'm pretty sure as written this won't work generally

somehow need to have bun install the dependencies into the bun_env directory and then execute from there. I'm not sure (?) if there needs to be nodeenv involved (since I thought bun was its own node executable?) -- and I'm even less familiar with executing things with bun

@mrswats
Copy link
Author

mrswats commented Sep 6, 2025

Afaik, bun does not yet support all the commands npm uses to install stuff so I will close this for now.

@mrswats mrswats closed this Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Allow using bun instead of node

2 participants