We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d08079 commit d760e7aCopy full SHA for d760e7a
CHANGELOG.md
@@ -6,6 +6,7 @@
6
- [TSTEMPLATE-3][Docs] Typedoc --excludeNotExported switch is deprecated
7
- [TSTEMPLATE-4] Seperate index.ts from main.ts
8
- [TSTEMPLATE-5] Source mapping should be loaded before imports
9
+- [TSTEMPLATE-6] main() entrypoint should have catch block
10
11
## [v1.2.0]
12
src/main.ts
@@ -4,4 +4,8 @@ import { env } from './environment';
4
async function main() {
5
logger.info('Hello ' + env.APP_TITLE);
}
-main();
+main()
+ .catch(error => {
+ logger.error(error);
+ process.exit();
+ });
0 commit comments