X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=mikro-orm.config-template.ts;h=8b01a42c628da9fe973f87cadbbcd69cf444b126;hb=102117891a36935a7ea9df8514391e8bc7be7daf;hp=b89b975f2b1e6d7b918c34722eece50d8f2853b1;hpb=51022aa0d811eec79514fbeb56cb9556e7168cd7;p=e-mobility-charging-stations-simulator.git diff --git a/mikro-orm.config-template.ts b/mikro-orm.config-template.ts index b89b975f..8b01a42c 100644 --- a/mikro-orm.config-template.ts +++ b/mikro-orm.config-template.ts @@ -1,17 +1,17 @@ -import path from 'node:path'; -import { fileURLToPath } from 'node:url'; +import { dirname, join } from 'node:path' +import { fileURLToPath } from 'node:url' -import { TsMorphMetadataProvider } from '@mikro-orm/reflection'; +import { TsMorphMetadataProvider } from '@mikro-orm/reflection' -import { PerformanceData, PerformanceRecord } from './src/types'; -import { Constants } from './src/utils'; +import { PerformanceData, PerformanceRecord } from './src/types/index.js' +import { Constants } from './src/utils/index.js' export default { metadataProvider: TsMorphMetadataProvider, entities: [PerformanceRecord, PerformanceData], type: 'sqlite', - clientUrl: `file://${path.join( - path.dirname(fileURLToPath(import.meta.url)), + clientUrl: `file://${join( + dirname(fileURLToPath(import.meta.url)), `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db` - )}`, -}; + )}` +}