-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make "yarn outdated" exit with a non-zero exit code when there are outdated dependencies #3483
Comments
Sounds reasonable, send a PR |
I think it unreasonable.... same with spawn('yarn', ['outdated']).on('close', (code) => {
if (code > 0) {
reject();
} else {
resolve();
}
} |
I agreed with the previous comment because having outdated library can be just normal. |
Replied in #7573, let me copy in here too, as it may be relevant for the future discussions on this:
|
Do you want to request a feature or report a bug?
Feature (probably).
What is the current behavior?
With outdated packages present,
yarn outdated
exits with0
The
npm outdated
in the same situation will exit with1
(as of NPM4.2.0
).What is the expected behavior?
With outdated packages present,
yarn outdated
should exit with non-zero exit code.Please mention your node.js, yarn and operating system version.
OS: Debian Jessie inside the Docker,
library/node
image,7.10
tag.Node:
v7.10.0
Yarn:
0.24.4
P.S.
Bundlers
bundle outdated
also returns non-zero exit code if outdated gems are present, just for the reference.We use that part of behavior of both Bundler and NPM in automated checks on CI.
The text was updated successfully, but these errors were encountered: