oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.21k stars 2.77k forks source link

bunfig's [run] section not working #11445

Open maranomynet opened 5 months ago

maranomynet commented 5 months ago

What version of Bun is running?

1.1.10

What platform is your computer?

Darwin 23.1.0 arm64 arm

What steps can reproduce the bug?

bunfig.toml:

[run]
silent = true

Run command

$ bun run dev

What is the expected behavior?

bun run dev should not print the command being run, as explained in https://bun.sh/docs/runtime/bunfig#bun-run

I should only see the info logged/emitted by the dev script itself — same as if I do bun run --silent dev

What do you see instead?

$ next dev
  ...dev server output...

Additional information

Using the bun setting doesn't work either.

[run]
bun = true

(This is the setting I'm most interested in.)

maranomynet commented 4 months ago

This still remains an issue in bun v1.1.17

ptrxyz commented 3 months ago

This seems to still be broken in 1.1.20

fdruzhinin commented 3 months ago

Exact the same problem is actual and for me. bun 1.1.20 (node 22.5.1) but OS is Windows 23H2. Btw, the way used to install the bun doesn't affects the bug, I checked installation using PowerShell and Winget

Dropheart commented 2 months ago

Still an issue in 1.1.27.

osdiab commented 1 week ago

as mentioned here: https://github.com/oven-sh/bun/issues/13070#issuecomment-2453411279

if you specify --config=bunfig.toml when running bun then it actually does seem to work, so it looks like it's just not picking up the bunfig.toml file properly for some reason.