Do you want to request a feature or report a bug?
bug
What is the current behavior?
Prepare a package.json
{
"dependencies": {
"request": "^2.81.0"
},
"devDependencies": {
"co": "^4.6.0"
}
}
Run NODE_ENV=production yarn install
Expect co still install as dependency of request, but not

If the current behavior is a bug, please provide the steps to reproduce.
- Prepare package.json in your folder (only this file)
{
"dependencies": {
"request": "^2.81.0"
},
"devDependencies": {
"co": "^4.6.0"
}
}

- Run
NODE_ENV=production yarn install

- Run a
node, and require('request') fails

What is the expected behavior?
I install via NODE_ENV=production npm install

Run a node, and require('request') works

Please mention your node.js, yarn and operating system version.
node: v7.8.0
yarn: 0.22.0
os: mac
and tested on
node: v6.10.0
yarn: 0.21.3
os: linux ubuntu 16.04.2
tested on docker, too

other information

I'm not sure whether I misunderstand NODE_ENV or not, but the current behavior forces me to move the co to my production dependencies
If duplicated, close this
Thanks you for reading
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Prepare a
package.jsonRun
NODE_ENV=production yarn installExpect
costill install as dependency ofrequest, but notIf the current behavior is a bug, please provide the steps to reproduce.
NODE_ENV=production yarn installnode, andrequire('request')failsWhat is the expected behavior?
I install via
NODE_ENV=production npm installRun a
node, andrequire('request')worksPlease mention your node.js, yarn and operating system version.
node: v7.8.0
yarn: 0.22.0
os: mac
and tested on
node: v6.10.0
yarn: 0.21.3
os: linux ubuntu 16.04.2
tested on docker, too
other information
I'm not sure whether I misunderstand
NODE_ENVor not, but the current behavior forces me to move thecoto my production dependenciesIf duplicated, close this
Thanks you for reading