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/*": ["./*"],