From 8791bed4f9239979c526b09e917b779abbeeb978 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Tue, 24 Nov 2020 21:10:50 +0100 Subject: [PATCH] Added some fixxes for typeorm entities ref #3 --- src/app.ts | 1 + tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index f036136..fb646dd 100644 --- a/src/app.ts +++ b/src/app.ts @@ -3,6 +3,7 @@ import express from 'express'; import consola from 'consola'; import * as jwt from 'jsonwebtoken'; import { createConnection } from 'typeorm'; +import 'reflect-metadata'; dotenvSafe.config(); const app = express(); diff --git a/tsconfig.json b/tsconfig.json index b569d8b..dc76995 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "rootDir": "./src", "outDir": "./build", "esModuleInterop": true, - "strict": true + "strict": true, + "experimentalDecorators": true, + "emitDecoratorMetadata":true } } \ No newline at end of file