chore: switch coding style to JS standard
[e-mobility-charging-stations-simulator.git] / mikro-orm.config-template.ts
index b89b975f2b1e6d7b918c34722eece50d8f2853b1..8b01a42c628da9fe973f87cadbbcd69cf444b126 100644 (file)
@@ -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`
-  )}`,
-};
+  )}`
+}