Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun install --production "prunes" existing node_modules, if already exists #11091

Open
kevin-lindsay-1 opened this issue May 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kevin-lindsay-1
Copy link

What is the problem this feature would solve?

This feature would be very useful in CI, which would allow me to create a stage in the dockerfile where I can install the production dependencies, and then copy them into the final build, without having to redownload everything

What is the feature you are proposing to solve the problem?

Ideally? Just make bun install --production's resulting node_modules files only contain the production dependencies.

It seems that right now, if you install the production dependencies, but you already have the dev dependencies, it results in no change, which is a little unintuitive in my opinion.

What alternatives have you considered?

A separate flag that allows you to "prune" node_modules down to only the production deps.

@kevin-lindsay-1 kevin-lindsay-1 added the enhancement New feature or request label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant