@cenk1cenk2/oclif-common 6.2.4 → 6.2.5
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -388,7 +388,7 @@ declare abstract class Command<T extends typeof Command$1 = typeof Command$1, Ct
|
|
|
388
388
|
ctx: C;
|
|
389
389
|
}>;
|
|
390
390
|
/** Catch any error occurred during command. */
|
|
391
|
-
protected catch(e: Error, exit?: number): Promise<
|
|
391
|
+
protected catch(e: Error, exit?: number): Promise<never>;
|
|
392
392
|
abstract run(): Promise<any>;
|
|
393
393
|
}
|
|
394
394
|
|
package/dist/index.js
CHANGED
|
@@ -1804,10 +1804,7 @@ var _Command = class _Command extends BaseCommand {
|
|
|
1804
1804
|
this.logger.debug(e.stack, {
|
|
1805
1805
|
context: "crash"
|
|
1806
1806
|
});
|
|
1807
|
-
|
|
1808
|
-
this.exit(exit);
|
|
1809
|
-
}
|
|
1810
|
-
return;
|
|
1807
|
+
this.exit(exit ?? 1);
|
|
1811
1808
|
}
|
|
1812
1809
|
};
|
|
1813
1810
|
__name(_Command, "Command");
|