Added Stricter rejection handling

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-04-23 16:22:00 +02:00
parent db86629f03
commit 0c3b237fb8
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6
2 changed files with 66 additions and 63 deletions

View File

@ -9,8 +9,8 @@
"scripts": { "scripts": {
"db:compile": "cd db && tsc --project tsconfig.json", "db:compile": "cd db && tsc --project tsconfig.json",
"db:test": "cd db && tsc --noEmit --project tsconfig.json", "db:test": "cd db && tsc --noEmit --project tsconfig.json",
"start": "ts-node --transpile-only main.ts", "start": "node --require ts-node/register --unhandled-rejections=strict main.ts",
"upload": "ts-node --transpile-only upload.ts" "upload": "node --require ts-node/register --unhandled-rejections=strict upload.ts"
}, },
"dependencies": { "dependencies": {
"@dzeio/logger": "^2.0.0-alpha.0", "@dzeio/logger": "^2.0.0-alpha.0",

View File

@ -1,4 +1,7 @@
{ {
"ts-node": {
"transpileOnly": true
},
"compilerOptions": { "compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Visit https://aka.ms/tsconfig.json to read more about this file */
"baseUrl": "./", "baseUrl": "./",