sonamu 0.2.49 → 0.2.51

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.
@@ -0,0 +1 @@
1
+ #!/usr/bin/env ts-node
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env ts-node
2
+ const require = (await import('module')).createRequire(import.meta.url);
3
+ import {
4
+ __dirname
5
+ } from "../chunk-JXJTFHF7.mjs";
6
+
7
+ // src/bin/cli-wrapper.ts
8
+ import { spawnSync } from "child_process";
9
+ import { extname, resolve } from "path";
10
+ import { existsSync, readFileSync } from "fs";
11
+ var cjsPath = resolve(__dirname, "bin/cli.js");
12
+ var esmPath = resolve(__dirname, "bin/cli.mjs");
13
+ var isESM = () => {
14
+ const packageJsonPath = resolve(process.cwd(), "package.json");
15
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
16
+ if (packageJson.type === "module") {
17
+ return true;
18
+ }
19
+ if (process.env.USE_ESM === "true") {
20
+ return true;
21
+ }
22
+ if (existsSync(packageJsonPath)) {
23
+ const packageJson2 = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
24
+ return packageJson2.type === "module";
25
+ }
26
+ if (packageJson.main && extname(packageJson.main) === ".mjs") {
27
+ return true;
28
+ }
29
+ return false;
30
+ };
31
+ var scriptPath = isESM() ? esmPath : cjsPath;
32
+ if (!existsSync(scriptPath)) {
33
+ console.error(`Error: Script not found at ${scriptPath}`);
34
+ process.exit(1);
35
+ }
36
+ var result = spawnSync(
37
+ process.execPath,
38
+ [scriptPath, ...process.argv.slice(2)],
39
+ {
40
+ stdio: "inherit"
41
+ }
42
+ );
43
+ process.exit(result.status ?? 1);
44
+ //# sourceMappingURL=cli-wrapper.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/cli-wrapper.ts"],"sourcesContent":["#!/usr/bin/env ts-node\n\nimport { spawnSync } from \"child_process\";\nimport { extname, resolve } from \"path\";\nimport { existsSync, readFileSync } from \"fs\";\n\nconst cjsPath = resolve(__dirname, \"bin/cli.js\");\nconst esmPath = resolve(__dirname, \"bin/cli.mjs\");\n\nconst isESM = () => {\n const packageJsonPath = resolve(process.cwd(), \"package.json\");\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\"));\n\n // package.json에 \"type\": \"module\" 설정 확인\n if (packageJson.type === \"module\") {\n return true;\n }\n\n // 환경 변수에서 ESM 여부 확인\n if (process.env.USE_ESM === \"true\") {\n return true;\n }\n\n // package.json에 \"type\": \"module\" 설정\n if (existsSync(packageJsonPath)) {\n const packageJson = JSON.parse(readFileSync(packageJsonPath, \"utf-8\"));\n return packageJson.type === \"module\";\n }\n\n // main 필드가 .mjs로 끝나는지 확인\n if (packageJson.main && extname(packageJson.main) === \".mjs\") {\n return true;\n }\n\n return false;\n};\n\nconst scriptPath = isESM() ? esmPath : cjsPath;\n\nif (!existsSync(scriptPath)) {\n console.error(`Error: Script not found at ${scriptPath}`);\n process.exit(1);\n}\n\nconst result = spawnSync(\n process.execPath,\n [scriptPath, ...process.argv.slice(2)],\n {\n stdio: \"inherit\",\n }\n);\n\nprocess.exit(result.status ?? 1);\n"],"mappings":";;;;;;;AAEA,SAAS,iBAAiB;AAC1B,SAAS,SAAS,eAAe;AACjC,SAAS,YAAY,oBAAoB;AAEzC,IAAM,UAAU,QAAQ,WAAW,YAAY;AAC/C,IAAM,UAAU,QAAQ,WAAW,aAAa;AAEhD,IAAM,QAAQ,MAAM;AAClB,QAAM,kBAAkB,QAAQ,QAAQ,IAAI,GAAG,cAAc;AAC7D,QAAM,cAAc,KAAK,MAAM,aAAa,iBAAiB,OAAO,CAAC;AAGrE,MAAI,YAAY,SAAS,UAAU;AACjC,WAAO;AAAA,EACT;AAGA,MAAI,QAAQ,IAAI,YAAY,QAAQ;AAClC,WAAO;AAAA,EACT;AAGA,MAAI,WAAW,eAAe,GAAG;AAC/B,UAAMA,eAAc,KAAK,MAAM,aAAa,iBAAiB,OAAO,CAAC;AACrE,WAAOA,aAAY,SAAS;AAAA,EAC9B;AAGA,MAAI,YAAY,QAAQ,QAAQ,YAAY,IAAI,MAAM,QAAQ;AAC5D,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEA,IAAM,aAAa,MAAM,IAAI,UAAU;AAEvC,IAAI,CAAC,WAAW,UAAU,GAAG;AAC3B,UAAQ,MAAM,8BAA8B,UAAU,EAAE;AACxD,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAM,SAAS;AAAA,EACb,QAAQ;AAAA,EACR,CAAC,YAAY,GAAG,QAAQ,KAAK,MAAM,CAAC,CAAC;AAAA,EACrC;AAAA,IACE,OAAO;AAAA,EACT;AACF;AAEA,QAAQ,KAAK,OAAO,UAAU,CAAC;","names":["packageJson"]}
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/bin/cli.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkHATLA54Zjs = require('../chunk-HATLA54Z.js');
14
+ var _chunk4EET56IEjs = require('../chunk-4EET56IE.js');
15
15
 
16
16
  // src/bin/cli.ts
17
17
  var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
@@ -54,7 +54,7 @@ var SMD = class {
54
54
  this.table = _nullishCoalesce(table, () => ( _inflection2.default.underscore(_inflection2.default.pluralize(id))));
55
55
  if (props) {
56
56
  this.props = props.map((prop) => {
57
- if (_chunkHATLA54Zjs.isEnumProp.call(void 0, prop)) {
57
+ if (_chunk4EET56IEjs.isEnumProp.call(void 0, prop)) {
58
58
  if (prop.id.includes("$Model")) {
59
59
  prop.id = prop.id.replace("$Model", id);
60
60
  }
@@ -67,7 +67,7 @@ var SMD = class {
67
67
  [prop.name]: prop
68
68
  };
69
69
  }, {});
70
- this.relations = props.filter((prop) => _chunkHATLA54Zjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
70
+ this.relations = props.filter((prop) => _chunk4EET56IEjs.isRelationProp.call(void 0, prop)).reduce((result, prop) => {
71
71
  return {
72
72
  ...result,
73
73
  [prop.name]: prop
@@ -112,10 +112,10 @@ var SMD = class {
112
112
  const fields2 = subsetGroup[groupKey];
113
113
  if (groupKey === "") {
114
114
  const realFields = fields2.filter(
115
- (field) => !_chunkHATLA54Zjs.isVirtualProp.call(void 0, this.propsDict[field])
115
+ (field) => !_chunk4EET56IEjs.isVirtualProp.call(void 0, this.propsDict[field])
116
116
  );
117
117
  const virtualFields = fields2.filter(
118
- (field) => _chunkHATLA54Zjs.isVirtualProp.call(void 0, this.propsDict[field])
118
+ (field) => _chunk4EET56IEjs.isVirtualProp.call(void 0, this.propsDict[field])
119
119
  );
120
120
  if (prefix === "") {
121
121
  r.select = r.select.concat(
@@ -136,7 +136,7 @@ var SMD = class {
136
136
  throw new Error(`\uC874\uC7AC\uD558\uC9C0 \uC54A\uB294 relation \uCC38\uC870 ${groupKey}`);
137
137
  }
138
138
  const relSMD = SMDManager.get(relation.with);
139
- if (_chunkHATLA54Zjs.isOneToOneRelationProp.call(void 0, relation) || _chunkHATLA54Zjs.isBelongsToOneRelationProp.call(void 0, relation)) {
139
+ if (_chunk4EET56IEjs.isOneToOneRelationProp.call(void 0, relation) || _chunk4EET56IEjs.isBelongsToOneRelationProp.call(void 0, relation)) {
140
140
  const relFields = fields2.map(
141
141
  (field) => field.split(".").slice(1).join(".")
142
142
  );
@@ -154,7 +154,7 @@ var SMD = class {
154
154
  if (isAlreadyOuterJoined) {
155
155
  return "outer";
156
156
  }
157
- if (_chunkHATLA54Zjs.isOneToOneRelationProp.call(void 0, relation)) {
157
+ if (_chunk4EET56IEjs.isOneToOneRelationProp.call(void 0, relation)) {
158
158
  if (relation.hasJoinColumn === true && (_nullishCoalesce(relation.nullable, () => ( false))) === false) {
159
159
  return "inner";
160
160
  } else {
@@ -184,7 +184,7 @@ var SMD = class {
184
184
  };
185
185
  } else {
186
186
  let from, to;
187
- if (_chunkHATLA54Zjs.isOneToOneRelationProp.call(void 0, relation)) {
187
+ if (_chunk4EET56IEjs.isOneToOneRelationProp.call(void 0, relation)) {
188
188
  if (relation.hasJoinColumn) {
189
189
  from = `${fromTable}.${relation.name}_id`;
190
190
  to = `${joinAs}.id`;
@@ -223,13 +223,13 @@ var SMD = class {
223
223
  r.loaders = [...r.loaders, ...convertedLoaders];
224
224
  }
225
225
  r.joins = r.joins.concat(relSubsetQuery.joins);
226
- } else if (_chunkHATLA54Zjs.isHasManyRelationProp.call(void 0, relation) || _chunkHATLA54Zjs.isManyToManyRelationProp.call(void 0, relation)) {
226
+ } else if (_chunk4EET56IEjs.isHasManyRelationProp.call(void 0, relation) || _chunk4EET56IEjs.isManyToManyRelationProp.call(void 0, relation)) {
227
227
  const relFields = fields2.map(
228
228
  (field) => field.split(".").slice(1).join(".")
229
229
  );
230
230
  const relSubsetQuery = relSMD.resolveSubsetQuery("", relFields);
231
231
  let manyJoin;
232
- if (_chunkHATLA54Zjs.isHasManyRelationProp.call(void 0, relation)) {
232
+ if (_chunk4EET56IEjs.isHasManyRelationProp.call(void 0, relation)) {
233
233
  manyJoin = {
234
234
  fromTable: this.table,
235
235
  fromCol: "id",
@@ -237,7 +237,7 @@ var SMD = class {
237
237
  toTable: relSMD.table,
238
238
  toCol: relation.joinColumn
239
239
  };
240
- } else if (_chunkHATLA54Zjs.isManyToManyRelationProp.call(void 0, relation)) {
240
+ } else if (_chunk4EET56IEjs.isManyToManyRelationProp.call(void 0, relation)) {
241
241
  const [table1, table2] = relation.joinTable.split("__");
242
242
  manyJoin = {
243
243
  fromTable: this.table,
@@ -320,11 +320,11 @@ var SMD = class {
320
320
  });
321
321
  }
322
322
  const prop = smd.propsDict[key];
323
- if (!_chunkHATLA54Zjs.isRelationProp.call(void 0, prop)) {
323
+ if (!_chunk4EET56IEjs.isRelationProp.call(void 0, prop)) {
324
324
  throw new Error(`\uC798\uBABB\uB41C FieldExpr ${key}.${group[0]}`);
325
325
  }
326
326
  const relSMD = SMDManager.get(prop.with);
327
- if (_chunkHATLA54Zjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkHATLA54Zjs.isOneToOneRelationProp.call(void 0, prop)) {
327
+ if (_chunk4EET56IEjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk4EET56IEjs.isOneToOneRelationProp.call(void 0, prop)) {
328
328
  if (group.length == 1 && (group[0] === "id" || group[0] == "id?")) {
329
329
  const idProp = relSMD.propsDict.id;
330
330
  return {
@@ -339,7 +339,7 @@ var SMD = class {
339
339
  }
340
340
  }
341
341
  const children = this.fieldExprsToPropNodes(group, relSMD);
342
- const nodeType = _chunkHATLA54Zjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunkHATLA54Zjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
342
+ const nodeType = _chunk4EET56IEjs.isBelongsToOneRelationProp.call(void 0, prop) || _chunk4EET56IEjs.isOneToOneRelationProp.call(void 0, prop) ? "object" : "array";
343
343
  return {
344
344
  prop,
345
345
  children,
@@ -353,7 +353,7 @@ var SMD = class {
353
353
  if (propName === prefix) {
354
354
  return null;
355
355
  }
356
- if (_chunkHATLA54Zjs.isRelationProp.call(void 0, prop)) {
356
+ if (_chunk4EET56IEjs.isRelationProp.call(void 0, prop)) {
357
357
  if (maxDepth < 0) {
358
358
  return null;
359
359
  }
@@ -393,7 +393,7 @@ var SMD = class {
393
393
  }
394
394
  const typesModulePath = `${basePath}/${this.names.fs}.types`;
395
395
  const typesFileDistPath = _path2.default.join(
396
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
396
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
397
397
  `dist/application/${typesModulePath}.js`
398
398
  );
399
399
  if (_fsextra2.default.existsSync(typesFileDistPath)) {
@@ -410,7 +410,7 @@ var SMD = class {
410
410
  }
411
411
  const enumsModulePath = `${basePath}/${this.names.fs}.enums`;
412
412
  const enumsFileDistPath = _path2.default.join(
413
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
413
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
414
414
  `/dist/application/${enumsModulePath}.js`
415
415
  );
416
416
  if (_fsextra2.default.existsSync(enumsFileDistPath)) {
@@ -454,7 +454,7 @@ var SMDManagerClass = class {
454
454
  return;
455
455
  }
456
456
  const pathPattern = _path2.default.join(
457
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
457
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
458
458
  "/dist/application/**/*.smd.js"
459
459
  );
460
460
  !doSilent && console.log(_chalk2.default.yellow(`autoload ${pathPattern}`));
@@ -550,14 +550,14 @@ console.log(_chalk2.default.bgBlue(`BEGIN ${/* @__PURE__ */ new Date()}`));
550
550
  _dotenv2.default.config();
551
551
  var migrator;
552
552
  async function bootstrap() {
553
- await _chunkHATLA54Zjs.Sonamu.init(false, false);
553
+ await _chunk4EET56IEjs.Sonamu.init(false, false);
554
554
  await _tsicli.tsicli.call(void 0, _process2.default.argv, {
555
555
  types: {
556
556
  "#entityId": {
557
557
  type: "autocomplete",
558
558
  name: "#entityId",
559
559
  message: "Please input #entityId",
560
- choices: _chunkHATLA54Zjs.EntityManager.getAllParentIds().map((entityId) => ({
560
+ choices: _chunk4EET56IEjs.EntityManager.getAllParentIds().map((entityId) => ({
561
561
  title: entityId,
562
562
  value: entityId
563
563
  }))
@@ -607,18 +607,18 @@ bootstrap().finally(async () => {
607
607
  if (migrator) {
608
608
  await migrator.destroy();
609
609
  }
610
- await _chunkHATLA54Zjs.FixtureManager.destory();
611
- await _chunkHATLA54Zjs.BaseModel.destroy();
610
+ await _chunk4EET56IEjs.FixtureManager.destory();
611
+ await _chunk4EET56IEjs.BaseModel.destroy();
612
612
  console.log(_chalk2.default.bgBlue(`END ${/* @__PURE__ */ new Date()}
613
613
  `));
614
614
  });
615
615
  async function setupMigrator() {
616
- migrator = new (0, _chunkHATLA54Zjs.Migrator)({
616
+ migrator = new (0, _chunk4EET56IEjs.Migrator)({
617
617
  mode: "dev"
618
618
  });
619
619
  }
620
620
  async function setupFixtureManager() {
621
- _chunkHATLA54Zjs.FixtureManager.init();
621
+ _chunk4EET56IEjs.FixtureManager.init();
622
622
  }
623
623
  async function migrate_run() {
624
624
  await setupMigrator();
@@ -643,24 +643,24 @@ async function migrate_reset() {
643
643
  await migrator.resetAll();
644
644
  }
645
645
  async function fixture_init() {
646
- const srcConfig = _chunkHATLA54Zjs.Sonamu.dbConfig.development_master;
646
+ const srcConfig = _chunk4EET56IEjs.Sonamu.dbConfig.development_master;
647
647
  const targets = [
648
648
  {
649
649
  label: "(REMOTE) Fixture DB",
650
- config: _chunkHATLA54Zjs.Sonamu.dbConfig.fixture_remote
650
+ config: _chunk4EET56IEjs.Sonamu.dbConfig.fixture_remote
651
651
  },
652
652
  {
653
653
  label: "(LOCAL) Fixture DB",
654
- config: _chunkHATLA54Zjs.Sonamu.dbConfig.fixture_local,
654
+ config: _chunk4EET56IEjs.Sonamu.dbConfig.fixture_local,
655
655
  toSkip: (() => {
656
- const remoteConn = _chunkHATLA54Zjs.Sonamu.dbConfig.fixture_remote.connection;
657
- const localConn = _chunkHATLA54Zjs.Sonamu.dbConfig.fixture_local.connection;
656
+ const remoteConn = _chunk4EET56IEjs.Sonamu.dbConfig.fixture_remote.connection;
657
+ const localConn = _chunk4EET56IEjs.Sonamu.dbConfig.fixture_local.connection;
658
658
  return remoteConn.host === localConn.host && remoteConn.database === localConn.database;
659
659
  })()
660
660
  },
661
661
  {
662
662
  label: "(LOCAL) Testing DB",
663
- config: _chunkHATLA54Zjs.Sonamu.dbConfig.test
663
+ config: _chunk4EET56IEjs.Sonamu.dbConfig.test
664
664
  }
665
665
  ];
666
666
  console.log("DUMP...");
@@ -705,15 +705,15 @@ async function fixture_init() {
705
705
  }
706
706
  async function fixture_import(entityId, recordIds) {
707
707
  await setupFixtureManager();
708
- await _chunkHATLA54Zjs.FixtureManager.importFixture(entityId, recordIds);
709
- await _chunkHATLA54Zjs.FixtureManager.sync();
708
+ await _chunk4EET56IEjs.FixtureManager.importFixture(entityId, recordIds);
709
+ await _chunk4EET56IEjs.FixtureManager.sync();
710
710
  }
711
711
  async function fixture_sync() {
712
712
  await setupFixtureManager();
713
- await _chunkHATLA54Zjs.FixtureManager.sync();
713
+ await _chunk4EET56IEjs.FixtureManager.sync();
714
714
  }
715
715
  async function stub_practice(name) {
716
- const practiceDir = _path2.default.join(_chunkHATLA54Zjs.Sonamu.apiRootPath, "src", "practices");
716
+ const practiceDir = _path2.default.join(_chunk4EET56IEjs.Sonamu.apiRootPath, "src", "practices");
717
717
  const fileNames = _fsextra2.default.readdirSync(practiceDir);
718
718
  const maxSeqNo = (() => {
719
719
  if (_fsextra2.default.existsSync(practiceDir) === false) {
@@ -756,22 +756,22 @@ async function stub_practice(name) {
756
756
  _child_process.execSync.call(void 0, `echo "${runCode}" | pbcopy`);
757
757
  }
758
758
  async function stub_entity(entityId) {
759
- await _chunkHATLA54Zjs.Sonamu.syncer.createEntity({ entityId });
759
+ await _chunk4EET56IEjs.Sonamu.syncer.createEntity({ entityId });
760
760
  }
761
761
  async function scaffold_model(entityId) {
762
- await _chunkHATLA54Zjs.Sonamu.syncer.generateTemplate("model", {
762
+ await _chunk4EET56IEjs.Sonamu.syncer.generateTemplate("model", {
763
763
  entityId
764
764
  });
765
765
  }
766
766
  async function scaffold_model_test(entityId) {
767
- await _chunkHATLA54Zjs.Sonamu.syncer.generateTemplate("model_test", {
767
+ await _chunk4EET56IEjs.Sonamu.syncer.generateTemplate("model_test", {
768
768
  entityId
769
769
  });
770
770
  }
771
771
  async function ui() {
772
772
  try {
773
773
  const sonamuUI = await Promise.resolve().then(() => _interopRequireWildcard(require("@sonamu-kit/ui")));
774
- sonamuUI.startServers(_chunkHATLA54Zjs.Sonamu.apiRootPath);
774
+ sonamuUI.startServers(_chunk4EET56IEjs.Sonamu.apiRootPath);
775
775
  } catch (e) {
776
776
  if (e instanceof Error && e.message.includes("isn't declared")) {
777
777
  console.log(`You need to install ${_chalk2.default.blue(`@sonamu-kit/ui`)} first.`);
@@ -810,7 +810,7 @@ async function smd_migration() {
810
810
  const parentNames = SMDManager.getNamesFromId(_nullishCoalesce(smd.parentId, () => ( smd.id)));
811
811
  const names = SMDManager.getNamesFromId(smd.id);
812
812
  const dstPath = _path2.default.join(
813
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
813
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
814
814
  "src",
815
815
  "application",
816
816
  parentNames.fs,
@@ -822,7 +822,7 @@ async function smd_migration() {
822
822
  _fsextra2.default.writeFileSync(dstPath, formatted);
823
823
  console.log(_chalk2.default.blue(`CREATED: ${dstPath}`));
824
824
  const srcSmdPath = _path2.default.join(
825
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
825
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
826
826
  "src",
827
827
  "application",
828
828
  parentNames.fs,
@@ -830,7 +830,7 @@ async function smd_migration() {
830
830
  );
831
831
  const dstSmdPath = srcSmdPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
832
832
  const srcEnumsPath = _path2.default.join(
833
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
833
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
834
834
  "src",
835
835
  "application",
836
836
  parentNames.fs,
@@ -838,7 +838,7 @@ async function smd_migration() {
838
838
  );
839
839
  const dstEnumsPath = srcEnumsPath.replace("/src/", "/dist/").replace(/\.ts$/, ".js");
840
840
  const srcGeneratedPath = _path2.default.join(
841
- _chunkHATLA54Zjs.Sonamu.apiRootPath,
841
+ _chunk4EET56IEjs.Sonamu.apiRootPath,
842
842
  "src",
843
843
  "application",
844
844
  parentNames.fs,
@@ -850,8 +850,8 @@ async function smd_migration() {
850
850
  dstSmdPath,
851
851
  srcEnumsPath,
852
852
  dstEnumsPath,
853
- ..._chunkHATLA54Zjs.Sonamu.config.sync.targets.map(
854
- (target) => srcEnumsPath.replace(_chunkHATLA54Zjs.Sonamu.apiRootPath, _path2.default.join(_chunkHATLA54Zjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
853
+ ..._chunk4EET56IEjs.Sonamu.config.sync.targets.map(
854
+ (target) => srcEnumsPath.replace(_chunk4EET56IEjs.Sonamu.apiRootPath, _path2.default.join(_chunk4EET56IEjs.Sonamu.appRootPath, target)).replace("/src/application/", "/src/services/")
855
855
  ),
856
856
  srcGeneratedPath,
857
857
  dstGeneratedPath
@@ -865,11 +865,11 @@ async function smd_migration() {
865
865
  });
866
866
  }
867
867
  console.log("Entity\uB85C \uB2E4\uC2DC \uB85C\uB4DC\uD569\uB2C8\uB2E4.");
868
- _chunkHATLA54Zjs.EntityManager.isAutoloaded = false;
869
- await _chunkHATLA54Zjs.EntityManager.autoload();
870
- const entityIds = _chunkHATLA54Zjs.EntityManager.getAllParentIds();
868
+ _chunk4EET56IEjs.EntityManager.isAutoloaded = false;
869
+ await _chunk4EET56IEjs.EntityManager.autoload();
870
+ const entityIds = _chunk4EET56IEjs.EntityManager.getAllParentIds();
871
871
  for await (const entityId of entityIds) {
872
- await _chunkHATLA54Zjs.Sonamu.syncer.generateTemplate("generated", { entityId });
872
+ await _chunk4EET56IEjs.Sonamu.syncer.generateTemplate("generated", { entityId });
873
873
  }
874
874
  }
875
875
  //# sourceMappingURL=cli.js.map