Bootstrapping a Runtime using Bun #18439
chase
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bun is great for many reasons, but one reason I decided to use it for my project is that it's entirely self-contained as a single binary.
In my hobby project awrit it installs all dependencies by using
bun
ifnode_modules
doesn't exist: https://github.com/chase/awrit/blob/electron/awrit#L17-L20If there's no runtime in the project's directory, it pulls the latest version of
bun
here and then kicks off an install from there:https://github.com/chase/awrit/blob/electron/setup.sh#L10-L87
This allows users that have no experience with Node simply run my project without any install step. It's really helped a lot with adoption.
Just thought it was an interesting, although admittedly odd, use case 🙂
Beta Was this translation helpful? Give feedback.
All reactions