ICMYI: Pulumi now supports Bun as a package manage...
# announcements
d
ICMYI: Pulumi now supports Bun as a package manager, making dependency installs up to 25× faster than npm, Yarn, or pnpm. The blog walks through starting fresh with Bun or migrating an existing project, plus using it in CI/CD. Check it out here → https://www.pulumi.com/blog/bun-package-manager/ What do you think, will you try Bun for your Pulumi projects?
🔥 7
🎉 2
If you have questions about Pulumi + Bun, tag @brave-planet-10645 🙂
l
I am immediately cancelling all other work and switching. TYVM!
😆 1
💯 1
c
Amazing - any chance this means
deno
will also be supported in the near future?
⬆️ 1
l
Any idea if bun as a runtime works as well? I'd like to drop mocha and chai-as-promised and switch to a test runner that natively supports promises.
How about I just try it and report back 🙂
Update for interested parties: switching to bun for package management and for running our mocha tests has been easy, just a couple of command line options for bun required to make workspaces + test output compatible with CI.
b
Unfortunately you can't use Bun as a runtime yet. But really glad you found it easy to move 🎉
😍 1
a test runner that natively supports promises
can you not use Jest? Doesn't that support promises out of the box?
l
I prefer.
bun test
. Mocha was left over from a previous generation; it is serving us well. What's not.working with bun as a runtime? I didn't have time to play with my nodeargs earlier, but I might try tomorrow.
b
That's really a question for @echoing-dinner-19531 rather than me
I'm sure there used to be a way you could run Bun in a "more nodejs" mode (they added it for while their compatibility wasn't quite there but i don't know if they've removed it)
e
Full runtime support for bun is tracked at https://github.com/pulumi/pulumi/issues/13904 The main difference currently is that none of the function serialisation stuff works because it depends on the v8 debugger apis. There's a couple of other issues but if we were happy to do "bun but function serialisation just errors" we could probably get that running shortly.
l
Ah. Well we have dropped all function serialization from our Pulumi code, and build our functions ourselves. So if that's the main problem, we might be ok to try it.