sonamu 0.4.13 → 0.4.14
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/dist/bin/cli.js +51 -51
- package/dist/bin/cli.mjs +2 -2
- package/dist/{chunk-DMJSNO2L.js → chunk-2WAC2GER.js} +44 -44
- package/dist/{chunk-DMJSNO2L.js.map → chunk-2WAC2GER.js.map} +1 -1
- package/dist/{chunk-NI37CY4T.mjs → chunk-C3IPIF6O.mjs} +2 -2
- package/dist/{chunk-DYFCACHD.js → chunk-EXHKSVTE.js} +7 -7
- package/dist/{chunk-QJFHDCBN.mjs → chunk-FCERKIIF.mjs} +2 -2
- package/dist/chunk-FCERKIIF.mjs.map +1 -0
- package/dist/{chunk-DDJ7T4MA.mjs → chunk-HGIBJYOU.mjs} +2 -2
- package/dist/{chunk-NIFOTHBW.mjs → chunk-JKSOJRQA.mjs} +2 -2
- package/dist/{chunk-CXAVBVKC.js → chunk-OTKKFP3Y.js} +100 -100
- package/dist/{chunk-J6S43O7G.js → chunk-UZ2IY5VE.js} +4 -4
- package/dist/database/drivers/knex/base-model.js +8 -8
- package/dist/database/drivers/knex/base-model.mjs +3 -3
- package/dist/database/drivers/kysely/base-model.js +9 -9
- package/dist/database/drivers/kysely/base-model.mjs +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/api/caster.ts +2 -2
- package/dist/chunk-QJFHDCBN.mjs.map +0 -1
- /package/dist/{chunk-NI37CY4T.mjs.map → chunk-C3IPIF6O.mjs.map} +0 -0
- /package/dist/{chunk-DYFCACHD.js.map → chunk-EXHKSVTE.js.map} +0 -0
- /package/dist/{chunk-DDJ7T4MA.mjs.map → chunk-HGIBJYOU.mjs.map} +0 -0
- /package/dist/{chunk-NIFOTHBW.mjs.map → chunk-JKSOJRQA.mjs.map} +0 -0
- /package/dist/{chunk-CXAVBVKC.js.map → chunk-OTKKFP3Y.js.map} +0 -0
- /package/dist/{chunk-J6S43O7G.js.map → chunk-UZ2IY5VE.js.map} +0 -0
package/dist/bin/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict"; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOTKKFP3Yjs = require('../chunk-OTKKFP3Y.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ var _chunkCXAVBVKCjs = require('../chunk-CXAVBVKC.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk2WAC2GERjs = require('../chunk-2WAC2GER.js');
|
|
19
19
|
|
|
20
20
|
// src/bin/cli.ts
|
|
21
21
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
@@ -69,7 +69,7 @@ var SMD = (_class = class {
|
|
|
69
69
|
this.table = _nullishCoalesce(table, () => ( _inflection2.default.underscore(_inflection2.default.pluralize(id))));
|
|
70
70
|
if (props) {
|
|
71
71
|
this.props = props.map((prop) => {
|
|
72
|
-
if (
|
|
72
|
+
if (_chunk2WAC2GERjs.isEnumProp.call(void 0, prop)) {
|
|
73
73
|
if (prop.id.includes("$Model")) {
|
|
74
74
|
prop.id = prop.id.replace("$Model", id);
|
|
75
75
|
}
|
|
@@ -82,7 +82,7 @@ var SMD = (_class = class {
|
|
|
82
82
|
[prop.name]: prop
|
|
83
83
|
};
|
|
84
84
|
}, {});
|
|
85
|
-
this.relations = props.filter((prop) =>
|
|
85
|
+
this.relations = props.filter((prop) => _chunk2WAC2GERjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
|
|
86
86
|
return {
|
|
87
87
|
...result,
|
|
88
88
|
[prop.name]: prop
|
|
@@ -127,10 +127,10 @@ var SMD = (_class = class {
|
|
|
127
127
|
const fields2 = subsetGroup[groupKey];
|
|
128
128
|
if (groupKey === "") {
|
|
129
129
|
const realFields = fields2.filter(
|
|
130
|
-
(field) => !
|
|
130
|
+
(field) => !_chunk2WAC2GERjs.isVirtualProp.call(void 0, this.propsDict[field])
|
|
131
131
|
);
|
|
132
132
|
const virtualFields = fields2.filter(
|
|
133
|
-
(field) =>
|
|
133
|
+
(field) => _chunk2WAC2GERjs.isVirtualProp.call(void 0, this.propsDict[field])
|
|
134
134
|
);
|
|
135
135
|
if (prefix === "") {
|
|
136
136
|
r.select = r.select.concat(
|
|
@@ -151,7 +151,7 @@ var SMD = (_class = class {
|
|
|
151
151
|
throw new Error(`\uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 relation \uCC38\uC870 ${groupKey}`);
|
|
152
152
|
}
|
|
153
153
|
const relSMD = SMDManager.get(relation.with);
|
|
154
|
-
if (
|
|
154
|
+
if (_chunk2WAC2GERjs.isOneToOneRelationProp.call(void 0, relation) || _chunk2WAC2GERjs.isBelongsToOneRelationProp.call(void 0, relation)) {
|
|
155
155
|
const relFields = fields2.map(
|
|
156
156
|
(field) => field.split(".").slice(1).join(".")
|
|
157
157
|
);
|
|
@@ -169,7 +169,7 @@ var SMD = (_class = class {
|
|
|
169
169
|
if (isAlreadyOuterJoined) {
|
|
170
170
|
return "outer";
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
172
|
+
if (_chunk2WAC2GERjs.isOneToOneRelationProp.call(void 0, relation)) {
|
|
173
173
|
if (relation.hasJoinColumn === true && (_nullishCoalesce(relation.nullable, () => ( false))) === false) {
|
|
174
174
|
return "inner";
|
|
175
175
|
} else {
|
|
@@ -199,7 +199,7 @@ var SMD = (_class = class {
|
|
|
199
199
|
};
|
|
200
200
|
} else {
|
|
201
201
|
let from, to;
|
|
202
|
-
if (
|
|
202
|
+
if (_chunk2WAC2GERjs.isOneToOneRelationProp.call(void 0, relation)) {
|
|
203
203
|
if (relation.hasJoinColumn) {
|
|
204
204
|
from = `${fromTable}.${relation.name}_id`;
|
|
205
205
|
to = `${joinAs}.id`;
|
|
@@ -238,13 +238,13 @@ var SMD = (_class = class {
|
|
|
238
238
|
r.loaders = [...r.loaders, ...convertedLoaders];
|
|
239
239
|
}
|
|
240
240
|
r.joins = r.joins.concat(relSubsetQuery.joins);
|
|
241
|
-
} else if (
|
|
241
|
+
} else if (_chunk2WAC2GERjs.isHasManyRelationProp.call(void 0, relation) || _chunk2WAC2GERjs.isManyToManyRelationProp.call(void 0, relation)) {
|
|
242
242
|
const relFields = fields2.map(
|
|
243
243
|
(field) => field.split(".").slice(1).join(".")
|
|
244
244
|
);
|
|
245
245
|
const relSubsetQuery = relSMD.resolveSubsetQuery("", relFields);
|
|
246
246
|
let manyJoin;
|
|
247
|
-
if (
|
|
247
|
+
if (_chunk2WAC2GERjs.isHasManyRelationProp.call(void 0, relation)) {
|
|
248
248
|
manyJoin = {
|
|
249
249
|
fromTable: this.table,
|
|
250
250
|
fromCol: "id",
|
|
@@ -252,7 +252,7 @@ var SMD = (_class = class {
|
|
|
252
252
|
toTable: relSMD.table,
|
|
253
253
|
toCol: relation.joinColumn
|
|
254
254
|
};
|
|
255
|
-
} else if (
|
|
255
|
+
} else if (_chunk2WAC2GERjs.isManyToManyRelationProp.call(void 0, relation)) {
|
|
256
256
|
const [table1, table2] = relation.joinTable.split("__");
|
|
257
257
|
manyJoin = {
|
|
258
258
|
fromTable: this.table,
|
|
@@ -335,11 +335,11 @@ var SMD = (_class = class {
|
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
const prop = smd.propsDict[key];
|
|
338
|
-
if (!
|
|
338
|
+
if (!_chunk2WAC2GERjs.isRelationProp.call(void 0, prop)) {
|
|
339
339
|
throw new Error(`\uC798\uBABB\uB41C FieldExpr ${key}.${group[0]}`);
|
|
340
340
|
}
|
|
341
341
|
const relSMD = SMDManager.get(prop.with);
|
|
342
|
-
if (
|
|
342
|
+
if (_chunk2WAC2GERjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk2WAC2GERjs.isOneToOneRelationProp.call(void 0, prop)) {
|
|
343
343
|
if (group.length == 1 && (group[0] === "id" || group[0] == "id?")) {
|
|
344
344
|
const idProp = relSMD.propsDict.id;
|
|
345
345
|
return {
|
|
@@ -354,7 +354,7 @@ var SMD = (_class = class {
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
const children = this.fieldExprsToPropNodes(group, relSMD);
|
|
357
|
-
const nodeType =
|
|
357
|
+
const nodeType = _chunk2WAC2GERjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk2WAC2GERjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
|
|
358
358
|
return {
|
|
359
359
|
prop,
|
|
360
360
|
children,
|
|
@@ -368,7 +368,7 @@ var SMD = (_class = class {
|
|
|
368
368
|
if (propName === prefix) {
|
|
369
369
|
return null;
|
|
370
370
|
}
|
|
371
|
-
if (
|
|
371
|
+
if (_chunk2WAC2GERjs.isRelationProp.call(void 0, prop)) {
|
|
372
372
|
if (maxDepth < 0) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
@@ -408,7 +408,7 @@ var SMD = (_class = class {
|
|
|
408
408
|
}
|
|
409
409
|
const typesModulePath = `${basePath}/${this.names.fs}.types`;
|
|
410
410
|
const typesFileDistPath = _path2.default.join(
|
|
411
|
-
|
|
411
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
412
412
|
`dist/application/${typesModulePath}.js`
|
|
413
413
|
);
|
|
414
414
|
if (_fsextra2.default.existsSync(typesFileDistPath)) {
|
|
@@ -425,7 +425,7 @@ var SMD = (_class = class {
|
|
|
425
425
|
}
|
|
426
426
|
const enumsModulePath = `${basePath}/${this.names.fs}.enums`;
|
|
427
427
|
const enumsFileDistPath = _path2.default.join(
|
|
428
|
-
|
|
428
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
429
429
|
`/dist/application/${enumsModulePath}.js`
|
|
430
430
|
);
|
|
431
431
|
if (_fsextra2.default.existsSync(enumsFileDistPath)) {
|
|
@@ -467,7 +467,7 @@ var SMDManagerClass = (_class2 = class {constructor() { _class2.prototype.__init
|
|
|
467
467
|
return;
|
|
468
468
|
}
|
|
469
469
|
const pathPattern = _path2.default.join(
|
|
470
|
-
|
|
470
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
471
471
|
"/dist/application/**/*.smd.js"
|
|
472
472
|
);
|
|
473
473
|
!doSilent && console.log(_chalk2.default.yellow(`autoload ${pathPattern}`));
|
|
@@ -562,14 +562,14 @@ console.log(_chalk2.default.bgBlue(`BEGIN ${/* @__PURE__ */ new Date()}`));
|
|
|
562
562
|
_dotenv2.default.config();
|
|
563
563
|
var migrator;
|
|
564
564
|
async function bootstrap() {
|
|
565
|
-
await
|
|
565
|
+
await _chunk2WAC2GERjs.Sonamu.init(false, false);
|
|
566
566
|
await _tsicli.tsicli.call(void 0, _process2.default.argv, {
|
|
567
567
|
types: {
|
|
568
568
|
"#entityId": {
|
|
569
569
|
type: "autocomplete",
|
|
570
570
|
name: "#entityId",
|
|
571
571
|
message: "Please input #entityId",
|
|
572
|
-
choices:
|
|
572
|
+
choices: _chunk2WAC2GERjs.EntityManager.getAllParentIds().map((entityId) => ({
|
|
573
573
|
title: entityId,
|
|
574
574
|
value: entityId
|
|
575
575
|
}))
|
|
@@ -621,17 +621,17 @@ bootstrap().finally(async () => {
|
|
|
621
621
|
if (migrator) {
|
|
622
622
|
await migrator.destroy();
|
|
623
623
|
}
|
|
624
|
-
await
|
|
624
|
+
await _chunkOTKKFP3Yjs.FixtureManager.destory();
|
|
625
625
|
console.log(_chalk2.default.bgBlue(`END ${/* @__PURE__ */ new Date()}
|
|
626
626
|
`));
|
|
627
627
|
});
|
|
628
628
|
async function setupMigrator() {
|
|
629
|
-
migrator = new (0,
|
|
629
|
+
migrator = new (0, _chunkOTKKFP3Yjs.Migrator)({
|
|
630
630
|
mode: "dev"
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
async function setupFixtureManager() {
|
|
634
|
-
|
|
634
|
+
_chunkOTKKFP3Yjs.FixtureManager.init();
|
|
635
635
|
}
|
|
636
636
|
async function migrate_run() {
|
|
637
637
|
await setupMigrator();
|
|
@@ -661,7 +661,7 @@ async function migrate_reset() {
|
|
|
661
661
|
await migrator.resetAll();
|
|
662
662
|
}
|
|
663
663
|
async function fixture_init() {
|
|
664
|
-
const _db =
|
|
664
|
+
const _db = _chunk2WAC2GERjs.DB.getClient("development_master");
|
|
665
665
|
const srcConn = _db.connectionInfo;
|
|
666
666
|
const targets = [
|
|
667
667
|
{
|
|
@@ -683,8 +683,8 @@ async function fixture_init() {
|
|
|
683
683
|
_child_process.execSync.call(void 0,
|
|
684
684
|
`mysqldump -h${srcConn.host} -P${srcConn.port} -u${srcConn.user} -p${srcConn.password} --single-transaction -d --no-create-db --triggers ${srcConn.database} > ${dumpFilename}`
|
|
685
685
|
);
|
|
686
|
-
const dbClient =
|
|
687
|
-
const migrationTable =
|
|
686
|
+
const dbClient = _chunk2WAC2GERjs.DB.baseConfig.client;
|
|
687
|
+
const migrationTable = _chunk2WAC2GERjs.DB.migrationTable;
|
|
688
688
|
const [migrations] = await _db.raw(
|
|
689
689
|
"SELECT COUNT(*) as count FROM information_schema.tables WHERE table_schema = ? AND table_name = ?",
|
|
690
690
|
[srcConn.database, migrationTable]
|
|
@@ -695,22 +695,22 @@ async function fixture_init() {
|
|
|
695
695
|
);
|
|
696
696
|
}
|
|
697
697
|
for await (const { label, connKey } of targets) {
|
|
698
|
-
const config =
|
|
698
|
+
const config = _chunk2WAC2GERjs.DB.connectionInfo[connKey];
|
|
699
699
|
if (label === "(LOCAL) Fixture DB" && targets.find(
|
|
700
|
-
(t) => t.label === "(REMOTE) Fixture DB" &&
|
|
700
|
+
(t) => t.label === "(REMOTE) Fixture DB" && _chunk2WAC2GERjs.DB.connectionInfo[t.connKey].host === config.host && _chunk2WAC2GERjs.DB.connectionInfo[t.connKey].database === config.database
|
|
701
701
|
)) {
|
|
702
702
|
console.log(_chalk2.default.red(`${label}: Skipped!`));
|
|
703
703
|
continue;
|
|
704
704
|
}
|
|
705
705
|
const db = (() => {
|
|
706
706
|
if (dbClient === "knex") {
|
|
707
|
-
const config2 = _lodash2.default.cloneDeep(
|
|
707
|
+
const config2 = _lodash2.default.cloneDeep(_chunk2WAC2GERjs.DB.fullConfig[connKey]);
|
|
708
708
|
config2.connection.database = void 0;
|
|
709
|
-
return new (0,
|
|
709
|
+
return new (0, _chunk2WAC2GERjs.KnexClient)(config2);
|
|
710
710
|
} else {
|
|
711
|
-
const config2 = _lodash2.default.cloneDeep(
|
|
711
|
+
const config2 = _lodash2.default.cloneDeep(_chunk2WAC2GERjs.DB.fullConfig[connKey]);
|
|
712
712
|
config2.database = void 0;
|
|
713
|
-
return new (0,
|
|
713
|
+
return new (0, _chunk2WAC2GERjs.KyselyClient)(config2);
|
|
714
714
|
}
|
|
715
715
|
})();
|
|
716
716
|
const [row] = await db.raw(`SHOW DATABASES LIKE "${config.database}"`);
|
|
@@ -734,15 +734,15 @@ async function fixture_init() {
|
|
|
734
734
|
}
|
|
735
735
|
async function fixture_import(entityId, recordIds) {
|
|
736
736
|
await setupFixtureManager();
|
|
737
|
-
await
|
|
738
|
-
await
|
|
737
|
+
await _chunkOTKKFP3Yjs.FixtureManager.importFixture(entityId, recordIds);
|
|
738
|
+
await _chunkOTKKFP3Yjs.FixtureManager.sync();
|
|
739
739
|
}
|
|
740
740
|
async function fixture_sync() {
|
|
741
741
|
await setupFixtureManager();
|
|
742
|
-
await
|
|
742
|
+
await _chunkOTKKFP3Yjs.FixtureManager.sync();
|
|
743
743
|
}
|
|
744
744
|
async function stub_practice(name) {
|
|
745
|
-
const practiceDir = _path2.default.join(
|
|
745
|
+
const practiceDir = _path2.default.join(_chunk2WAC2GERjs.Sonamu.apiRootPath, "src", "practices");
|
|
746
746
|
const fileNames = _fsextra2.default.readdirSync(practiceDir);
|
|
747
747
|
const maxSeqNo = (() => {
|
|
748
748
|
if (_fsextra2.default.existsSync(practiceDir) === false) {
|
|
@@ -785,22 +785,22 @@ async function stub_practice(name) {
|
|
|
785
785
|
_child_process.execSync.call(void 0, `echo "${runCode}" | pbcopy`);
|
|
786
786
|
}
|
|
787
787
|
async function stub_entity(entityId) {
|
|
788
|
-
await
|
|
788
|
+
await _chunk2WAC2GERjs.Sonamu.syncer.createEntity({ entityId });
|
|
789
789
|
}
|
|
790
790
|
async function scaffold_model(entityId) {
|
|
791
|
-
await
|
|
791
|
+
await _chunk2WAC2GERjs.Sonamu.syncer.generateTemplate("model", {
|
|
792
792
|
entityId
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
795
|
async function scaffold_model_test(entityId) {
|
|
796
|
-
await
|
|
796
|
+
await _chunk2WAC2GERjs.Sonamu.syncer.generateTemplate("model_test", {
|
|
797
797
|
entityId
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
800
|
async function ui() {
|
|
801
801
|
try {
|
|
802
802
|
const sonamuUI = await Promise.resolve().then(() => _interopRequireWildcard(require("@sonamu-kit/ui")));
|
|
803
|
-
sonamuUI.startServers(
|
|
803
|
+
sonamuUI.startServers(_chunk2WAC2GERjs.Sonamu.apiRootPath);
|
|
804
804
|
} catch (e) {
|
|
805
805
|
if (e instanceof Error && e.message.includes("isn't declared")) {
|
|
806
806
|
console.log(`You need to install ${_chalk2.default.blue(`@sonamu-kit/ui`)} first.`);
|
|
@@ -839,7 +839,7 @@ async function smd_migration() {
|
|
|
839
839
|
const parentNames = SMDManager.getNamesFromId(_nullishCoalesce(smd.parentId, () => ( smd.id)));
|
|
840
840
|
const names = SMDManager.getNamesFromId(smd.id);
|
|
841
841
|
const dstPath = _path2.default.join(
|
|
842
|
-
|
|
842
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
843
843
|
"src",
|
|
844
844
|
"application",
|
|
845
845
|
parentNames.fs,
|
|
@@ -851,7 +851,7 @@ async function smd_migration() {
|
|
|
851
851
|
_fsextra2.default.writeFileSync(dstPath, formatted);
|
|
852
852
|
console.log(_chalk2.default.blue(`CREATED: ${dstPath}`));
|
|
853
853
|
const srcSmdPath = _path2.default.join(
|
|
854
|
-
|
|
854
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
855
855
|
"src",
|
|
856
856
|
"application",
|
|
857
857
|
parentNames.fs,
|
|
@@ -859,7 +859,7 @@ async function smd_migration() {
|
|
|
859
859
|
);
|
|
860
860
|
const dstSmdPath = srcSmdPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
|
|
861
861
|
const srcEnumsPath = _path2.default.join(
|
|
862
|
-
|
|
862
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
863
863
|
"src",
|
|
864
864
|
"application",
|
|
865
865
|
parentNames.fs,
|
|
@@ -867,7 +867,7 @@ async function smd_migration() {
|
|
|
867
867
|
);
|
|
868
868
|
const dstEnumsPath = srcEnumsPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
|
|
869
869
|
const srcGeneratedPath = _path2.default.join(
|
|
870
|
-
|
|
870
|
+
_chunk2WAC2GERjs.Sonamu.apiRootPath,
|
|
871
871
|
"src",
|
|
872
872
|
"application",
|
|
873
873
|
parentNames.fs,
|
|
@@ -879,8 +879,8 @@ async function smd_migration() {
|
|
|
879
879
|
dstSmdPath,
|
|
880
880
|
srcEnumsPath,
|
|
881
881
|
dstEnumsPath,
|
|
882
|
-
...
|
|
883
|
-
(target) => srcEnumsPath.replace(
|
|
882
|
+
..._chunk2WAC2GERjs.Sonamu.config.sync.targets.map(
|
|
883
|
+
(target) => srcEnumsPath.replace(_chunk2WAC2GERjs.Sonamu.apiRootPath, _path2.default.join(_chunk2WAC2GERjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
|
|
884
884
|
),
|
|
885
885
|
srcGeneratedPath,
|
|
886
886
|
dstGeneratedPath
|
|
@@ -894,11 +894,11 @@ async function smd_migration() {
|
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
896
|
console.log("Entity\uB85C \uB2E4\uC2DC \uB85C\uB4DC\uD569\uB2C8\uB2E4.");
|
|
897
|
-
|
|
898
|
-
await
|
|
899
|
-
const entityIds =
|
|
897
|
+
_chunk2WAC2GERjs.EntityManager.isAutoloaded = false;
|
|
898
|
+
await _chunk2WAC2GERjs.EntityManager.autoload();
|
|
899
|
+
const entityIds = _chunk2WAC2GERjs.EntityManager.getAllParentIds();
|
|
900
900
|
for await (const entityId of entityIds) {
|
|
901
|
-
await
|
|
901
|
+
await _chunk2WAC2GERjs.Sonamu.syncer.generateTemplate("generated", { entityId });
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
//# sourceMappingURL=cli.js.map
|
package/dist/bin/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FixtureManager,
|
|
3
3
|
Migrator
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-C3IPIF6O.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DB,
|
|
7
7
|
EntityManager,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isOneToOneRelationProp,
|
|
16
16
|
isRelationProp,
|
|
17
17
|
isVirtualProp
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-FCERKIIF.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__dirname
|
|
21
21
|
} from "../chunk-PTFDTOJU.mjs";
|