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

yarn --production install devDependencies of dependencies #3525

Closed
taylor1791 opened this issue May 29, 2017 · 2 comments
Closed

yarn --production install devDependencies of dependencies #3525

taylor1791 opened this issue May 29, 2017 · 2 comments

Comments

@taylor1791
Copy link

Current Behavior
When a dependency has devDependencies, those devDependencies are installed when using yarn --production.

Expected Behavior
When a dependency has devDependencies, those devDependencies are not installed when using yarn --production.

System Information
$ yarn --version
0.24.6
$ node --version
v7.8.0

I can reproduce this on both macOS Sierra and Ubuntu

Steps to Reproduce

  1. Use the package.json below
  2. yarn --production
  3. node_modules/react should not exist, but it does.
  4. Running npm prune --production removes node_modules/react
$ npm prune --production
- [email protected] node_modules/react

package.json

{
  "devDependencies": {
    "react": "^15.5.4"
  },
  "peerDependencies": {
    "react": "^15.5.4"
  },
  "dependencies": {
    "react-select": "^1.0.0-rc.5"
  }
}

Notice that react-select has a devDependency (and peerDependency) of react.

yarn.lock
https://pastebin.com/VuQh3ZYB

@pichouk
Copy link
Contributor

pichouk commented May 31, 2017

Duplicate #3312

@pichouk
Copy link
Contributor

pichouk commented Jun 21, 2017

@bestander said in #3577 that it was fix in master, so I guess it can be close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants