fix(core): Do not crash express app on unhandled rejected promises (#5252)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-26 12:10:09 +01:00
committed by GitHub
parent 68e4083bbd
commit 7e229a3d38
3 changed files with 16 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ if (![14, 16, 18].includes(nodeVersionMajor)) {
// Prevent oclif from loading ts-node and typescript
process.env.OCLIF_TS_NODE = '0';
require('express-async-errors');
require('source-map-support').install();
require('@oclif/command')