@mikro-orm/cli 7.1.5-dev.7 → 7.1.5-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,7 +199,7 @@ export class DiscoveryExportCommand {
|
|
|
199
199
|
// reflect-metadata, so the consumer needs the actual class reference, not
|
|
200
200
|
// an erased type alias. Aliasing keeps the local name free for our own
|
|
201
201
|
// `EntityManager` re-export.
|
|
202
|
-
lines.push(`import { EntityManager as DriverEntityManager } from '${driverPackage}';`);
|
|
202
|
+
lines.push(`import { type Constructor, EntityManager as DriverEntityManager } from '${driverPackage}';`);
|
|
203
203
|
lines.push('');
|
|
204
204
|
// entities array
|
|
205
205
|
lines.push('export const entities = [');
|
|
@@ -220,7 +220,7 @@ export class DiscoveryExportCommand {
|
|
|
220
220
|
// `constructor(em: EntityManager) {}` resolves through Nest's container
|
|
221
221
|
// just like importing the class straight from the driver package.
|
|
222
222
|
lines.push("export type EntityManager = DriverEntityManager & { '~entities': Database };");
|
|
223
|
-
lines.push('export const EntityManager = DriverEntityManager
|
|
223
|
+
lines.push('export const EntityManager = DriverEntityManager as Constructor<EntityManager>;');
|
|
224
224
|
lines.push('');
|
|
225
225
|
return lines.join('\n');
|
|
226
226
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/cli",
|
|
3
|
-
"version": "7.1.5-dev.
|
|
3
|
+
"version": "7.1.5-dev.9",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"copy": "node ../../scripts/copy.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/core": "7.1.5-dev.
|
|
54
|
-
"mikro-orm": "7.1.5-dev.
|
|
53
|
+
"@mikro-orm/core": "7.1.5-dev.9",
|
|
54
|
+
"mikro-orm": "7.1.5-dev.9",
|
|
55
55
|
"yargs": "17.7.2"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|