@mikro-orm/entity-generator 7.0.0-dev.43 → 7.0.0-dev.45
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.
- package/EntityGenerator.js +0 -3
- package/SourceFile.js +1 -1
- package/package.json +3 -3
package/EntityGenerator.js
CHANGED
|
@@ -35,9 +35,6 @@ export class EntityGenerator {
|
|
|
35
35
|
const defaultPath = `${this.config.get('baseDir')}/generated-entities`;
|
|
36
36
|
const baseDir = Utils.normalizePath(options.path ?? defaultPath);
|
|
37
37
|
this.sources.length = 0;
|
|
38
|
-
if (options.entitySchema) {
|
|
39
|
-
options.entityDefinition = 'entitySchema';
|
|
40
|
-
}
|
|
41
38
|
const map = {
|
|
42
39
|
defineEntity: DefineEntitySourceFile,
|
|
43
40
|
entitySchema: EntitySchemaSourceFile,
|
package/SourceFile.js
CHANGED
|
@@ -502,7 +502,7 @@ export class SourceFile {
|
|
|
502
502
|
if (prop.primary && (prop.enum || !(typeof prop.kind === 'undefined' || prop.kind === ReferenceKind.SCALAR))) {
|
|
503
503
|
options.primary = true;
|
|
504
504
|
}
|
|
505
|
-
['persist', 'hydrate'
|
|
505
|
+
['persist', 'hydrate']
|
|
506
506
|
.filter(key => prop[key] === false)
|
|
507
507
|
.forEach(key => options[key] = false);
|
|
508
508
|
['onCreate', 'onUpdate', 'serializer']
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/entity-generator",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.45",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/knex": "7.0.0-dev.
|
|
53
|
+
"@mikro-orm/knex": "7.0.0-dev.45"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@mikro-orm/core": "^6.6.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
59
|
+
"@mikro-orm/core": "7.0.0-dev.45"
|
|
60
60
|
}
|
|
61
61
|
}
|