Fix MikroORM CLI configuration template
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 21 Jul 2022 18:01:37 +0000 (20:01 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 21 Jul 2022 18:01:37 +0000 (20:01 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
mikro-orm.config-template.ts
package-lock.json
package.json
rollup.config.mjs

index 5f318c13083b62723b49c0d30cbbfdeee06d11c4..cd7050712406aff6d0d4d7c1b27bb9bd5b6c97da 100644 (file)
@@ -1,16 +1,17 @@
-import Constants from './src/utils/Constants';
+import path from 'path';
+
+import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
+
 import { PerformanceData } from './src/types/orm/entities/PerformanceData';
 import { PerformanceRecord } from './src/types/orm/entities/PerformanceRecord';
-import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
-import { fileURLToPath } from 'url';
-import path from 'path';
+import Constants from './src/utils/Constants';
 
 export default {
   metadataProvider: TsMorphMetadataProvider,
   entities: [PerformanceRecord, PerformanceData],
   type: 'sqlite',
   clientUrl: `file://${path.join(
-    path.resolve(path.dirname(fileURLToPath(import.meta.url))),
+    path.resolve(__dirname),
     `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`
   )}`,
 };
index 9f9283353d03acf15c6eb094cfd12c019fdd1e9b..9535f4460461c100c7d7dc91909bbc7fd657b4fe 100644 (file)
@@ -13,7 +13,7 @@
         "@mikro-orm/mariadb": "^5.2.3",
         "@mikro-orm/reflection": "^5.2.3",
         "@mikro-orm/sqlite": "^5.2.3",
-        "basic-ftp": "^5.0.0",
+        "basic-ftp": "^5.0.1",
         "chalk": "^4.1.2",
         "express": "^4.18.1",
         "mnemonist": "^0.39.2",
       ]
     },
     "node_modules/basic-ftp": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.0.tgz",
-      "integrity": "sha512-LfrLRg+0ABgPscI2p+XacVoxrNuCC0SEXzdBDstR2ACHf72eLqyIU31yELAW5EnwfwL8IOW11nY7u2igxVd6oQ==",
+      "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.1.tgz",
+      "integrity": "sha512-0NbZDftWLby3hCH7rVht7dlpp1Bc3Qp3uO99521/6gP9SYWQ6L/e6GBBvKdKZGCdF7bI6us8XhQtgxPefSo+yg==",
       "engines": {
         "node": ">=10.0.0"
       }
       "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
     },
     "basic-ftp": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.0.tgz",
-      "integrity": "sha512-LfrLRg+0ABgPscI2p+XacVoxrNuCC0SEXzdBDstR2ACHf72eLqyIU31yELAW5EnwfwL8IOW11nY7u2igxVd6oQ=="
+      "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.1.tgz",
+      "integrity": "sha512-0NbZDftWLby3hCH7rVht7dlpp1Bc3Qp3uO99521/6gP9SYWQ6L/e6GBBvKdKZGCdF7bI6us8XhQtgxPefSo+yg=="
     },
     "bcrypt-pbkdf": {
       "version": "1.0.2",
index 6d033b140aed3b1230482eea59312b54647fbcf4..cdc0c5574770dabf1167a680cd96bbdae3e354fe 100644 (file)
@@ -84,7 +84,7 @@
     "@mikro-orm/mariadb": "^5.2.3",
     "@mikro-orm/reflection": "^5.2.3",
     "@mikro-orm/sqlite": "^5.2.3",
-    "basic-ftp": "^5.0.0",
+    "basic-ftp": "^5.0.1",
     "chalk": "^4.1.2",
     "express": "^4.18.1",
     "mnemonist": "^0.39.2",
index bdc96d661e2eb2d0f0c41ee078bfad4d551cd95a..1cb306ab7d16c050cadf465951004e189f32c089 100644 (file)
@@ -1,8 +1,8 @@
+import json from '@rollup/plugin-json';
 import analyze from 'rollup-plugin-analyzer';
 import copy from 'rollup-plugin-copy';
 import del from 'rollup-plugin-delete';
 import istanbul from 'rollup-plugin-istanbul';
-import json from '@rollup/plugin-json';
 import { terser } from 'rollup-plugin-terser';
 import ts from 'rollup-plugin-ts';