Skip to content

Commit

Permalink
Always use status code 0 if --check flag is not passed
Browse files Browse the repository at this point in the history
Fixes #81
  • Loading branch information
mskelton committed May 10, 2023
1 parent 136a1e1 commit cae9fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundles/@yarnpkg/plugin-outdated.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/OutdatedCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class OutdatedCommand extends BaseCommand {
this.writeMarkdown(configuration, project, outdated)
}

return outdated.length ? 1 : 0
return this.check && outdated.length ? 1 : 0
}

const report = await StreamReport.start(
Expand Down

0 comments on commit cae9fdf

Please sign in to comment.