@voidzero-dev/vite-plus-core 0.1.12-alpha.2 → 0.1.13-alpha.0

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.
@@ -3,7 +3,6 @@ import { createRequire } from "node:module";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import process$1, { cwd } from "node:process";
5
5
  import readline from "node:readline";
6
- import { createRequire as createRequire$1 } from "module";
7
6
  import { spawn } from "node:child_process";
8
7
  import { delimiter, dirname, normalize, resolve } from "node:path";
9
8
  import { PassThrough } from "node:stream";
@@ -173,7 +172,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
173
172
  module.exports = w, w.default = w;
174
173
  })))(), 1)).default;
175
174
  //#endregion
176
- //#region ../../node_modules/.pnpm/tsdown@0.21.2_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.2_@tsdown+exe@0.21.2_@type_059aa640a91d945cefc9d8c8db7a9cd0/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
175
+ //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_17eb19013b58e1a32121480e0690eafa/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
177
176
  const LogLevels = {
178
177
  silent: 0,
179
178
  error: 1,
@@ -297,73 +296,55 @@ function hue2rgb(p, q, t) {
297
296
  return p;
298
297
  }
299
298
  //#endregion
300
- //#region ../../node_modules/.pnpm/tsdown@0.21.2_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.2_@tsdown+exe@0.21.2_@type_059aa640a91d945cefc9d8c8db7a9cd0/node_modules/tsdown/dist/package-B0nLlt00.mjs
301
- var version = "0.21.2";
299
+ //#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_17eb19013b58e1a32121480e0690eafa/node_modules/tsdown/dist/package-BV2VRL7Z.mjs
300
+ var version = "0.21.4";
302
301
  //#endregion
303
- //#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
304
- var l = Object.create;
305
- var u = Object.defineProperty;
306
- var d = Object.getOwnPropertyDescriptor;
307
- var f = Object.getOwnPropertyNames;
308
- var p = Object.getPrototypeOf;
309
- var m = Object.prototype.hasOwnProperty;
310
- var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
311
- var g = (e, t, n, r) => {
312
- if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
313
- s = i[a];
314
- if (!m.call(e, s) && s !== n) u(e, s, {
315
- get: ((e) => t[e]).bind(null, s),
316
- enumerable: !(r = d(t, s)) || r.enumerable
317
- });
318
- }
319
- return e;
320
- };
321
- var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
322
- value: e,
323
- enumerable: true
324
- }) : n, e));
325
- var v = /* @__PURE__ */ createRequire$1(import.meta.url);
326
- const y = /^path$/i;
327
- const b = {
302
+ //#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
303
+ var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
304
+ var u = /* @__PURE__ */ createRequire(import.meta.url);
305
+ const d = /^path$/i;
306
+ const f = {
328
307
  key: "PATH",
329
308
  value: ""
330
309
  };
331
- function x(e) {
310
+ function p(e) {
332
311
  for (const t in e) {
333
- if (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;
312
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !d.test(t)) continue;
334
313
  const n = e[t];
335
- if (!n) return b;
314
+ if (!n) return f;
336
315
  return {
337
316
  key: t,
338
317
  value: n
339
318
  };
340
319
  }
341
- return b;
320
+ return f;
342
321
  }
343
- function S(e, t) {
322
+ function m(e, t) {
344
323
  const i = t.value.split(delimiter);
345
- let o = e;
346
- let s;
324
+ const o = [];
325
+ let s = e;
326
+ let c;
347
327
  do {
348
- i.push(resolve(o, "node_modules", ".bin"));
349
- s = o;
350
- o = dirname(o);
351
- } while (o !== s);
328
+ o.push(resolve(s, "node_modules", ".bin"));
329
+ c = s;
330
+ s = dirname(s);
331
+ } while (s !== c);
332
+ const l = o.concat(i).join(delimiter);
352
333
  return {
353
334
  key: t.key,
354
- value: i.join(delimiter)
335
+ value: l
355
336
  };
356
337
  }
357
- function C(e, t) {
338
+ function h(e, t) {
358
339
  const n = {
359
340
  ...process.env,
360
341
  ...t
361
342
  };
362
- const r = S(e, x(n));
343
+ const r = m(e, p(n));
363
344
  n[r.key] = r.value;
364
345
  return n;
365
346
  }
366
- const w = (e) => {
347
+ const g = (e) => {
367
348
  let t = e.length;
368
349
  const n = new PassThrough();
369
350
  const r = () => {
@@ -375,10 +356,10 @@ const w = (e) => {
375
356
  }
376
357
  return n;
377
358
  };
378
- var T = h((exports, t) => {
359
+ var _ = /* @__PURE__ */ l(((e, t) => {
379
360
  t.exports = a;
380
361
  a.sync = o;
381
- var n = v("fs");
362
+ var n = u("fs");
382
363
  function r(e, t) {
383
364
  var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
384
365
  if (!n) return true;
@@ -402,11 +383,11 @@ var T = h((exports, t) => {
402
383
  function o(e, t) {
403
384
  return i(n.statSync(e), e, t);
404
385
  }
405
- });
406
- var E = h((exports, t) => {
386
+ }));
387
+ var v = /* @__PURE__ */ l(((e, t) => {
407
388
  t.exports = r;
408
389
  r.sync = i;
409
- var n = v("fs");
390
+ var n = u("fs");
410
391
  function r(e, t, r) {
411
392
  n.stat(e, function(e, n) {
412
393
  r(e, e ? false : a(n, t));
@@ -430,52 +411,52 @@ var E = h((exports, t) => {
430
411
  var u = s | c;
431
412
  return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
432
413
  }
433
- });
434
- var D = h((exports, t) => {
435
- v("fs");
436
- var r;
437
- if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
438
- else r = E();
439
- t.exports = i;
440
- i.sync = a;
441
- function i(e, t, n) {
414
+ }));
415
+ var y = /* @__PURE__ */ l(((e, t) => {
416
+ u("fs");
417
+ var n;
418
+ if (process.platform === "win32" || global.TESTING_WINDOWS) n = _();
419
+ else n = v();
420
+ t.exports = r;
421
+ r.sync = i;
422
+ function r(e, t, i) {
442
423
  if (typeof t === "function") {
443
- n = t;
424
+ i = t;
444
425
  t = {};
445
426
  }
446
- if (!n) {
427
+ if (!i) {
447
428
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
448
- return new Promise(function(n, r) {
449
- i(e, t || {}, function(e, t) {
450
- if (e) r(e);
429
+ return new Promise(function(n, i) {
430
+ r(e, t || {}, function(e, t) {
431
+ if (e) i(e);
451
432
  else n(t);
452
433
  });
453
434
  });
454
435
  }
455
- r(e, t || {}, function(e, r) {
436
+ n(e, t || {}, function(e, n) {
456
437
  if (e) {
457
438
  if (e.code === "EACCES" || t && t.ignoreErrors) {
458
439
  e = null;
459
- r = false;
440
+ n = false;
460
441
  }
461
442
  }
462
- n(e, r);
443
+ i(e, n);
463
444
  });
464
445
  }
465
- function a(e, t) {
446
+ function i(e, t) {
466
447
  try {
467
- return r.sync(e, t || {});
448
+ return n.sync(e, t || {});
468
449
  } catch (e) {
469
450
  if (t && t.ignoreErrors || e.code === "EACCES") return false;
470
451
  else throw e;
471
452
  }
472
453
  }
473
- });
474
- var O = h((exports, t) => {
454
+ }));
455
+ var b = /* @__PURE__ */ l(((e, t) => {
475
456
  const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
476
- const r = v("path");
457
+ const r = u("path");
477
458
  const i = n ? ";" : ":";
478
- const a = D();
459
+ const a = y();
479
460
  const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
480
461
  const s = (e, t) => {
481
462
  const r = t.colon || i;
@@ -540,8 +521,8 @@ var O = h((exports, t) => {
540
521
  };
541
522
  t.exports = c;
542
523
  c.sync = l;
543
- });
544
- var k = h((exports, t) => {
524
+ }));
525
+ var x = /* @__PURE__ */ l(((e, t) => {
545
526
  const n = (e = {}) => {
546
527
  const t = e.env || process.env;
547
528
  if ((e.platform || process.platform) !== "win32") return "PATH";
@@ -549,11 +530,11 @@ var k = h((exports, t) => {
549
530
  };
550
531
  t.exports = n;
551
532
  t.exports.default = n;
552
- });
553
- var A = h((exports, t) => {
554
- const n = v("path");
555
- const r = O();
556
- const i = k();
533
+ }));
534
+ var S = /* @__PURE__ */ l(((e, t) => {
535
+ const n = u("path");
536
+ const r = b();
537
+ const i = x();
557
538
  function a(e, t) {
558
539
  const a = e.options.env || process.env;
559
540
  const o = process.cwd();
@@ -578,8 +559,8 @@ var A = h((exports, t) => {
578
559
  return a(e) || a(e, true);
579
560
  }
580
561
  t.exports = o;
581
- });
582
- var j = h((exports, t) => {
562
+ }));
563
+ var C = /* @__PURE__ */ l(((e, t) => {
583
564
  const n = /([()\][%!^"`<>&|;, *?])/g;
584
565
  function r(e) {
585
566
  e = e.replace(n, "^$1");
@@ -587,8 +568,8 @@ var j = h((exports, t) => {
587
568
  }
588
569
  function i(e, t) {
589
570
  e = `${e}`;
590
- e = e.replace(/(\\*)"/g, "$1$1\\\"");
591
- e = e.replace(/(\\*)$/, "$1$1");
571
+ e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
572
+ e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
592
573
  e = `"${e}"`;
593
574
  e = e.replace(n, "^$1");
594
575
  if (t) e = e.replace(n, "^$1");
@@ -596,12 +577,12 @@ var j = h((exports, t) => {
596
577
  }
597
578
  t.exports.command = r;
598
579
  t.exports.argument = i;
599
- });
600
- var M = h((exports, t) => {
580
+ }));
581
+ var w = /* @__PURE__ */ l(((e, t) => {
601
582
  t.exports = /^#!(.*)/;
602
- });
603
- var N = h((exports, t) => {
604
- const n = M();
583
+ }));
584
+ var T = /* @__PURE__ */ l(((e, t) => {
585
+ const n = w();
605
586
  t.exports = (e = "") => {
606
587
  const t = e.match(n);
607
588
  if (!t) return null;
@@ -610,10 +591,10 @@ var N = h((exports, t) => {
610
591
  if (a === "env") return i;
611
592
  return i ? `${a} ${i}` : a;
612
593
  };
613
- });
614
- var P = h((exports, t) => {
615
- const n = v("fs");
616
- const r = N();
594
+ }));
595
+ var E = /* @__PURE__ */ l(((e, t) => {
596
+ const n = u("fs");
597
+ const r = T();
617
598
  function i(e) {
618
599
  const t = 150;
619
600
  const i = Buffer.alloc(t);
@@ -626,12 +607,12 @@ var P = h((exports, t) => {
626
607
  return r(i.toString());
627
608
  }
628
609
  t.exports = i;
629
- });
630
- var F = h((exports, t) => {
631
- const n = v("path");
632
- const r = A();
633
- const i = j();
634
- const a = P();
610
+ }));
611
+ var D = /* @__PURE__ */ l(((e, t) => {
612
+ const n = u("path");
613
+ const r = S();
614
+ const i = C();
615
+ const a = E();
635
616
  const o = process.platform === "win32";
636
617
  const s = /\.(?:com|exe)$/i;
637
618
  const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -645,7 +626,7 @@ var F = h((exports, t) => {
645
626
  }
646
627
  return e.file;
647
628
  }
648
- function u(e) {
629
+ function d(e) {
649
630
  if (!o) return e;
650
631
  const t = l(e);
651
632
  const r = !s.test(t);
@@ -665,7 +646,7 @@ var F = h((exports, t) => {
665
646
  }
666
647
  return e;
667
648
  }
668
- function d(e, t, n) {
649
+ function f(e, t, n) {
669
650
  if (t && !Array.isArray(t)) {
670
651
  n = t;
671
652
  t = null;
@@ -682,11 +663,11 @@ var F = h((exports, t) => {
682
663
  args: t
683
664
  }
684
665
  };
685
- return n.shell ? r : u(r);
666
+ return n.shell ? r : d(r);
686
667
  }
687
- t.exports = d;
688
- });
689
- var I = h((exports, t) => {
668
+ t.exports = f;
669
+ }));
670
+ var O = /* @__PURE__ */ l(((e, t) => {
690
671
  const n = process.platform === "win32";
691
672
  function r(e, t) {
692
673
  return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
@@ -702,7 +683,7 @@ var I = h((exports, t) => {
702
683
  const r = e.emit;
703
684
  e.emit = function(n, i) {
704
685
  if (n === "exit") {
705
- const n = a(i, t, "spawn");
686
+ const n = a(i, t);
706
687
  if (n) return r.call(e, "error", n);
707
688
  }
708
689
  return r.apply(e, arguments);
@@ -722,11 +703,11 @@ var I = h((exports, t) => {
722
703
  verifyENOENTSync: o,
723
704
  notFoundError: r
724
705
  };
725
- });
726
- var R = _(h((exports, t) => {
727
- const n = v("child_process");
728
- const r = F();
729
- const i = I();
706
+ }));
707
+ var A = (/* @__PURE__ */ l(((e, t) => {
708
+ const n = u("child_process");
709
+ const r = D();
710
+ const i = O();
730
711
  function a(e, t, a) {
731
712
  const o = r(e, t, a);
732
713
  const s = n.spawn(o.command, o.args, o.options);
@@ -744,8 +725,8 @@ var R = _(h((exports, t) => {
744
725
  t.exports.sync = o;
745
726
  t.exports._parse = r;
746
727
  t.exports._enoent = i;
747
- })(), 1);
748
- var z = class extends Error {
728
+ })))();
729
+ var j = class extends Error {
749
730
  result;
750
731
  output;
751
732
  get exitCode() {
@@ -757,18 +738,18 @@ var z = class extends Error {
757
738
  this.output = t;
758
739
  }
759
740
  };
760
- const B = {
741
+ const M = {
761
742
  timeout: void 0,
762
743
  persist: false
763
744
  };
764
- const V = { windowsHide: true };
765
- function H(e, t) {
745
+ const N = { windowsHide: true };
746
+ function P(e, t) {
766
747
  return {
767
748
  command: normalize(e),
768
749
  args: t ?? []
769
750
  };
770
751
  }
771
- function U(e) {
752
+ function F(e) {
772
753
  const t = new AbortController();
773
754
  for (const n of e) {
774
755
  if (n.aborted) {
@@ -782,12 +763,12 @@ function U(e) {
782
763
  }
783
764
  return t.signal;
784
765
  }
785
- async function W(e) {
766
+ async function I(e) {
786
767
  let t = "";
787
768
  for await (const n of e) t += n.toString();
788
769
  return t;
789
770
  }
790
- var G = class {
771
+ var L = class {
791
772
  _process;
792
773
  _aborted = false;
793
774
  _options;
@@ -807,7 +788,7 @@ var G = class {
807
788
  }
808
789
  constructor(e, t, n) {
809
790
  this._options = {
810
- ...B,
791
+ ...M,
811
792
  ...n
812
793
  };
813
794
  this._command = e;
@@ -826,7 +807,7 @@ var G = class {
826
807
  return this._process?.killed === true;
827
808
  }
828
809
  pipe(e, t, n) {
829
- return q(e, t, {
810
+ return z(e, t, {
830
811
  ...n,
831
812
  stdin: this
832
813
  });
@@ -837,18 +818,18 @@ var G = class {
837
818
  const t = [];
838
819
  if (this._streamErr) t.push(this._streamErr);
839
820
  if (this._streamOut) t.push(this._streamOut);
840
- const n = w(t);
821
+ const n = g(t);
841
822
  const r = readline.createInterface({ input: n });
842
823
  for await (const e of r) yield e.toString();
843
824
  await this._processClosed;
844
825
  e.removeAllListeners();
845
826
  if (this._thrownError) throw this._thrownError;
846
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
827
+ if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this);
847
828
  }
848
829
  async _waitForOutput() {
849
830
  const e = this._process;
850
831
  if (!e) throw new Error("No process was started");
851
- const [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
832
+ const [t, n] = await Promise.all([this._streamOut ? I(this._streamOut) : "", this._streamErr ? I(this._streamErr) : ""]);
852
833
  await this._processClosed;
853
834
  if (this._options?.stdin) await this._options.stdin;
854
835
  e.removeAllListeners();
@@ -858,7 +839,7 @@ var G = class {
858
839
  stdout: t,
859
840
  exitCode: this.exitCode
860
841
  };
861
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);
842
+ if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this, r);
862
843
  return r;
863
844
  }
864
845
  then(e, t) {
@@ -870,7 +851,7 @@ var G = class {
870
851
  const e = cwd();
871
852
  const n = this._options;
872
853
  const r = {
873
- ...V,
854
+ ...N,
874
855
  ...n.nodeOptions
875
856
  };
876
857
  const i = [];
@@ -878,10 +859,10 @@ var G = class {
878
859
  if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
879
860
  if (n.signal !== void 0) i.push(n.signal);
880
861
  if (n.persist === true) r.detached = true;
881
- if (i.length > 0) r.signal = U(i);
882
- r.env = C(e, r.env);
883
- const { command: a, args: s } = H(this._command, this._args);
884
- const c = (0, R._parse)(a, s, r);
862
+ if (i.length > 0) r.signal = F(i);
863
+ r.env = h(e, r.env);
864
+ const { command: a, args: s } = P(this._command, this._args);
865
+ const c = (0, A._parse)(a, s, r);
885
866
  const l = spawn(c.command, c.args, c.options);
886
867
  if (l.stderr) this._streamErr = l.stderr;
887
868
  if (l.stdout) this._streamOut = l.stdout;
@@ -911,11 +892,11 @@ var G = class {
911
892
  if (this._resolveClose) this._resolveClose();
912
893
  };
913
894
  };
914
- const K = (e, t, n) => {
915
- const r = new G(e, t, n);
895
+ const R = (e, t, n) => {
896
+ const r = new L(e, t, n);
916
897
  r.spawn();
917
898
  return r;
918
899
  };
919
- const q = K;
900
+ const z = R;
920
901
  //#endregion
921
- export { resolveComma as C, toArray as E, promiseWithResolvers as S, slash as T, debounce as _, createLogger as a, noop as b, globalLogger as c, bold as d, dim as f, yellow as g, underline as h, LogLevels as i, prettyFormat as l, red as m, q as n, generateColor as o, green as p, version as r, getNameLabel as s, K as t, blue as u, importWithError as v, resolveRegex as w, pkgExists as x, matchPattern as y };
902
+ export { resolveComma as C, toArray as E, promiseWithResolvers as S, slash as T, debounce as _, createLogger as a, noop as b, globalLogger as c, bold as d, dim as f, yellow as g, underline as h, LogLevels as i, prettyFormat as l, red as m, z as n, generateColor as o, green as p, version as r, getNameLabel as s, R as t, blue as u, importWithError as v, resolveRegex as w, pkgExists as x, matchPattern as y };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { c as globalLogger, f as dim, g as yellow, r as version, t as K } from "./main-4fHWraTN.js";
2
+ import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-JovZVvCY.js";
3
3
  import "./node-B3Gdtau1.js";
4
- import { t as enableDebug } from "./debug-C4FmgzkJ-BcERCViE.js";
4
+ import { t as enableDebug } from "./debug-C4FmgzkJ-Co4tnxmE.js";
5
5
  import module, { createRequire } from "node:module";
6
6
  import process$1 from "node:process";
7
7
  import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
@@ -631,13 +631,13 @@ cli.command("[...files]", "Bundle files", {
631
631
  }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
632
632
  globalLogger.level = flags.logLevel || "info";
633
633
  globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
634
- const { build } = await import("./build-B1oBkI4C-Bj4wFOdV.js");
634
+ const { build } = await import("./build-dhDyu66J-DxSssGzc.js");
635
635
  if (input.length > 0) flags.entry = input;
636
636
  await build(flags);
637
637
  });
638
638
  cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-tsdown\" instead.", { allowUnknownOptions: true }).action(async () => {
639
639
  globalLogger.warn(`"tsdown create" is deprecated. Please use "npx create-tsdown" instead.`);
640
- const { exitCode } = await K("npx", [
640
+ const { exitCode } = await R("npx", [
641
641
  "-y",
642
642
  "create-tsdown@latest",
643
643
  ...process$1.argv.slice(3)
@@ -646,7 +646,7 @@ cli.command("create", "[deprecated] Create a tsdown project. Use \"npx create-ts
646
646
  });
647
647
  cli.command("migrate", "[deprecated] Migrate from tsup to tsdown. Use \"npx tsdown-migrate\" instead.", { allowUnknownOptions: true }).action(async () => {
648
648
  globalLogger.warn(`"tsdown migrate" is deprecated. Please use "npx tsdown-migrate" instead.`);
649
- const { exitCode } = await K("npx", [
649
+ const { exitCode } = await R("npx", [
650
650
  "-y",
651
651
  "tsdown-migrate@latest",
652
652
  ...process$1.argv.slice(3)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.1.12-alpha.2",
3
+ "version": "0.1.13-alpha.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -100,8 +100,8 @@
100
100
  "./types/internal/*": null
101
101
  },
102
102
  "dependencies": {
103
- "@oxc-project/runtime": "=0.115.0",
104
- "@oxc-project/types": "=0.115.0",
103
+ "@oxc-project/runtime": "=0.120.0",
104
+ "@oxc-project/types": "=0.120.0",
105
105
  "lightningcss": "^1.30.2",
106
106
  "postcss": "^8.5.6"
107
107
  },
@@ -112,12 +112,12 @@
112
112
  "@babel/types": "^7.28.5",
113
113
  "@oxc-node/cli": "^0.0.35",
114
114
  "@oxc-node/core": "^0.0.35",
115
- "@vitejs/devtools": "^0.1.0",
115
+ "@vitejs/devtools": "^0.1.2",
116
116
  "es-module-lexer": "^1.7.0",
117
117
  "hookable": "^6.0.1",
118
118
  "magic-string": "^0.30.21",
119
- "oxc-parser": "=0.115.0",
120
- "oxfmt": "=0.40.0",
119
+ "oxc-parser": "=0.120.0",
120
+ "oxfmt": "=0.41.0",
121
121
  "picocolors": "^1.1.1",
122
122
  "picomatch": "^4.0.3",
123
123
  "pkg-types": "^2.3.0",
@@ -127,14 +127,14 @@
127
127
  "semver": "^7.7.3",
128
128
  "tinyglobby": "^0.2.15",
129
129
  "tree-kill": "^1.2.2",
130
- "tsdown": "^0.21.2",
130
+ "tsdown": "^0.21.4",
131
131
  "rolldown": "1.0.0-rc.9",
132
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.12-alpha.2"
132
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.13-alpha.0"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@arethetypeswrong/core": "^0.18.1",
136
- "@tsdown/css": "0.21.2",
137
- "@tsdown/exe": "0.21.2",
136
+ "@tsdown/css": "0.21.4",
137
+ "@tsdown/exe": "0.21.4",
138
138
  "@types/node": "^20.19.0 || >=22.12.0",
139
139
  "@vitejs/devtools": "^0.0.0-alpha.31",
140
140
  "esbuild": "^0.27.0",
@@ -216,7 +216,7 @@
216
216
  "bundledVersions": {
217
217
  "vite": "8.0.0",
218
218
  "rolldown": "1.0.0-rc.9",
219
- "tsdown": "0.21.2"
219
+ "tsdown": "0.21.4"
220
220
  },
221
221
  "scripts": {
222
222
  "build": "oxnode -C dev ./build.ts"