We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do you want to request a feature or report a bug?
bug
What is the current behavior? Prepare a package.json
package.json
{ "dependencies": { "request": "^2.81.0" }, "devDependencies": { "co": "^4.6.0" } }
Run NODE_ENV=production yarn install
NODE_ENV=production yarn install
Expect co still install as dependency of request, but not
co
request
If the current behavior is a bug, please provide the steps to reproduce.
node
require('request')
What is the expected behavior?
I install via NODE_ENV=production npm install
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
NODE_ENV
If duplicated, close this
Thanks you for reading
The text was updated successfully, but these errors were encountered:
This is actually a FEATURE™ not a bug, read here. But I was preparing to file same issue like you, @mark86092 bro. This is clearly over designed.
Please, yarn team, consider remove this feature, just keep the --prod flag that's enough.
--prod
Sorry, something went wrong.
Can you try with 0.23.1? see #2921
0.23.1
Great, thanks @vizath
No branches or pull requests
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Prepare a
package.json
Run
NODE_ENV=production yarn install
Expect
co
still install as dependency ofrequest
, but notIf the current behavior is a bug, please provide the steps to reproduce.
NODE_ENV=production yarn install
node
, andrequire('request')
failsWhat is the expected behavior?
I install via
NODE_ENV=production npm install
Run 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_ENV
or not, but the current behavior forces me to move theco
to my production dependenciesIf duplicated, close this
Thanks you for reading
The text was updated successfully, but these errors were encountered: