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

Run bun add -d <pkg> to move an existing dep to devDependencies #5714

Open
jasongitmail opened this issue Sep 19, 2023 · 0 comments
Open

Run bun add -d <pkg> to move an existing dep to devDependencies #5714

jasongitmail opened this issue Sep 19, 2023 · 0 comments
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request

Comments

@jasongitmail
Copy link

jasongitmail commented Sep 19, 2023

What is the problem this feature would solve?

It's common to forget the -d flag when installing a package.
It'd be nice to simply run bun add -d <pkg> to move it into devDependecies, like npm does. But Bun requires removing the package and adding it again using the desired flag.

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

If a package is already installed as a non-dev dependency, running bun add -d <pkg> would move it in package.json into devDependencies.

What alternatives have you considered?

bun remove <pkg> && bun add -d <pkg>

@jasongitmail jasongitmail added the enhancement New feature or request label Sep 19, 2023
@Electroid Electroid added the bun install Something that relates to the npm-compatible client label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants