@aiao/rxdb-client-generator 0.0.7 → 0.0.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.
@@ -1,5 +1,5 @@
1
- import { PropertyType as d, RelationKind as f, ENTITY_BASE_METADATA_OPTIONS as S, TREE_ADJACENCY_LIST_ENTITY_BASE_OPTIONS as C, getEntityMetadata as B, transitionMetadata as N } from "@aiao/rxdb";
2
- import { omit as K, isObject as G, isArray as F, isNil as V, unionBy as v, capitalizeFirst as E, isFunction as U } from "@aiao/utils";
1
+ import { PropertyType as d, RelationKind as f, ENTITY_BASE_METADATA_OPTIONS as E, TREE_ADJACENCY_LIST_ENTITY_BASE_OPTIONS as N, getEntityMetadata as B, transitionMetadata as A } from "@aiao/rxdb";
2
+ import { omit as K, isObject as G, isArray as F, isNil as V, unionBy as v, capitalizeFirst as D, isFunction as U } from "@aiao/utils";
3
3
  const Y = (r, e) => {
4
4
  const t = T(r, e), s = !!r.nullable;
5
5
  let a = !0;
@@ -11,8 +11,8 @@ const Y = (r, e) => {
11
11
  hasExclamationToken: a,
12
12
  isReadonly: r.readonly
13
13
  };
14
- return V(r.default) || (o.initializer = L(r)), o;
15
- }, I = (r, e) => `${e.name}${r.name.charAt(0).toUpperCase() + r.name.slice(1)}KeyValue`, J = (r, e) => r.type !== d.keyValue || !("properties" in r) || !r.properties || r.properties.length === 0 ? "KeyValue" : I(r, e), H = (r, e) => r.type !== d.keyValue || !("properties" in r) || !r.properties || r.properties.length === 0 ? [] : r.properties.map((t) => ({
14
+ return V(r.default) || (o.initializer = H(r)), o;
15
+ }, R = (r, e) => `${e.name}${r.name.charAt(0).toUpperCase() + r.name.slice(1)}KeyValue`, J = (r, e) => r.type !== d.keyValue || !("properties" in r) || !r.properties || r.properties.length === 0 ? "KeyValue" : R(r, e), L = (r, e) => r.type !== d.keyValue || !("properties" in r) || !r.properties || r.properties.length === 0 ? [] : r.properties.map((t) => ({
16
16
  name: t.name,
17
17
  type: T(t, e),
18
18
  hasQuestionToken: t.nullable || !1,
@@ -52,7 +52,7 @@ const Y = (r, e) => {
52
52
  break;
53
53
  }
54
54
  return r.nullable && (t += " | null"), t;
55
- }, L = (r) => {
55
+ }, H = (r) => {
56
56
  switch (r.type) {
57
57
  case d.string:
58
58
  return `'${String(r.default)}'`;
@@ -62,32 +62,32 @@ const Y = (r, e) => {
62
62
  break;
63
63
  }
64
64
  return "";
65
- }, D = (r, e = /* @__PURE__ */ new Set()) => {
65
+ }, I = (r, e = /* @__PURE__ */ new Set()) => {
66
66
  if (G(r))
67
67
  for (const t in r)
68
- e.add(t), Object.prototype.hasOwnProperty.call(r, t) && D(Reflect.get(r, t), e);
68
+ e.add(t), Object.prototype.hasOwnProperty.call(r, t) && I(Reflect.get(r, t), e);
69
69
  else if (F(r))
70
70
  for (const t of r)
71
- D(t, e);
71
+ I(t, e);
72
72
  return e;
73
- }, x = /* @__PURE__ */ new Map();
73
+ }, w = /* @__PURE__ */ new Map();
74
74
  Object.keys(d).forEach((r) => {
75
75
  const e = d[r];
76
- x.set(e, r);
76
+ w.set(e, r);
77
77
  });
78
- const w = /* @__PURE__ */ new Map();
78
+ const O = /* @__PURE__ */ new Map();
79
79
  Object.keys(f).forEach((r) => {
80
80
  const e = f[r];
81
- w.set(e, r);
81
+ O.set(e, r);
82
82
  });
83
83
  function Q(r) {
84
- const e = K(r, ["propertyMap", "relationMap", "indexMap"]), t = D(e);
84
+ const e = K(r, ["propertyMap", "relationMap", "indexMap"]), t = I(e);
85
85
  let s = JSON.stringify(e, null, 2);
86
86
  return new Set(r.properties.map((o) => o.type).filter(Boolean)).forEach((o) => {
87
- const n = x.get(o);
87
+ const n = w.get(o);
88
88
  s = s.replaceAll(`"type": "${o}"`, `"type": PropertyType.${n}`);
89
89
  }), r.relations && new Set(r.relations.map((n) => n.kind)).forEach((n) => {
90
- const i = w.get(n);
90
+ const i = O.get(n);
91
91
  s = s.replaceAll(`"kind": "${n}"`, `"kind": RelationKind.${i}`);
92
92
  }), t.forEach((o) => {
93
93
  o.includes("-") || o.includes(" ") || (s = s.replaceAll(`"${o}":`, `${o}:`));
@@ -105,22 +105,17 @@ const q = ({
105
105
  docs: ["初始化数据"]
106
106
  }), o = (n, i = !1) => {
107
107
  if (n.type === d.keyValue && "properties" in n && n.properties && n.properties.length > 0) {
108
- const y = I(n, e), g = t.addInterface({
108
+ const y = R(n, e), g = t.addInterface({
109
109
  name: y,
110
110
  isExported: !0,
111
111
  docs: [n.displayName || `${n.name} keyValue 类型`]
112
112
  });
113
- H(n, e).forEach((m) => {
113
+ L(n, e).forEach((m) => {
114
114
  g.addProperty(m);
115
115
  });
116
116
  }
117
117
  const c = Y(n, e), { initializer: u, ...h } = c, l = [];
118
- switch (l.push(n.displayName || n.name), u && l.push(`@default ${u}`), c.type) {
119
- case "UUID":
120
- s.add("UUID");
121
- break;
122
- }
123
- i || a.addProperty({
118
+ l.push(n.displayName || n.name), u && l.push(`@default ${u}`), c.type === "UUID" && s.add("UUID"), i || a.addProperty({
124
119
  name: c.name,
125
120
  type: c.type,
126
121
  hasQuestionToken: !0,
@@ -295,7 +290,7 @@ const q = ({
295
290
  [d.stringArray]: "StringArray",
296
291
  [d.numberArray]: "NumberArray",
297
292
  [d.keyValue]: "KeyValue"
298
- }, R = (r) => X[r] ?? null, O = (r, e, t) => {
293
+ }, M = (r) => X[r] ?? null, j = (r, e, t) => {
299
294
  const s = r.length > 0 ? r.map((a) => a.key).join(".") + "." : "";
300
295
  return t ? `${s}${e}.${t}` : `${s}${e}`;
301
296
  }, ee = (r, e, t) => {
@@ -308,7 +303,7 @@ const q = ({
308
303
  s = "number";
309
304
  break;
310
305
  case d.keyValue:
311
- s = `Partial<${I(r, e)}>`;
306
+ s = `Partial<${R(r, e)}>`;
312
307
  break;
313
308
  default:
314
309
  t.length > 0 && (s = T(r, e));
@@ -322,17 +317,17 @@ const q = ({
322
317
  subRuleGroup: a
323
318
  }), te = (r, e, t, s, a) => {
324
319
  r.type !== d.keyValue || !("properties" in r) || !r.properties || r.properties.forEach((o) => {
325
- const n = R(o.type);
320
+ const n = M(o.type);
326
321
  if (!n) return;
327
- const i = O(t, s, o.name), c = T(o, e);
322
+ const i = j(t, s, o.name), c = T(o, e);
328
323
  a.push(b(n, e.name, i, c));
329
324
  });
330
325
  }, se = (r, e = []) => {
331
326
  const t = [];
332
327
  return Array.from(r.propertyMap.keys()).forEach((s) => {
333
- const a = r.propertyMap.get(s), o = R(a.type);
328
+ const a = r.propertyMap.get(s), o = M(a.type);
334
329
  if (o) {
335
- const n = ee(a, r, e), i = O(e, s);
330
+ const n = ee(a, r, e), i = j(e, s);
336
331
  t.push(b(o, r.name, i, n));
337
332
  }
338
333
  te(a, r, e, s, t);
@@ -341,7 +336,7 @@ const q = ({
341
336
  e.foreignKeyNames.forEach((s) => {
342
337
  const a = s.replace(/Id$/, ""), o = e.foreignKeyRelationMap.get(a);
343
338
  if (!o) return;
344
- const i = r.getMetadata(o.mappedEntity, o.mappedNamespace)?.propertyMap.get("id")?.type, c = i && R(i) || "UUID";
339
+ const i = r.getMetadata(o.mappedEntity, o.mappedNamespace)?.propertyMap.get("id")?.type, c = i && M(i) || "UUID";
345
340
  t.push(b(c, e.name, s));
346
341
  });
347
342
  }, ne = (r) => {
@@ -369,9 +364,9 @@ const q = ({
369
364
  if (o.length >= r.config.relationQueryDeep)
370
365
  return;
371
366
  const u = ne(i), h = [...o, { key: n, entity: e.name }];
372
- M(r, c, t, u, a, h);
367
+ S(r, c, t, u, a, h);
373
368
  });
374
- }, M = (r, e, t, s = [], a = [], o = []) => (t = t ?? e, a.push(...se(e, o)), re(r, e, a), ie(r, e, t, s, a, o), a), _ = (r, e) => r.map(({ rule: t, entity: s, key: a, valueType: o, subRuleGroup: n }) => (e.add(t), n ? `${t}<'${a}', ${n}>` : o ? a.includes(".") ? (e.add(`Relation${t}`), `Relation${t}<'${a}', ${o}>`) : `${t}<${s}, '${a}', ${o}>` : a.includes(".") ? (e.add(`Relation${t}`), `Relation${t}<'${a}'>`) : `${t}<${s}, '${a}'>`));
369
+ }, S = (r, e, t, s = [], a = [], o = []) => (t = t ?? e, a.push(...se(e, o)), re(r, e, a), ie(r, e, t, s, a, o), a), _ = (r, e) => r.map(({ rule: t, entity: s, key: a, valueType: o, subRuleGroup: n }) => (e.add(t), n ? `${t}<'${a}', ${n}>` : o ? a.includes(".") ? (e.add(`Relation${t}`), `Relation${t}<'${a}', ${o}>`) : `${t}<${s}, '${a}', ${o}>` : a.includes(".") ? (e.add(`Relation${t}`), `Relation${t}<'${a}'>`) : `${t}<${s}, '${a}'>`));
375
370
  class ae {
376
371
  generate(e) {
377
372
  this.generateProperties(e), this.generateMethods(e);
@@ -442,7 +437,7 @@ class ae {
442
437
  return s === "uuid" ? "UUID" : s === "string" ? "string" : s === "number" || s === "integer" ? "number" : "UUID";
443
438
  }
444
439
  }
445
- class j extends ae {
440
+ class k extends ae {
446
441
  name = "Repository";
447
442
  generateMethods(e) {
448
443
  const { metadata: t, file: s, rxdbNamedImports: a, staticTypesInterface: o } = e, { name: n } = t, i = this.getIdType(t);
@@ -451,7 +446,7 @@ class j extends ae {
451
446
  type: i,
452
447
  docs: ["id 类型"]
453
448
  });
454
- const c = M(e.generator, t), u = _(c, a), h = `
449
+ const c = S(e.generator, t), u = _(c, a), h = `
455
450
  |` + c.map((p) => `'${p.key}'`).join(`
456
451
  |`);
457
452
  s.addTypeAlias({
@@ -478,7 +473,7 @@ ${n}Rule>`,
478
473
  });
479
474
  const g = (p) => ({
480
475
  method: p,
481
- options: `${E(p)}Options<typeof ${n},${n}RuleGroup,${l}>`
476
+ options: `${D(p)}Options<typeof ${n},${n}RuleGroup,${l}>`
482
477
  });
483
478
  this.addStaticMethod(e, {
484
479
  method: "get",
@@ -519,7 +514,7 @@ ${n}Rule>`,
519
514
  optionsIsRequired: !0
520
515
  }), this.addStaticMethod(e, {
521
516
  method: "count",
522
- options: `${E("count")}Options<typeof ${n},${n}RuleGroup>`,
517
+ options: `${D("count")}Options<typeof ${n},${n}RuleGroup>`,
523
518
  returnType: "number",
524
519
  metHodDoc: "统计实体数量",
525
520
  example: `${n}.count({ where: { combinator: 'and', rules: [] } }).subscribe(total => console.log(total));`,
@@ -539,10 +534,10 @@ ${n}Rule>`,
539
534
  });
540
535
  }
541
536
  }
542
- class ce extends j {
537
+ class ce extends k {
543
538
  name = "TreeRepository";
544
539
  generateMethods(e) {
545
- const { metadata: t, rxdbNamedImports: s, generator: a, file: o, staticTypesInterface: n } = e, { name: i } = t, c = M(a, t).filter(
540
+ const { metadata: t, rxdbNamedImports: s, generator: a, file: o, staticTypesInterface: n } = e, { name: i } = t, c = S(a, t).filter(
546
541
  (y) => y.key.startsWith("children.") && y.key !== "children.id"
547
542
  ), u = _(c, s), h = c.map((y) => `'${y.key}'`).join(" | ");
548
543
  o.addTypeAlias({
@@ -561,7 +556,7 @@ class ce extends j {
561
556
  name: "entity",
562
557
  type: `${i}`,
563
558
  docs: ["查询的实体"]
564
- }), s.add(E("FindTreeOptions"));
559
+ }), s.add(D("FindTreeOptions"));
565
560
  const l = `FindTreeOptions<typeof ${i},${i}TreeRuleGroup>`;
566
561
  this.addStaticMethod(e, {
567
562
  method: "findDescendants",
@@ -600,7 +595,7 @@ ${i}.countAncestors({ entityId: grand.id }).subscribe(depth => console.log(depth
600
595
  });
601
596
  }
602
597
  }
603
- var k = /* @__PURE__ */ ((r) => (r.Var = "var", r.Let = "let", r.Const = "const", r))(k || {});
598
+ var C = /* @__PURE__ */ ((r) => (r.Var = "var", r.Let = "let", r.Const = "const", r))(C || {});
604
599
  class $ {
605
600
  /**
606
601
  * 渲染单个参数
@@ -808,7 +803,7 @@ class pe {
808
803
  return this.structure.name || "";
809
804
  }
810
805
  }
811
- class A {
806
+ class P {
812
807
  filePath;
813
808
  classes = [];
814
809
  interfaces = [];
@@ -880,18 +875,18 @@ class A {
880
875
  class le {
881
876
  files = /* @__PURE__ */ new Map();
882
877
  createSourceFile(e, t) {
883
- const s = new A(e);
878
+ const s = new P(e);
884
879
  return t && s.setContent(t), this.files.set(e, s), s;
885
880
  }
886
881
  addSourceFileAtPath(e) {
887
- const t = new A(e);
882
+ const t = new P(e);
888
883
  return this.files.set(e, t), t;
889
884
  }
890
885
  getSourceFiles() {
891
886
  return Array.from(this.files.values());
892
887
  }
893
888
  }
894
- const P = (r, e = "public") => `${e}_${r}`;
889
+ const x = (r, e = "public") => `${e}_${r}`;
895
890
  class ye {
896
891
  /**
897
892
  * Repository 生成器注册表
@@ -899,8 +894,9 @@ class ye {
899
894
  */
900
895
  repositoryGenerators = /* @__PURE__ */ new Map();
901
896
  entityMetadataOptionsMap = /* @__PURE__ */ new Map([
902
- ["EntityBase", [S]],
903
- ["TreeEntityBase", [C, S]]
897
+ ["EntityBase", [E]],
898
+ ["TreeAdjacencyListEntityBase", [N, E]],
899
+ ["TreeEntityBase", [N, E]]
904
900
  ]);
905
901
  metadataOptionsSet = /* @__PURE__ */ new Set();
906
902
  metadataSet = /* @__PURE__ */ new Set();
@@ -910,7 +906,7 @@ class ye {
910
906
  relationQueryDeep: 3
911
907
  };
912
908
  constructor(e) {
913
- Object.assign(this.config, e), this.config.relationQueryDeep < 1 && (this.config.relationQueryDeep = 1), this.registerRepositoryGenerator(new j()), this.registerRepositoryGenerator(new ce());
909
+ Object.assign(this.config, e), this.config.relationQueryDeep < 1 && (this.config.relationQueryDeep = 1), this.registerRepositoryGenerator(new k()), this.registerRepositoryGenerator(new ce());
914
910
  }
915
911
  /**
916
912
  * 添加实体配置
@@ -922,17 +918,17 @@ class ye {
922
918
  s = B(e);
923
919
  else {
924
920
  const a = e;
925
- t = t || a.extends?.length && this.entityMetadataOptionsMap.get(a.extends[0]) || [], s = N(e, t);
921
+ t = t || a.extends?.length && this.entityMetadataOptionsMap.get(a.extends[0]) || [], s = A(e, t);
926
922
  }
927
923
  this.metadataSet.add(s), this.metadataMap.set(`${s.namespace}_${s.name}`, s);
928
924
  }
929
925
  getMetadata(e, t) {
930
- return this.metadataMap.get(P(e, t));
926
+ return this.metadataMap.get(x(e, t));
931
927
  }
932
928
  registerAbstractMetadata(e, t) {
933
929
  this.entityMetadataOptionsMap.set(e, t), t.forEach((s) => {
934
- const a = N(s);
935
- this.metadataMap.set(P(s.name, s.namespace), a);
930
+ const a = A(s);
931
+ this.metadataMap.set(x(s.name, s.namespace), a);
936
932
  });
937
933
  }
938
934
  /**
@@ -1038,7 +1034,7 @@ ${h}: typeof ${h};
1038
1034
  isTypeOnly: !0,
1039
1035
  moduleSpecifier: "rxjs"
1040
1036
  }), s.addVariableStatement({
1041
- declarationKind: k.Const,
1037
+ declarationKind: C.Const,
1042
1038
  hasDeclareKeyword: !0,
1043
1039
  isExported: !0,
1044
1040
  declarations: [
@@ -1,16 +1,12 @@
1
1
  import { writeFileSync as _, mkdirSync as b } from "node:fs";
2
2
  import { normalize as f, resolve as P, join as C, dirname as M } from "node:path";
3
3
  import { Project as T, Node as y } from "ts-morph";
4
- import { a as N } from "./RxDBClientGenerator-DmFzgpuy.js";
4
+ import { a as N } from "./RxDBClientGenerator-6qmS8Mrd.js";
5
5
  import { ENTITY_BASE_METADATA_OPTIONS as w, TREE_ADJACENCY_LIST_ENTITY_BASE_OPTIONS as A, PropertyType as D, RelationKind as I, OnDeleteAction as S } from "@aiao/rxdb";
6
6
  import { glob as R } from "glob";
7
7
  function E(r) {
8
- switch (r) {
9
- case "EntityBase":
10
- return [w];
11
- default:
12
- return;
13
- }
8
+ if (r === "EntityBase")
9
+ return [w];
14
10
  }
15
11
  function x(r) {
16
12
  switch (r) {
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { existsSync as p } from "node:fs";
3
3
  import { resolve as a, dirname as d, normalize as l } from "node:path";
4
4
  import { pathToFileURL as m } from "node:url";
5
- import { b as h } from "./build-client-lib-BGlzuRcG.js";
5
+ import { b as h } from "./build-client-lib-Bkh60Zeb.js";
6
6
  async function b(r) {
7
7
  if (!p(r))
8
8
  throw new Error(`Config file not found: ${r}`);
@@ -1 +1 @@
1
- {"version":3,"file":"RxDBClientGenerator.d.ts","sourceRoot":"","sources":["../../src/core/RxDBClientGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAErB,UAAU,EAKX,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAI3F,OAAO,EAAE,OAAO,EAA2B,MAAM,uBAAuB,CAAC;AAEzE,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD;;GAEG;AACH,qBAAa,mBAAmB;IAC9B;;;OAGG;IACH,OAAO,CAAC,oBAAoB,CAA2C;IAEvE,wBAAwB,uCAGrB;IACH,kBAAkB,6BAAoC;IACtD,WAAW,uGAA6B;IACxC,WAAW,+GAAqC;IAChD,OAAO,EAAG,OAAO,CAAC;IAElB,MAAM,EAAE,QAAQ,CAAC,0BAA0B,CAAC,CAE1C;gBAEU,OAAO,CAAC,EAAE,0BAA0B;IAShD;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,qBAAqB,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE;IAetF,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAIzD,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE;IAQ7F;;;;;;;;;;OAUG;IACH,2BAA2B,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI;IAIlE;;;;OAIG;IACH,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAItE;;OAEG;IACH,IAAI;IAMJ,cAAc;IAId;;;OAGG;IACH,oBAAoB;IAgEpB;;;OAGG;IACH,OAAO,CAAC,2BAA2B;CAoEpC"}
1
+ {"version":3,"file":"RxDBClientGenerator.d.ts","sourceRoot":"","sources":["../../src/core/RxDBClientGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,EAErB,UAAU,EAKX,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAI3F,OAAO,EAAE,OAAO,EAA2B,MAAM,uBAAuB,CAAC;AAEzE,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD;;GAEG;AACH,qBAAa,mBAAmB;IAC9B;;;OAGG;IACH,OAAO,CAAC,oBAAoB,CAA2C;IAEvE,wBAAwB,uCAIrB;IACH,kBAAkB,6BAAoC;IACtD,WAAW,uGAA6B;IACxC,WAAW,+GAAqC;IAChD,OAAO,EAAG,OAAO,CAAC;IAElB,MAAM,EAAE,QAAQ,CAAC,0BAA0B,CAAC,CAE1C;gBAEU,OAAO,CAAC,EAAE,0BAA0B;IAShD;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,qBAAqB,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,qBAAqB,EAAE;IAetF,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAIzD,wBAAwB,CAAC,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,qBAAqB,EAAE;IAQ7F;;;;;;;;;;OAUG;IACH,2BAA2B,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI;IAIlE;;;;OAIG;IACH,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAItE;;OAEG;IACH,IAAI;IAMJ,cAAc;IAId;;;OAGG;IACH,oBAAoB;IAgEpB;;;OAGG;IACH,OAAO,CAAC,2BAA2B;CAoEpC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as a, a as o } from "./RxDBClientGenerator-DmFzgpuy.js";
1
+ import { R as a, a as o } from "./RxDBClientGenerator-6qmS8Mrd.js";
2
2
  export {
3
3
  a as RepositoryGeneratorBase,
4
4
  o as RxDBClientGenerator
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as i } from "./build-client-lib-BGlzuRcG.js";
1
+ import { b as i } from "./build-client-lib-Bkh60Zeb.js";
2
2
  function l(n) {
3
3
  return {
4
4
  name: "rxdb-client-generator-vite-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiao/rxdb-client-generator",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -28,6 +28,9 @@
28
28
  "dist",
29
29
  "!**/*.tsbuildinfo"
30
30
  ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
31
34
  "nx": {
32
35
  "name": "rxdb-client-generator",
33
36
  "tags": [
@@ -37,7 +40,7 @@
37
40
  "dependencies": {
38
41
  "ts-morph": "^27.0.2",
39
42
  "glob": "^13.0.0",
40
- "@aiao/rxdb": "0.0.7",
41
- "@aiao/utils": "0.0.7"
43
+ "@aiao/rxdb": "0.0.9",
44
+ "@aiao/utils": "0.0.9"
42
45
  }
43
46
  }