@qwik.dev/core 2.0.0-beta.23 → 2.0.0-beta.25

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.
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/backpatch",
3
- "version": "2.0.0-beta.23-dev+03de42d",
3
+ "version": "2.0.0-beta.25-dev+2677279",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-beta.23-dev+03de42d",
3
+ "version": "2.0.0-beta.25-dev+2677279",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-beta.23-dev+03de42d
3
+ * @qwik.dev/core/cli 2.0.0-beta.25-dev+2677279
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -13,10 +13,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
13
  var __getOwnPropNames = Object.getOwnPropertyNames;
14
14
  var __getProtoOf = Object.getPrototypeOf;
15
15
  var __hasOwnProp = Object.prototype.hasOwnProperty;
16
- var __typeError = (msg) => {
17
- throw TypeError(msg);
18
- };
19
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20
16
  var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
21
17
  get: (a2, b3) => (typeof require !== "undefined" ? require : a2)[b3]
22
18
  }) : x2)(function(x2) {
@@ -49,12 +45,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
49
45
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
50
46
  mod
51
47
  ));
52
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
53
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
54
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
55
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
56
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
57
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
58
48
 
59
49
  // node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
60
50
  var require_src = __commonJS({
@@ -3540,12 +3530,12 @@ var bgWhite = init(47, 49);
3540
3530
  import { existsSync, readFileSync } from "node:fs";
3541
3531
  import { dirname, join, resolve } from "node:path";
3542
3532
  var AppCommand = class {
3533
+ args;
3534
+ task;
3535
+ cwd;
3536
+ _rootDir;
3537
+ _rootPkgJson;
3543
3538
  constructor(opts) {
3544
- __publicField(this, "args");
3545
- __publicField(this, "task");
3546
- __publicField(this, "cwd");
3547
- __publicField(this, "_rootDir");
3548
- __publicField(this, "_rootPkgJson");
3549
3539
  this._rootDir = opts.rootDir;
3550
3540
  this.cwd = opts.cwd;
3551
3541
  this.args = opts.args.slice();
@@ -5049,7 +5039,7 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
5049
5039
  try {
5050
5040
  await setTimeout2(forceKillAfterDelay, void 0, { signal: controllerSignal });
5051
5041
  if (kill("SIGKILL")) {
5052
- context.isForcefullyTerminated ?? (context.isForcefullyTerminated = true);
5042
+ context.isForcefullyTerminated ??= true;
5053
5043
  }
5054
5044
  } catch {
5055
5045
  }
@@ -5072,7 +5062,7 @@ var validateCancelSignal = ({ cancelSignal }) => {
5072
5062
  var throwOnCancel = ({ subprocess, cancelSignal, gracefulCancel, context, controller }) => cancelSignal === void 0 || gracefulCancel ? [] : [terminateOnCancel(subprocess, cancelSignal, context, controller)];
5073
5063
  var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) => {
5074
5064
  await onAbortedSignal(cancelSignal, signal);
5075
- context.terminationReason ?? (context.terminationReason = "cancel");
5065
+ context.terminationReason ??= "cancel";
5076
5066
  subprocess.kill();
5077
5067
  throw cancelSignal.reason;
5078
5068
  };
@@ -5647,7 +5637,7 @@ var sendOnAbort = async ({ subprocess, cancelSignal, forceKillAfterDelay, contex
5647
5637
  context,
5648
5638
  controllerSignal: signal
5649
5639
  });
5650
- context.terminationReason ?? (context.terminationReason = "gracefulCancel");
5640
+ context.terminationReason ??= "gracefulCancel";
5651
5641
  throw cancelSignal.reason;
5652
5642
  };
5653
5643
  var getReason = ({ reason }) => {
@@ -5674,7 +5664,7 @@ var validateTimeout = ({ timeout }) => {
5674
5664
  var throwOnTimeout = (subprocess, timeout, context, controller) => timeout === 0 || timeout === void 0 ? [] : [killAfterTimeout(subprocess, timeout, context, controller)];
5675
5665
  var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
5676
5666
  await setTimeout3(timeout, void 0, { signal });
5677
- context.terminationReason ?? (context.terminationReason = "timeout");
5667
+ context.terminationReason ??= "timeout";
5678
5668
  subprocess.kill();
5679
5669
  throw new DiscardedError();
5680
5670
  };
@@ -5954,61 +5944,54 @@ var a = Object.getPrototypeOf(
5954
5944
  }
5955
5945
  ).prototype
5956
5946
  );
5957
- var _t, _n, _r, _e, _c_instances, s_fn, i_fn;
5958
5947
  var c = class {
5948
+ #t;
5949
+ #n;
5950
+ #r = false;
5951
+ #e = void 0;
5959
5952
  constructor(e2, t) {
5960
- __privateAdd(this, _c_instances);
5961
- __privateAdd(this, _t);
5962
- __privateAdd(this, _n);
5963
- __privateAdd(this, _r, false);
5964
- __privateAdd(this, _e);
5965
- __privateSet(this, _t, e2), __privateSet(this, _n, t);
5953
+ this.#t = e2, this.#n = t;
5966
5954
  }
5967
5955
  next() {
5968
- const e2 = () => __privateMethod(this, _c_instances, s_fn).call(this);
5969
- return __privateSet(this, _e, __privateGet(this, _e) ? __privateGet(this, _e).then(e2, e2) : e2()), __privateGet(this, _e);
5956
+ const e2 = () => this.#s();
5957
+ return this.#e = this.#e ? this.#e.then(e2, e2) : e2(), this.#e;
5970
5958
  }
5971
5959
  return(e2) {
5972
- const t = () => __privateMethod(this, _c_instances, i_fn).call(this, e2);
5973
- return __privateGet(this, _e) ? __privateGet(this, _e).then(t, t) : t();
5960
+ const t = () => this.#i(e2);
5961
+ return this.#e ? this.#e.then(t, t) : t();
5974
5962
  }
5975
- };
5976
- _t = new WeakMap();
5977
- _n = new WeakMap();
5978
- _r = new WeakMap();
5979
- _e = new WeakMap();
5980
- _c_instances = new WeakSet();
5981
- s_fn = async function() {
5982
- if (__privateGet(this, _r))
5983
- return {
5984
- done: true,
5985
- value: void 0
5986
- };
5987
- let e2;
5988
- try {
5989
- e2 = await __privateGet(this, _t).read();
5990
- } catch (t) {
5991
- throw __privateSet(this, _e, void 0), __privateSet(this, _r, true), __privateGet(this, _t).releaseLock(), t;
5963
+ async #s() {
5964
+ if (this.#r)
5965
+ return {
5966
+ done: true,
5967
+ value: void 0
5968
+ };
5969
+ let e2;
5970
+ try {
5971
+ e2 = await this.#t.read();
5972
+ } catch (t) {
5973
+ throw this.#e = void 0, this.#r = true, this.#t.releaseLock(), t;
5974
+ }
5975
+ return e2.done && (this.#e = void 0, this.#r = true, this.#t.releaseLock()), e2;
5992
5976
  }
5993
- return e2.done && (__privateSet(this, _e, void 0), __privateSet(this, _r, true), __privateGet(this, _t).releaseLock()), e2;
5994
- };
5995
- i_fn = async function(e2) {
5996
- if (__privateGet(this, _r))
5997
- return {
5998
- done: true,
5999
- value: e2
6000
- };
6001
- if (__privateSet(this, _r, true), !__privateGet(this, _n)) {
6002
- const t = __privateGet(this, _t).cancel(e2);
6003
- return __privateGet(this, _t).releaseLock(), await t, {
5977
+ async #i(e2) {
5978
+ if (this.#r)
5979
+ return {
5980
+ done: true,
5981
+ value: e2
5982
+ };
5983
+ if (this.#r = true, !this.#n) {
5984
+ const t = this.#t.cancel(e2);
5985
+ return this.#t.releaseLock(), await t, {
5986
+ done: true,
5987
+ value: e2
5988
+ };
5989
+ }
5990
+ return this.#t.releaseLock(), {
6004
5991
  done: true,
6005
5992
  value: e2
6006
5993
  };
6007
5994
  }
6008
- return __privateGet(this, _t).releaseLock(), {
6009
- done: true,
6010
- value: e2
6011
- };
6012
5995
  };
6013
5996
  var n = /* @__PURE__ */ Symbol();
6014
5997
  function i() {
@@ -6178,9 +6161,9 @@ var getChunkType = (chunk) => {
6178
6161
  };
6179
6162
  var { toString: objectToString2 } = Object.prototype;
6180
6163
  var MaxBufferError = class extends Error {
6164
+ name = "MaxBufferError";
6181
6165
  constructor() {
6182
6166
  super("maxBuffer exceeded");
6183
- __publicField(this, "name", "MaxBufferError");
6184
6167
  }
6185
6168
  };
6186
6169
 
@@ -6728,7 +6711,7 @@ function prettyMilliseconds(milliseconds, options) {
6728
6711
  if ((result.length === 0 || !options.colonNotation) && isZero(value) && !(options.colonNotation && short === "m")) {
6729
6712
  return;
6730
6713
  }
6731
- valueString ?? (valueString = String(value));
6714
+ valueString ??= String(value);
6732
6715
  if (options.colonNotation) {
6733
6716
  const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
6734
6717
  const minLength = result.length > 0 ? 2 : 1;
@@ -7994,7 +7977,7 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
7994
7977
  try {
7995
7978
  logLinesSync(linesArray, fdNumber, verboseInfo);
7996
7979
  } catch (error) {
7997
- state.error ?? (state.error = error);
7980
+ state.error ??= error;
7998
7981
  }
7999
7982
  };
8000
7983
  var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
@@ -8036,7 +8019,7 @@ var getAllSync = ([, stdout, stderr], options) => {
8036
8019
  import { once as once4 } from "node:events";
8037
8020
  var waitForExit = async (subprocess, context) => {
8038
8021
  const [exitCode, signal] = await waitForExitOrError(subprocess);
8039
- context.isForcefullyTerminated ?? (context.isForcefullyTerminated = false);
8022
+ context.isForcefullyTerminated ??= false;
8040
8023
  return [exitCode, signal];
8041
8024
  };
8042
8025
  var waitForExitOrError = async (subprocess) => {
@@ -8527,57 +8510,47 @@ var getHighWaterMark = (streams, objectMode) => {
8527
8510
  const highWaterMarks = streams.filter(({ readableObjectMode }) => readableObjectMode === objectMode).map(({ readableHighWaterMark }) => readableHighWaterMark);
8528
8511
  return Math.max(...highWaterMarks);
8529
8512
  };
8530
- var _streams, _ended, _aborted, _onFinished, _unpipeEvent, _streamPromises;
8531
8513
  var MergedStream = class extends PassThroughStream {
8532
- constructor() {
8533
- super(...arguments);
8534
- __privateAdd(this, _streams, /* @__PURE__ */ new Set([]));
8535
- __privateAdd(this, _ended, /* @__PURE__ */ new Set([]));
8536
- __privateAdd(this, _aborted, /* @__PURE__ */ new Set([]));
8537
- __privateAdd(this, _onFinished);
8538
- __privateAdd(this, _unpipeEvent, /* @__PURE__ */ Symbol("unpipe"));
8539
- __privateAdd(this, _streamPromises, /* @__PURE__ */ new WeakMap());
8540
- }
8514
+ #streams = /* @__PURE__ */ new Set([]);
8515
+ #ended = /* @__PURE__ */ new Set([]);
8516
+ #aborted = /* @__PURE__ */ new Set([]);
8517
+ #onFinished;
8518
+ #unpipeEvent = /* @__PURE__ */ Symbol("unpipe");
8519
+ #streamPromises = /* @__PURE__ */ new WeakMap();
8541
8520
  add(stream) {
8542
8521
  validateStream(stream);
8543
- if (__privateGet(this, _streams).has(stream)) {
8522
+ if (this.#streams.has(stream)) {
8544
8523
  return;
8545
8524
  }
8546
- __privateGet(this, _streams).add(stream);
8547
- __privateGet(this, _onFinished) ?? __privateSet(this, _onFinished, onMergedStreamFinished(this, __privateGet(this, _streams), __privateGet(this, _unpipeEvent)));
8525
+ this.#streams.add(stream);
8526
+ this.#onFinished ??= onMergedStreamFinished(this, this.#streams, this.#unpipeEvent);
8548
8527
  const streamPromise = endWhenStreamsDone({
8549
8528
  passThroughStream: this,
8550
8529
  stream,
8551
- streams: __privateGet(this, _streams),
8552
- ended: __privateGet(this, _ended),
8553
- aborted: __privateGet(this, _aborted),
8554
- onFinished: __privateGet(this, _onFinished),
8555
- unpipeEvent: __privateGet(this, _unpipeEvent)
8530
+ streams: this.#streams,
8531
+ ended: this.#ended,
8532
+ aborted: this.#aborted,
8533
+ onFinished: this.#onFinished,
8534
+ unpipeEvent: this.#unpipeEvent
8556
8535
  });
8557
- __privateGet(this, _streamPromises).set(stream, streamPromise);
8536
+ this.#streamPromises.set(stream, streamPromise);
8558
8537
  stream.pipe(this, { end: false });
8559
8538
  }
8560
8539
  async remove(stream) {
8561
8540
  validateStream(stream);
8562
- if (!__privateGet(this, _streams).has(stream)) {
8541
+ if (!this.#streams.has(stream)) {
8563
8542
  return false;
8564
8543
  }
8565
- const streamPromise = __privateGet(this, _streamPromises).get(stream);
8544
+ const streamPromise = this.#streamPromises.get(stream);
8566
8545
  if (streamPromise === void 0) {
8567
8546
  return false;
8568
8547
  }
8569
- __privateGet(this, _streamPromises).delete(stream);
8548
+ this.#streamPromises.delete(stream);
8570
8549
  stream.unpipe(this);
8571
8550
  await streamPromise;
8572
8551
  return true;
8573
8552
  }
8574
8553
  };
8575
- _streams = new WeakMap();
8576
- _ended = new WeakMap();
8577
- _aborted = new WeakMap();
8578
- _onFinished = new WeakMap();
8579
- _unpipeEvent = new WeakMap();
8580
- _streamPromises = new WeakMap();
8581
8554
  var onMergedStreamFinished = async (passThroughStream, streams, unpipeEvent) => {
8582
8555
  updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_COUNT);
8583
8556
  const controller = new AbortController();
@@ -8847,17 +8820,17 @@ var kExitEmitter = /* @__PURE__ */ Symbol.for("signal-exit emitter");
8847
8820
  var global2 = globalThis;
8848
8821
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
8849
8822
  var Emitter = class {
8823
+ emitted = {
8824
+ afterExit: false,
8825
+ exit: false
8826
+ };
8827
+ listeners = {
8828
+ afterExit: [],
8829
+ exit: []
8830
+ };
8831
+ count = 0;
8832
+ id = Math.random();
8850
8833
  constructor() {
8851
- __publicField(this, "emitted", {
8852
- afterExit: false,
8853
- exit: false
8854
- });
8855
- __publicField(this, "listeners", {
8856
- afterExit: [],
8857
- exit: []
8858
- });
8859
- __publicField(this, "count", 0);
8860
- __publicField(this, "id", Math.random());
8861
8834
  if (global2[kExitEmitter]) {
8862
8835
  return global2[kExitEmitter];
8863
8836
  }
@@ -8923,129 +8896,119 @@ var SignalExitFallback = class extends SignalExitBase {
8923
8896
  unload() {
8924
8897
  }
8925
8898
  };
8926
- var _hupSig, _emitter, _process, _originalProcessEmit, _originalProcessReallyExit, _sigListeners, _loaded, _SignalExit_instances, processReallyExit_fn, processEmit_fn;
8927
8899
  var SignalExit = class extends SignalExitBase {
8900
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
8901
+ // so use a supported signal instead
8902
+ /* c8 ignore start */
8903
+ #hupSig = process9.platform === "win32" ? "SIGINT" : "SIGHUP";
8904
+ /* c8 ignore stop */
8905
+ #emitter = new Emitter();
8906
+ #process;
8907
+ #originalProcessEmit;
8908
+ #originalProcessReallyExit;
8909
+ #sigListeners = {};
8910
+ #loaded = false;
8928
8911
  constructor(process10) {
8929
8912
  super();
8930
- __privateAdd(this, _SignalExit_instances);
8931
- // "SIGHUP" throws an `ENOSYS` error on Windows,
8932
- // so use a supported signal instead
8933
- /* c8 ignore start */
8934
- __privateAdd(this, _hupSig, process9.platform === "win32" ? "SIGINT" : "SIGHUP");
8935
- /* c8 ignore stop */
8936
- __privateAdd(this, _emitter, new Emitter());
8937
- __privateAdd(this, _process);
8938
- __privateAdd(this, _originalProcessEmit);
8939
- __privateAdd(this, _originalProcessReallyExit);
8940
- __privateAdd(this, _sigListeners, {});
8941
- __privateAdd(this, _loaded, false);
8942
- __privateSet(this, _process, process10);
8943
- __privateSet(this, _sigListeners, {});
8913
+ this.#process = process10;
8914
+ this.#sigListeners = {};
8944
8915
  for (const sig of signals) {
8945
- __privateGet(this, _sigListeners)[sig] = () => {
8946
- const listeners = __privateGet(this, _process).listeners(sig);
8947
- let { count: count2 } = __privateGet(this, _emitter);
8916
+ this.#sigListeners[sig] = () => {
8917
+ const listeners = this.#process.listeners(sig);
8918
+ let { count: count2 } = this.#emitter;
8948
8919
  const p2 = process10;
8949
8920
  if (typeof p2.__signal_exit_emitter__ === "object" && typeof p2.__signal_exit_emitter__.count === "number") {
8950
8921
  count2 += p2.__signal_exit_emitter__.count;
8951
8922
  }
8952
8923
  if (listeners.length === count2) {
8953
8924
  this.unload();
8954
- const ret = __privateGet(this, _emitter).emit("exit", null, sig);
8955
- const s2 = sig === "SIGHUP" ? __privateGet(this, _hupSig) : sig;
8925
+ const ret = this.#emitter.emit("exit", null, sig);
8926
+ const s2 = sig === "SIGHUP" ? this.#hupSig : sig;
8956
8927
  if (!ret)
8957
8928
  process10.kill(process10.pid, s2);
8958
8929
  }
8959
8930
  };
8960
8931
  }
8961
- __privateSet(this, _originalProcessReallyExit, process10.reallyExit);
8962
- __privateSet(this, _originalProcessEmit, process10.emit);
8932
+ this.#originalProcessReallyExit = process10.reallyExit;
8933
+ this.#originalProcessEmit = process10.emit;
8963
8934
  }
8964
8935
  onExit(cb, opts) {
8965
- if (!processOk(__privateGet(this, _process))) {
8936
+ if (!processOk(this.#process)) {
8966
8937
  return () => {
8967
8938
  };
8968
8939
  }
8969
- if (__privateGet(this, _loaded) === false) {
8940
+ if (this.#loaded === false) {
8970
8941
  this.load();
8971
8942
  }
8972
8943
  const ev = opts?.alwaysLast ? "afterExit" : "exit";
8973
- __privateGet(this, _emitter).on(ev, cb);
8944
+ this.#emitter.on(ev, cb);
8974
8945
  return () => {
8975
- __privateGet(this, _emitter).removeListener(ev, cb);
8976
- if (__privateGet(this, _emitter).listeners["exit"].length === 0 && __privateGet(this, _emitter).listeners["afterExit"].length === 0) {
8946
+ this.#emitter.removeListener(ev, cb);
8947
+ if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
8977
8948
  this.unload();
8978
8949
  }
8979
8950
  };
8980
8951
  }
8981
8952
  load() {
8982
- if (__privateGet(this, _loaded)) {
8953
+ if (this.#loaded) {
8983
8954
  return;
8984
8955
  }
8985
- __privateSet(this, _loaded, true);
8986
- __privateGet(this, _emitter).count += 1;
8956
+ this.#loaded = true;
8957
+ this.#emitter.count += 1;
8987
8958
  for (const sig of signals) {
8988
8959
  try {
8989
- const fn = __privateGet(this, _sigListeners)[sig];
8960
+ const fn = this.#sigListeners[sig];
8990
8961
  if (fn)
8991
- __privateGet(this, _process).on(sig, fn);
8962
+ this.#process.on(sig, fn);
8992
8963
  } catch (_3) {
8993
8964
  }
8994
8965
  }
8995
- __privateGet(this, _process).emit = (ev, ...a2) => {
8996
- return __privateMethod(this, _SignalExit_instances, processEmit_fn).call(this, ev, ...a2);
8966
+ this.#process.emit = (ev, ...a2) => {
8967
+ return this.#processEmit(ev, ...a2);
8997
8968
  };
8998
- __privateGet(this, _process).reallyExit = (code) => {
8999
- return __privateMethod(this, _SignalExit_instances, processReallyExit_fn).call(this, code);
8969
+ this.#process.reallyExit = (code) => {
8970
+ return this.#processReallyExit(code);
9000
8971
  };
9001
8972
  }
9002
8973
  unload() {
9003
- if (!__privateGet(this, _loaded)) {
8974
+ if (!this.#loaded) {
9004
8975
  return;
9005
8976
  }
9006
- __privateSet(this, _loaded, false);
8977
+ this.#loaded = false;
9007
8978
  signals.forEach((sig) => {
9008
- const listener = __privateGet(this, _sigListeners)[sig];
8979
+ const listener = this.#sigListeners[sig];
9009
8980
  if (!listener) {
9010
8981
  throw new Error("Listener not defined for signal: " + sig);
9011
8982
  }
9012
8983
  try {
9013
- __privateGet(this, _process).removeListener(sig, listener);
8984
+ this.#process.removeListener(sig, listener);
9014
8985
  } catch (_3) {
9015
8986
  }
9016
8987
  });
9017
- __privateGet(this, _process).emit = __privateGet(this, _originalProcessEmit);
9018
- __privateGet(this, _process).reallyExit = __privateGet(this, _originalProcessReallyExit);
9019
- __privateGet(this, _emitter).count -= 1;
9020
- }
9021
- };
9022
- _hupSig = new WeakMap();
9023
- _emitter = new WeakMap();
9024
- _process = new WeakMap();
9025
- _originalProcessEmit = new WeakMap();
9026
- _originalProcessReallyExit = new WeakMap();
9027
- _sigListeners = new WeakMap();
9028
- _loaded = new WeakMap();
9029
- _SignalExit_instances = new WeakSet();
9030
- processReallyExit_fn = function(code) {
9031
- if (!processOk(__privateGet(this, _process))) {
9032
- return 0;
9033
- }
9034
- __privateGet(this, _process).exitCode = code || 0;
9035
- __privateGet(this, _emitter).emit("exit", __privateGet(this, _process).exitCode, null);
9036
- return __privateGet(this, _originalProcessReallyExit).call(__privateGet(this, _process), __privateGet(this, _process).exitCode);
9037
- };
9038
- processEmit_fn = function(ev, ...args) {
9039
- const og = __privateGet(this, _originalProcessEmit);
9040
- if (ev === "exit" && processOk(__privateGet(this, _process))) {
9041
- if (typeof args[0] === "number") {
9042
- __privateGet(this, _process).exitCode = args[0];
8988
+ this.#process.emit = this.#originalProcessEmit;
8989
+ this.#process.reallyExit = this.#originalProcessReallyExit;
8990
+ this.#emitter.count -= 1;
8991
+ }
8992
+ #processReallyExit(code) {
8993
+ if (!processOk(this.#process)) {
8994
+ return 0;
8995
+ }
8996
+ this.#process.exitCode = code || 0;
8997
+ this.#emitter.emit("exit", this.#process.exitCode, null);
8998
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
8999
+ }
9000
+ #processEmit(ev, ...args) {
9001
+ const og = this.#originalProcessEmit;
9002
+ if (ev === "exit" && processOk(this.#process)) {
9003
+ if (typeof args[0] === "number") {
9004
+ this.#process.exitCode = args[0];
9005
+ }
9006
+ const ret = og.call(this.#process, ev, ...args);
9007
+ this.#emitter.emit("exit", this.#process.exitCode, null);
9008
+ return ret;
9009
+ } else {
9010
+ return og.call(this.#process, ev, ...args);
9043
9011
  }
9044
- const ret = og.call(__privateGet(this, _process), ev, ...args);
9045
- __privateGet(this, _emitter).emit("exit", __privateGet(this, _process).exitCode, null);
9046
- return ret;
9047
- } else {
9048
- return og.call(__privateGet(this, _process), ev, ...args);
9049
9012
  }
9050
9013
  };
9051
9014
  var process9 = globalThis.process;
@@ -9792,7 +9755,7 @@ var waitForSubprocessResult = async ({
9792
9755
  })
9793
9756
  ]);
9794
9757
  } catch (error) {
9795
- context.terminationReason ?? (context.terminationReason = "other");
9758
+ context.terminationReason ??= "other";
9796
9759
  return Promise.all([
9797
9760
  { error },
9798
9761
  exitPromise,
@@ -12625,7 +12588,7 @@ async function installTsMorph() {
12625
12588
  }
12626
12589
  const loading = Y2();
12627
12590
  loading.start("Fetching migration tools..");
12628
- (packageJson.devDependencies ?? (packageJson.devDependencies = {}))["ts-morph"] = "23";
12591
+ (packageJson.devDependencies ??= {})["ts-morph"] = "23";
12629
12592
  await writePackageJson(process.cwd(), packageJson);
12630
12593
  await runInstall();
12631
12594
  loading.stop("Migration tools have been loaded");
@@ -12945,7 +12908,7 @@ async function printHelp(app) {
12945
12908
  await runCommand2(Object.assign(app, { task: args[0], args }));
12946
12909
  }
12947
12910
  function printVersion() {
12948
- console.log("2.0.0-beta.23-dev+03de42d");
12911
+ console.log("2.0.0-beta.25-dev+2677279");
12949
12912
  }
12950
12913
  export {
12951
12914
  runCli,