From 64142a46b3f497b9ffd621e7d6332a245d80e023 Mon Sep 17 00:00:00 2001 From: Chris <5120660+poppahorse@users.noreply.github.com> Date: Tue, 7 Apr 2020 15:25:46 +0100 Subject: [PATCH] fix: ormconfig pointing at js files instead of ts The `entities / subscribers / migrations` properties in the `ormconfig.json` file are pointing at `*.js` files, which was resulting in a `EntityMetadataNotFound:` error. Changing to look for the correct file types fixes the error --- ormconfig.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ormconfig.json b/ormconfig.json index bc033b8..7b3a680 100644 --- a/ormconfig.json +++ b/ormconfig.json @@ -9,17 +9,17 @@ "synchronize": true, "logging": false, "entities": [ - "src/entity/*.js" + "src/entity/*.ts" ], "subscribers": [ - "src/subscriber/*.js" + "src/subscriber/*.ts" ], "migrations": [ - "src/migration/*.js" + "src/migration/*.ts" ], "cli": { "entitiesDir": "src/entity", "migrationsDir": "src/migration", "subscribersDir": "src/subscriber" } -} \ No newline at end of file +}