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? yarn audit --json doesn’t calculate devDependencies. As a result “dev” objects are always false for any dependency.
yarn audit --json
“dev”
false
If the current behavior is a bug, please provide the steps to reproduce.
{ "name": "yarn-audit-bug", "version": "0.1.0", "description": "Yarn audit bug", "devDependencies": { "lodash": "1.2.0" }, "dependencies": { "hawk": "2.0.0" }, "engines": { "yarn": ">= 1.0.0" } }
yarn install
"devDependencies"
"auditSummary"
0
lodash
What is the expected behavior? "devDependencies" object must be equal to 1 and “dev” object for lodash advisories must be true. npm audit --json works correctly in this case. result: https://gist.github.com/ar1em/1d008dc1c6cdae8bd30e85965bd91e81
true
npm audit --json
Please mention your node.js, yarn and operating system version. node version v10.15.3 yarn version v1.16.0 Mac OS X version v10.14.4
yarn audit --verbose https://gist.github.com/ar1em/29b00d6bed7d45890b4e420cc3af439c
yarn audit --verbose
The text was updated successfully, but these errors were encountered:
Duplicate #6970
Sorry, something went wrong.
No branches or pull requests
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
yarn audit --json
doesn’t calculate devDependencies. As a result“dev”
objects are alwaysfalse
for any dependency.If the current behavior is a bug, please provide the steps to reproduce.
{ "name": "yarn-audit-bug", "version": "0.1.0", "description": "Yarn audit bug", "devDependencies": { "lodash": "1.2.0" }, "dependencies": { "hawk": "2.0.0" }, "engines": { "yarn": ">= 1.0.0" } }
yarn install
yarn audit --json
result: https://gist.github.com/ar1em/94a71b68492162020af24c166cf0d9c4
"devDependencies"
object in"auditSummary"
equals0
and“dev”
objects inlodash
advisories equalsfalse
What is the expected behavior?
"devDependencies"
object must be equal to 1 and“dev”
object forlodash
advisories must betrue
.npm audit --json
works correctly in this case.result: https://gist.github.com/ar1em/1d008dc1c6cdae8bd30e85965bd91e81
Please mention your node.js, yarn and operating system version.
node version v10.15.3
yarn version v1.16.0
Mac OS X version v10.14.4
yarn audit --verbose
https://gist.github.com/ar1em/29b00d6bed7d45890b4e420cc3af439c
The text was updated successfully, but these errors were encountered: