Skip to content

Commit 45df3e3

Browse files
B4nanclaude
andcommitted
chore: move mikro-orm config to config/, support both TS and JS paths
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0e8a3b2 commit 45df3e3

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
"mikro-orm": {
6262
"useTsNode": true,
6363
"configPaths": [
64-
"./mikro-orm.config.ts"
64+
"./config/mikro-orm.config.ts",
65+
"./build/config/mikro-orm.config.js"
6566
]
6667
}
6768
}

providers/mikro_orm_provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MikroORM, EntityManager } from '@mikro-orm/sqlite'
22
import type { ApplicationService } from '@adonisjs/core/types'
3-
import config from '../mikro-orm.config.js'
3+
import config from '#config/mikro-orm.config'
44
import { UserRepository } from '#repositories/user_repository'
55
import { ArticleRepository } from '#repositories/article_repository'
66
import { UserSchema } from '#entities/user'

0 commit comments

Comments
 (0)