@rexeus/typeweaver 0.0.2 → 0.0.4

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.
@@ -2257,7 +2257,7 @@ var we = g((ir, xa) => {
2257
2257
  }) : r[n] = t(i, r);
2258
2258
  }
2259
2259
  return r;
2260
- }, _p = function() {
2260
+ }, _p = (function() {
2261
2261
  function t() {
2262
2262
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2263
2263
  xp(this, t);
@@ -2286,7 +2286,7 @@ var we = g((ir, xa) => {
2286
2286
  }, t.prototype.toString = function() {
2287
2287
  return [this.spaces.before, String(this.value), this.spaces.after].join("");
2288
2288
  }, t;
2289
- }();
2289
+ })();
2290
2290
  ir.default = _p;
2291
2291
  xa.exports = ir.default;
2292
2292
  });
@@ -2296,7 +2296,7 @@ var B = g((M) => {
2296
2296
  });
2297
2297
  var ar = g((or, ba) => {
2298
2298
  or.__esModule = true;
2299
- var Ep = /* @__PURE__ */ function() {
2299
+ var Ep = /* @__PURE__ */ (function() {
2300
2300
  function t(e, s) {
2301
2301
  for (var r = 0; r < s.length; r++) {
2302
2302
  var n = s[r];
@@ -2306,7 +2306,7 @@ var ar = g((or, ba) => {
2306
2306
  return function(e, s, r) {
2307
2307
  return s && t(e.prototype, s), r && t(e, r), e;
2308
2308
  };
2309
- }(), kp = we(), Sp = Op(kp), Tp = B(), Z = Cp(Tp);
2309
+ })(), kp = we(), Sp = Op(kp), Tp = B(), Z = Cp(Tp);
2310
2310
  function Cp(t) {
2311
2311
  if (t && t.__esModule) return t;
2312
2312
  var e = {};
@@ -2327,7 +2327,7 @@ var ar = g((or, ba) => {
2327
2327
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2328
2328
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2329
2329
  }
2330
- var Rp = function(t) {
2330
+ var Rp = (function(t) {
2331
2331
  Pp(e, t);
2332
2332
  function e(s) {
2333
2333
  Ap(this, e);
@@ -2459,7 +2459,7 @@ var ar = g((or, ba) => {
2459
2459
  } }, { key: "length", get: function() {
2460
2460
  return this.nodes.length;
2461
2461
  } }]), e;
2462
- }(Sp.default);
2462
+ })(Sp.default);
2463
2463
  or.default = Rp;
2464
2464
  ba.exports = or.default;
2465
2465
  });
@@ -2480,7 +2480,7 @@ var Ea = g((ur, _a) => {
2480
2480
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2481
2481
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2482
2482
  }
2483
- var Fp = function(t) {
2483
+ var Fp = (function(t) {
2484
2484
  Up(e, t);
2485
2485
  function e(s) {
2486
2486
  Bp(this, e);
@@ -2494,7 +2494,7 @@ var Ea = g((ur, _a) => {
2494
2494
  }, "").slice(0, -1);
2495
2495
  return this.trailingComma ? r + "," : r;
2496
2496
  }, e;
2497
- }(qp.default);
2497
+ })(qp.default);
2498
2498
  ur.default = Fp;
2499
2499
  _a.exports = ur.default;
2500
2500
  });
@@ -2515,7 +2515,7 @@ var Sa = g((lr, ka) => {
2515
2515
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2516
2516
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2517
2517
  }
2518
- var Hp = function(t) {
2518
+ var Hp = (function(t) {
2519
2519
  jp(e, t);
2520
2520
  function e(s) {
2521
2521
  zp(this, e);
@@ -2523,13 +2523,13 @@ var Sa = g((lr, ka) => {
2523
2523
  return r.type = Yp.SELECTOR, r;
2524
2524
  }
2525
2525
  return e;
2526
- }(Wp.default);
2526
+ })(Wp.default);
2527
2527
  lr.default = Hp;
2528
2528
  ka.exports = lr.default;
2529
2529
  });
2530
2530
  var Ue = g((cr, Ta) => {
2531
2531
  cr.__esModule = true;
2532
- var Kp = /* @__PURE__ */ function() {
2532
+ var Kp = /* @__PURE__ */ (function() {
2533
2533
  function t(e, s) {
2534
2534
  for (var r = 0; r < s.length; r++) {
2535
2535
  var n = s[r];
@@ -2539,7 +2539,7 @@ var Ue = g((cr, Ta) => {
2539
2539
  return function(e, s, r) {
2540
2540
  return s && t(e.prototype, s), r && t(e, r), e;
2541
2541
  };
2542
- }(), Qp = we(), Jp = Xp(Qp);
2542
+ })(), Qp = we(), Jp = Xp(Qp);
2543
2543
  function Xp(t) {
2544
2544
  return t && t.__esModule ? t : { default: t };
2545
2545
  }
@@ -2554,7 +2554,7 @@ var Ue = g((cr, Ta) => {
2554
2554
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2555
2555
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2556
2556
  }
2557
- var rh = function(t) {
2557
+ var rh = (function(t) {
2558
2558
  th(e, t);
2559
2559
  function e() {
2560
2560
  return Zp(this, e), eh(this, t.apply(this, arguments));
@@ -2565,7 +2565,7 @@ var Ue = g((cr, Ta) => {
2565
2565
  var r = this.namespace;
2566
2566
  return r ? (typeof r == "string" ? r : "") + "|" : "";
2567
2567
  } }]), e;
2568
- }(Jp.default);
2568
+ })(Jp.default);
2569
2569
  cr.default = rh;
2570
2570
  Ta.exports = cr.default;
2571
2571
  });
@@ -2586,7 +2586,7 @@ var Oa = g((fr, Ca) => {
2586
2586
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2587
2587
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2588
2588
  }
2589
- var ch = function(t) {
2589
+ var ch = (function(t) {
2590
2590
  lh(e, t);
2591
2591
  function e(s) {
2592
2592
  ah(this, e);
@@ -2596,7 +2596,7 @@ var Oa = g((fr, Ca) => {
2596
2596
  return e.prototype.toString = function() {
2597
2597
  return [this.spaces.before, this.ns, "." + this.value, this.spaces.after].join("");
2598
2598
  }, e;
2599
- }(nh.default);
2599
+ })(nh.default);
2600
2600
  fr.default = ch;
2601
2601
  Ca.exports = fr.default;
2602
2602
  });
@@ -2617,7 +2617,7 @@ var Na = g((pr, Aa) => {
2617
2617
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2618
2618
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2619
2619
  }
2620
- var wh = function(t) {
2620
+ var wh = (function(t) {
2621
2621
  gh(e, t);
2622
2622
  function e(s) {
2623
2623
  mh(this, e);
@@ -2625,7 +2625,7 @@ var Na = g((pr, Aa) => {
2625
2625
  return r.type = hh.COMMENT, r;
2626
2626
  }
2627
2627
  return e;
2628
- }(ph.default);
2628
+ })(ph.default);
2629
2629
  pr.default = wh;
2630
2630
  Aa.exports = pr.default;
2631
2631
  });
@@ -2646,7 +2646,7 @@ var Ra = g((hr, Pa) => {
2646
2646
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2647
2647
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2648
2648
  }
2649
- var Th = function(t) {
2649
+ var Th = (function(t) {
2650
2650
  Sh(e, t);
2651
2651
  function e(s) {
2652
2652
  Eh(this, e);
@@ -2656,7 +2656,7 @@ var Ra = g((hr, Pa) => {
2656
2656
  return e.prototype.toString = function() {
2657
2657
  return [this.spaces.before, this.ns, "#" + this.value, this.spaces.after].join("");
2658
2658
  }, e;
2659
- }(xh.default);
2659
+ })(xh.default);
2660
2660
  hr.default = Th;
2661
2661
  Pa.exports = hr.default;
2662
2662
  });
@@ -2677,7 +2677,7 @@ var qa = g((dr, Ia) => {
2677
2677
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2678
2678
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2679
2679
  }
2680
- var qh = function(t) {
2680
+ var qh = (function(t) {
2681
2681
  Ih(e, t);
2682
2682
  function e(s) {
2683
2683
  Ph(this, e);
@@ -2685,7 +2685,7 @@ var qa = g((dr, Ia) => {
2685
2685
  return r.type = Ah.TAG, r;
2686
2686
  }
2687
2687
  return e;
2688
- }(Oh.default);
2688
+ })(Oh.default);
2689
2689
  dr.default = qh;
2690
2690
  Ia.exports = dr.default;
2691
2691
  });
@@ -2706,7 +2706,7 @@ var Da = g((mr, La) => {
2706
2706
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2707
2707
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2708
2708
  }
2709
- var Wh = function(t) {
2709
+ var Wh = (function(t) {
2710
2710
  $h(e, t);
2711
2711
  function e(s) {
2712
2712
  Uh(this, e);
@@ -2714,7 +2714,7 @@ var Da = g((mr, La) => {
2714
2714
  return r.type = Bh.STRING, r;
2715
2715
  }
2716
2716
  return e;
2717
- }(Dh.default);
2717
+ })(Dh.default);
2718
2718
  mr.default = Wh;
2719
2719
  La.exports = mr.default;
2720
2720
  });
@@ -2735,7 +2735,7 @@ var Ma = g((yr, Ba) => {
2735
2735
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2736
2736
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2737
2737
  }
2738
- var Qh = function(t) {
2738
+ var Qh = (function(t) {
2739
2739
  Kh(e, t);
2740
2740
  function e(s) {
2741
2741
  jh(this, e);
@@ -2746,7 +2746,7 @@ var Ma = g((yr, Ba) => {
2746
2746
  var r = this.length ? "(" + this.map(String).join(",") + ")" : "";
2747
2747
  return [this.spaces.before, String(this.value), r, this.spaces.after].join("");
2748
2748
  }, e;
2749
- }(Vh.default);
2749
+ })(Vh.default);
2750
2750
  yr.default = Qh;
2751
2751
  Ba.exports = yr.default;
2752
2752
  });
@@ -2767,7 +2767,7 @@ var Fa = g((gr, Ua) => {
2767
2767
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2768
2768
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2769
2769
  }
2770
- var nd = function(t) {
2770
+ var nd = (function(t) {
2771
2771
  sd(e, t);
2772
2772
  function e(s) {
2773
2773
  td(this, e);
@@ -2778,7 +2778,7 @@ var Fa = g((gr, Ua) => {
2778
2778
  var r = [this.spaces.before, "[", this.ns, this.attribute];
2779
2779
  return this.operator && r.push(this.operator), this.value && r.push(this.value), this.raws.insensitive ? r.push(this.raws.insensitive) : this.insensitive && r.push(" i"), r.push("]"), r.concat(this.spaces.after).join("");
2780
2780
  }, e;
2781
- }(Xh.default);
2781
+ })(Xh.default);
2782
2782
  gr.default = nd;
2783
2783
  Ua.exports = gr.default;
2784
2784
  });
@@ -2799,7 +2799,7 @@ var Wa = g((wr, $a) => {
2799
2799
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2800
2800
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2801
2801
  }
2802
- var pd = function(t) {
2802
+ var pd = (function(t) {
2803
2803
  fd(e, t);
2804
2804
  function e(s) {
2805
2805
  ld(this, e);
@@ -2807,7 +2807,7 @@ var Wa = g((wr, $a) => {
2807
2807
  return r.type = ad.UNIVERSAL, r.value = "*", r;
2808
2808
  }
2809
2809
  return e;
2810
- }(od.default);
2810
+ })(od.default);
2811
2811
  wr.default = pd;
2812
2812
  $a.exports = wr.default;
2813
2813
  });
@@ -2828,7 +2828,7 @@ var Va = g((vr, Ya) => {
2828
2828
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2829
2829
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2830
2830
  }
2831
- var xd = function(t) {
2831
+ var xd = (function(t) {
2832
2832
  vd(e, t);
2833
2833
  function e(s) {
2834
2834
  gd(this, e);
@@ -2836,7 +2836,7 @@ var Va = g((vr, Ya) => {
2836
2836
  return r.type = md.COMBINATOR, r;
2837
2837
  }
2838
2838
  return e;
2839
- }(dd.default);
2839
+ })(dd.default);
2840
2840
  vr.default = xd;
2841
2841
  Ya.exports = vr.default;
2842
2842
  });
@@ -2857,7 +2857,7 @@ var Ga = g((xr, za) => {
2857
2857
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
2858
2858
  t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: false, writable: true, configurable: true } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
2859
2859
  }
2860
- var Od = function(t) {
2860
+ var Od = (function(t) {
2861
2861
  Cd(e, t);
2862
2862
  function e(s) {
2863
2863
  Sd(this, e);
@@ -2865,7 +2865,7 @@ var Ga = g((xr, za) => {
2865
2865
  return r.type = Ed.NESTING, r.value = "&", r;
2866
2866
  }
2867
2867
  return e;
2868
- }(_d.default);
2868
+ })(_d.default);
2869
2869
  xr.default = Od;
2870
2870
  za.exports = xr.default;
2871
2871
  });
@@ -2965,7 +2965,7 @@ var su = g((kr, ru) => {
2965
2965
  });
2966
2966
  var ou = g((Sr, iu) => {
2967
2967
  Sr.__esModule = true;
2968
- var $d = /* @__PURE__ */ function() {
2968
+ var $d = /* @__PURE__ */ (function() {
2969
2969
  function t(e, s) {
2970
2970
  for (var r = 0; r < s.length; r++) {
2971
2971
  var n = s[r];
@@ -2975,7 +2975,7 @@ var ou = g((Sr, iu) => {
2975
2975
  return function(e, s, r) {
2976
2976
  return s && t(e.prototype, s), r && t(e, r), e;
2977
2977
  };
2978
- }(), Wd = Ds(), Yd = I(Wd), Vd = Bs(), Vs = I(Vd), zd = Ms(), Gd = I(zd), jd = Ea(), Hd = I(jd), Kd = Sa(), zs = I(Kd), Qd = Oa(), Jd = I(Qd), Xd = Na(), Zd = I(Xd), em = Ra(), tm = I(em), rm = qa(), sm = I(rm), nm = Da(), im = I(nm), om = Ma(), am = I(om), um = Fa(), lm = I(um), cm = Wa(), fm = I(cm), pm = Va(), hm = I(pm), dm = Ga(), mm = I(dm), ym = Ha(), gm = I(ym), wm = su(), nu = I(wm), vm = B(), xm = bm(vm);
2978
+ })(), Wd = Ds(), Yd = I(Wd), Vd = Bs(), Vs = I(Vd), zd = Ms(), Gd = I(zd), jd = Ea(), Hd = I(jd), Kd = Sa(), zs = I(Kd), Qd = Oa(), Jd = I(Qd), Xd = Na(), Zd = I(Xd), em = Ra(), tm = I(em), rm = qa(), sm = I(rm), nm = Da(), im = I(nm), om = Ma(), am = I(om), um = Fa(), lm = I(um), cm = Wa(), fm = I(cm), pm = Va(), hm = I(pm), dm = Ga(), mm = I(dm), ym = Ha(), gm = I(ym), wm = su(), nu = I(wm), vm = B(), xm = bm(vm);
2979
2979
  function bm(t) {
2980
2980
  if (t && t.__esModule) return t;
2981
2981
  var e = {};
@@ -2988,7 +2988,7 @@ var ou = g((Sr, iu) => {
2988
2988
  function _m(t, e) {
2989
2989
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
2990
2990
  }
2991
- var Em = function() {
2991
+ var Em = (function() {
2992
2992
  function t(e) {
2993
2993
  _m(this, t), this.input = e, this.lossy = e.options.lossless === false, this.position = 0, this.root = new Hd.default();
2994
2994
  var s = new zs.default();
@@ -3158,13 +3158,13 @@ var ou = g((Sr, iu) => {
3158
3158
  } }, { key: "prevToken", get: function() {
3159
3159
  return this.tokens[this.position - 1];
3160
3160
  } }]), t;
3161
- }();
3161
+ })();
3162
3162
  Sr.default = Em;
3163
3163
  iu.exports = Sr.default;
3164
3164
  });
3165
3165
  var uu = g((Tr, au) => {
3166
3166
  Tr.__esModule = true;
3167
- var km = /* @__PURE__ */ function() {
3167
+ var km = /* @__PURE__ */ (function() {
3168
3168
  function t(e, s) {
3169
3169
  for (var r = 0; r < s.length; r++) {
3170
3170
  var n = s[r];
@@ -3174,14 +3174,14 @@ var uu = g((Tr, au) => {
3174
3174
  return function(e, s, r) {
3175
3175
  return s && t(e.prototype, s), r && t(e, r), e;
3176
3176
  };
3177
- }(), Sm = ou(), Tm = Cm(Sm);
3177
+ })(), Sm = ou(), Tm = Cm(Sm);
3178
3178
  function Cm(t) {
3179
3179
  return t && t.__esModule ? t : { default: t };
3180
3180
  }
3181
3181
  function Om(t, e) {
3182
3182
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
3183
3183
  }
3184
- var Am = function() {
3184
+ var Am = (function() {
3185
3185
  function t(e) {
3186
3186
  return Om(this, t), this.func = e || function() {
3187
3187
  }, this;
@@ -3194,7 +3194,7 @@ var uu = g((Tr, au) => {
3194
3194
  }, km(t, [{ key: "result", get: function() {
3195
3195
  return String(this.res);
3196
3196
  } }]), t;
3197
- }();
3197
+ })();
3198
3198
  Tr.default = Am;
3199
3199
  au.exports = Tr.default;
3200
3200
  });
@@ -1,11 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import 'tsx';
3
- import './cli-C3cTfNLj.js';
3
+ import './cli-Cz6q9I7F.js';
4
4
  import 'path';
5
+ import 'url';
6
+ import 'commander';
5
7
  import 'fs';
6
- import '@rexeus/typeweaver-core';
8
+ import '@rexeus/typeweaver-gen';
9
+ import '@rexeus/typeweaver-types';
10
+ import 'ejs';
7
11
  import 'module';
8
- import 'url';
9
12
  import 'process';
10
13
  import 'os';
11
14
  import 'tty';
@@ -13,6 +16,5 @@ import 'fs/promises';
13
16
  import 'assert';
14
17
  import 'v8';
15
18
  import 'util';
16
- import '@rexeus/typeweaver-gen';
17
- import '@rexeus/typeweaver-types';
18
- import 'commander';
19
+ import '@rexeus/typeweaver-core';
20
+ import 'zod/v4';
@@ -1,3 +1,11 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by typeweaver.
4
+ * DO NOT EDIT. Instead, modify the source definition file and generate again.
5
+ *
6
+ * @generated by @rexeus/typeweaver
7
+ */
8
+
1
9
  <% for (const indexPath of indexPaths) { %>
2
10
  export * from "<%= indexPath %>";
3
11
  <% } %>
@@ -3516,10 +3516,10 @@ function z2(e, t) {
3516
3516
  return V2(e) & t;
3517
3517
  }
3518
3518
  function F2(e, t, a) {
3519
- return e.kind >= 0 && e.kind <= 165 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = T1(e) | 536870912), W2(e.modifierFlagsCache));
3519
+ return e.kind >= 0 && e.kind <= 165 ? 0 : (e.modifierFlagsCache & 536870912 || (e.modifierFlagsCache = T1(e) | 536870912), a || t && ea(e) ? (!(e.modifierFlagsCache & 268435456) && e.parent && (e.modifierFlagsCache |= b1(e) | 268435456), v1(e.modifierFlagsCache)) : W2(e.modifierFlagsCache));
3520
3520
  }
3521
3521
  function V2(e) {
3522
- return F2(e);
3522
+ return F2(e, false);
3523
3523
  }
3524
3524
  function b1(e) {
3525
3525
  let t = 0;
@@ -3521,7 +3521,7 @@ var ao = { bracketSpacing: Ct.bracketSpacing, singleQuote: Ct.singleQuote, prose
3521
3521
  var tr = {};
3522
3522
  rr(tr, { yaml: () => Ga });
3523
3523
  var Mt = `
3524
- `, Rr = "\r", Dr = function() {
3524
+ `, Rr = "\r", Dr = (function() {
3525
3525
  function t(e) {
3526
3526
  this.length = e.length;
3527
3527
  for (var n = [0], r = 0; r < e.length; ) switch (e[r]) {
@@ -3549,7 +3549,7 @@ var Mt = `
3549
3549
  var n = this.offsets[e], r = e === this.offsets.length - 1 ? this.length : this.offsets[e + 1];
3550
3550
  return r - n;
3551
3551
  }, t;
3552
- }();
3552
+ })();
3553
3553
  function $(t, e = null) {
3554
3554
  "children" in t && t.children.forEach((n) => $(n, t)), "anchor" in t && t.anchor && $(t.anchor, t), "tag" in t && t.tag && $(t.tag, t), "leadingComments" in t && t.leadingComments.forEach((n) => $(n, t)), "middleComments" in t && t.middleComments.forEach((n) => $(n, t)), "indicatorComment" in t && t.indicatorComment && $(t.indicatorComment, t), "trailingComment" in t && t.trailingComment && $(t.trailingComment, t), "endComments" in t && t.endComments.forEach((n) => $(n, t)), Object.defineProperty(t, "_parent", { value: e, enumerable: false });
3555
3555
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rexeus/typeweaver",
3
- "version": "0.0.2",
4
- "description": "Command-line interface for the TypeWeaver API framework",
3
+ "version": "0.0.4",
4
+ "description": "Command-line interface for the typeweaver API framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -17,7 +17,9 @@
17
17
  "files": [
18
18
  "dist",
19
19
  "package.json",
20
- "README.md"
20
+ "README.md",
21
+ "LICENSE",
22
+ "NOTICE"
21
23
  ],
22
24
  "keywords": [
23
25
  "api",
@@ -29,7 +31,7 @@
29
31
  "typeweaver"
30
32
  ],
31
33
  "author": "Dennis Wentzien <dw@rexeus.com>",
32
- "license": "ISC",
34
+ "license": "Apache-2.0",
33
35
  "repository": {
34
36
  "type": "git",
35
37
  "url": "git+https://github.com/rexeus/typeweaver.git",
@@ -40,35 +42,46 @@
40
42
  },
41
43
  "homepage": "https://github.com/rexeus/typeweaver#readme",
42
44
  "devDependencies": {
43
- "axios": "^1.9.0",
45
+ "axios": "^1.11.0",
44
46
  "case": "^1.6.3",
45
47
  "hono": "^4.6.14",
46
- "@rexeus/typeweaver-core": "^0.0.2",
47
- "@rexeus/typeweaver-gen": "^0.0.2",
48
- "@rexeus/typeweaver-types": "^0.0.2",
49
- "@rexeus/typeweaver-hono": "^0.0.2",
50
- "@rexeus/typeweaver-clients": "^0.0.2",
51
- "@rexeus/typeweaver-aws-cdk": "^0.0.2"
48
+ "zod": "^3.25.67",
49
+ "@rexeus/typeweaver-core": "^0.0.4",
50
+ "@rexeus/typeweaver-gen": "^0.0.4",
51
+ "@rexeus/typeweaver-types": "^0.0.4",
52
+ "@rexeus/typeweaver-clients": "^0.0.4",
53
+ "@rexeus/typeweaver-hono": "^0.0.4",
54
+ "@rexeus/typeweaver-aws-cdk": "^0.0.4"
52
55
  },
53
56
  "peerDependencies": {
54
- "@rexeus/typeweaver-core": "^0.0.2",
55
- "@rexeus/typeweaver-gen": "^0.0.2",
56
- "@rexeus/typeweaver-types": "^0.0.2",
57
- "@rexeus/typeweaver-clients": "^0.0.2",
58
- "@rexeus/typeweaver-aws-cdk": "^0.0.2",
59
- "@rexeus/typeweaver-hono": "^0.0.2"
57
+ "axios": "^1.11.0",
58
+ "case": "^1.6.3",
59
+ "hono": "^4.6.14",
60
+ "zod": "^3.25.67",
61
+ "@rexeus/typeweaver-core": "^0.0.4",
62
+ "@rexeus/typeweaver-gen": "^0.0.4",
63
+ "@rexeus/typeweaver-types": "^0.0.4",
64
+ "@rexeus/typeweaver-clients": "^0.0.4",
65
+ "@rexeus/typeweaver-aws-cdk": "^0.0.4",
66
+ "@rexeus/typeweaver-hono": "^0.0.4"
60
67
  },
61
68
  "dependencies": {
62
69
  "commander": "^14.0.0",
70
+ "ejs": "^3.1.10",
63
71
  "tsx": "^4.19.4"
64
72
  },
65
73
  "scripts": {
66
74
  "cli": "tsx src/cli.ts",
67
- "typecheck": "tsc --noEmit --project tsconfig.test.json",
75
+ "typecheck": "tsc --noEmit",
68
76
  "format": "prettier --write .",
69
- "build": "pkgroll --clean-dist && cp -r ./src/generators/templates ./dist/templates",
77
+ "build": "pkgroll --clean-dist && cp -r ./src/generators/templates ./dist/templates && cp ../../LICENSE ../../NOTICE ./dist/",
70
78
  "preversion": "npm run build",
71
79
  "test:bundle": "pnpm run build && node dist/run-cli-with-tsx.js generate --output test/output --input test/definition --plugins clients,aws-cdk,hono",
72
- "test:gen": "tsx src/cli.ts generate --output test/output --input test/definition --plugins clients,aws-cdk,hono"
80
+ "test:gen": "pnpm run test:gen:types && pnpm run test:gen:clients && pnpm run test:gen:aws-cdk && pnpm run test:gen:hono && pnpm run test:gen:all",
81
+ "test:gen:types": "tsx src/cli.ts generate --output test/outputs/types --input ../test-utils/src/test-project/definition --shared ../test-utils/src/test-project/definition/shared",
82
+ "test:gen:clients": "tsx src/cli.ts generate --output test/outputs/clients --input ../test-utils/src/test-project/definition --plugins clients --shared ../test-utils/src/test-project/definition/shared",
83
+ "test:gen:aws-cdk": "tsx src/cli.ts generate --output test/outputs/aws-cdk --input ../test-utils/src/test-project/definition --plugins aws-cdk --shared ../test-utils/src/test-project/definition/shared",
84
+ "test:gen:hono": "tsx src/cli.ts generate --output test/outputs/hono --input ../test-utils/src/test-project/definition --plugins hono --shared ../test-utils/src/test-project/definition/shared",
85
+ "test:gen:all": "tsx src/cli.ts generate --output test/outputs/all --input ../test-utils/src/test-project/definition --plugins clients,aws-cdk,hono --shared ../test-utils/src/test-project/definition/shared"
73
86
  }
74
87
  }