bun install --production
enforce more settings than the docs state
#10949
Labels
bug
Something isn't working
What version of Bun is running?
1.1.7
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
This is part of the stuff I'm doing to build a production Docker image for my app
What is the expected behavior?
According to docs it should just
To install in production mode (i.e. without devDependencies or optionalDependencies):
, but in reality it enforces frozen lockfile and some more undocumented stuffbun/src/install/install.zig
Lines 6056 to 6063 in 50fd2b0
What do you see instead?
Additional information
For me, the best option would be to just have
bun install prune
that will simply remove thedevDependecies
, without a need to reinstall anything. But at least describing what--production
does and having some option to not install devDeps would do too.The text was updated successfully, but these errors were encountered: