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 --dev doesn't change dependency type of preexisting dependency #4852

Open
Eric-Tyrrell22 opened this issue Sep 10, 2023 · 0 comments
Labels
bug Something isn't working npm Something that relates to the npm-compatible client

Comments

@Eric-Tyrrell22
Copy link

Eric-Tyrrell22 commented Sep 10, 2023

What version of Bun is running?

1.0.0

What platform is your computer?

Linux 6.2.0-32-generic x86_64 x86_64

What steps can reproduce the bug?

bun install eslint --dev doesn't change dependency type to dev for preexisting dependencies

bun install eslint
cat package.json
bun install eslint --dev
cat package.json

What is the expected behavior?

{
  "devDependencies": {
    "bun-types": "latest",
    "eslint": "^8.49.0"
  },
  "peerDependencies": {
    "typescript": "^5.0.0"
  }
}

What do you see instead?

{
  "devDependencies": {
    "bun-types": "latest"
  },
  "peerDependencies": {
    "typescript": "^5.0.0"
  },
  "dependencies": {
    "eslint": "^8.49.0"
  }
}

Additional information

No response

@Eric-Tyrrell22 Eric-Tyrrell22 added the bug Something isn't working label Sep 10, 2023
@Electroid Electroid added the npm Something that relates to the npm-compatible client label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

2 participants