Open joas8211 opened 3 months ago
You need to use this syntax: bun --config="bunfig.toml"
, otherwise the last arg is interpreted as the entrypoint.
can confirm that if I specify --config=bunfig.toml
then the issue in https://github.com/oven-sh/bun/issues/11445 resolves itself (bun = true
in the [run]
section works). So the default behavior of using bunfig.toml
I guess just doesn't work right now.
What version of Bun is running?
1.1.21+70ca2b76c
What platform is your computer?
Linux 6.6.40-2-lts x86_64 unknown
What steps can reproduce the bug?
bun --config bunfig.toml
What is the expected behavior?
I'm expected to see list of possible commands outputted like when
--config
is not specified. Like so:What do you see instead?
Additional information
I suspect this is the reason why project configuration options from bunfig.toml don't apply also when
--config
is not specified, like in these issues: #12990, #11445Issue #12753 suggests also that some validation is happening before not found error is outputted.
Following issue could also be related to this: #12987.