Skip to content

Commit

Permalink
Exit with 0 when checks fail
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Sep 10, 2019
1 parent d21002d commit 89d7407
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changeset/nasty-socks-flow/changes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "releases": [{ "name": "@manypkg/cli", "type": "patch" }], "dependents": [] }
1 change: 1 addition & 0 deletions .changeset/nasty-socks-flow/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Exit with 0 when checks fail
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"script-runner"
]
}
}
}
1 change: 1 addition & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ let runChecks = (
logger.success(`fixed workspaces!`);
} else if (hasErrored) {
logger.info(`the above errors may be fixable with yarn manypkg fix`);
throw new ExitError(1);
} else {
logger.success(`workspaces valid!`);
}
Expand Down

0 comments on commit 89d7407

Please sign in to comment.