From 5349e2ffe55370083da486ef1e8c9b9ff820da6b Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sun, 9 Feb 2025 02:24:53 +0100 Subject: [PATCH] Improvements for prod. --- src/application/storage.ts | 2 +- src/mikro-orm.config.ts | 1 - tsconfig.json | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/application/storage.ts b/src/application/storage.ts index 053a761..045dac7 100644 --- a/src/application/storage.ts +++ b/src/application/storage.ts @@ -9,7 +9,7 @@ class Storage { constructor() { this.rootDir = process.cwd() - this.baseDir = config.ENV === 'development' ? 'src' : 'dist' + this.baseDir = config.ENV === 'development' ? 'src' : 'src' } /** diff --git a/src/mikro-orm.config.ts b/src/mikro-orm.config.ts index 7abd09a..42be1d1 100644 --- a/src/mikro-orm.config.ts +++ b/src/mikro-orm.config.ts @@ -8,7 +8,6 @@ import serverConfig from '#application/config' export default defineConfig({ extensions: [Migrator], metadataProvider: TsMorphMetadataProvider, - entities: ['./dist/entities/*.js'], entitiesTs: ['./src/entities/*.ts'], driver: MySqlDriver, host: serverConfig.DB_HOST, diff --git a/tsconfig.json b/tsconfig.json index dba5394..0d1c81a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,8 +20,6 @@ "module": "NodeNext", "baseUrl": "./src", "rootDir": "./src", - "outDir": "./dist", - "sourceMap": true, "paths": { "#root/*": ["./*"],