@oclif/core 5.1.7 → 5.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/command.js CHANGED
@@ -199,7 +199,7 @@ class Command {
199
199
  return result;
200
200
  }
201
201
  async catch(err) {
202
- process.exitCode = process.exitCode ?? err.exitCode ?? 1;
202
+ process.exitCode = process.exitCode ?? err.oclif?.exit ?? err.exitCode ?? 1;
203
203
  if (this.jsonEnabled()) {
204
204
  this.logJson(this.toErrorJson(err));
205
205
  }
@@ -1,6 +1,6 @@
1
1
  export type CommandError = Error & {
2
2
  exitCode?: number;
3
- };
3
+ } & Partial<OclifError>;
4
4
  export type OclifError = {
5
5
  oclif: {
6
6
  exit?: number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "5.1.7",
4
+ "version": "5.1.8",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {