oven-sh/bun

`bun build --compile` leads to `.bun-build` workspace clutter

Open

#14,020 建立於 2024年9月18日

在 GitHub 查看
 (9 留言) (11 反應) (0 負責人)Rust (4,486 fork)batch import
bugbundlergood first issue

倉庫指標

Star
 (90,348 star)
PR 合併指標
 (平均合併 1天 7小時) (30 天內合併 317 個 PR)

描述

What version of Bun is running?

1.1.28+cf4e9cb69

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

It seems calling bun bulld --compile on any valid file will do, but for example:

echo 'console.log("Hi!")' >> main.js
bun build main.js --compile

Now, you will see the following files in your directory:

.17f66bb7eff7fbbd-00000000.bun-build # for example
main
main.js

.17f66bb7eff7fbbd-00000000.bun-build seems to be a temp file or build artifact of some kind. I don't know what it is. Deleting it has no bearing on soundness of the final binary, main.

What is the expected behavior?

No .bun-build files left behind in my workspace that I need to deal with.

What do you see instead?

A burgeoning pile of .bun-build files in my workspace.

I have to remove them constantly

So I'll keep a post-build script that deletes these as they pile up.

find . -maxdepth 1 -type f -name '*.bun-build' -exec rm -v {} \;

I kept accidentally checking them in

So I need to keep a pattern for them in my .gitignore

*.bun-build

Additional information

No response

貢獻者指南