Zach
Zach2mo ago

Bun shell script best practices?

I've been using Bun and Repomix together — but didn't know if I'm approaching it the right way on Windmill? Here's some example code for how I've been calling the Repomix CLI from a Windmill Bun script: https://gist.github.com/zachwill/00c5bc674a4e20203358f0572fc556b1 My question: is this how you guys would approach it? Using /root/.bun/bin/repomix from the script?
Gist
Windmill Bun shell script for Repomix
Windmill Bun shell script for Repomix. GitHub Gist: instantly share code, notes, and snippets.
No description
3 Replies
Zach
ZachOP2w ago
Bumping this for visibility. I’ve stayed with this approach but not sure if it’s a best practice or not.
Zach
ZachOP2w ago
Good question, Hugo. In theory, yes — but it just hangs at “Collecting files” when I try to use it as a library. (Even when attempting to just write to ./shared rather than .) Works locally that way as a Bun script, but I’ve had a ton of trouble getting it to work as a library with Windmill. (That’s why my solution was as a shell script from inside Bun.)

Did you find this page helpful?