tandem-editor 0.17.0 → 0.18.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.
@@ -4618,7 +4618,7 @@ function _addOutstandingAwarenessForTests(p) {
4618
4618
  trackAwareness(p);
4619
4619
  }
4620
4620
 
4621
- // src/monitor/index.ts
4621
+ // src/monitor/run.ts
4622
4622
  var IS_VITEST = process.env.VITEST === "true";
4623
4623
  if (!IS_VITEST) {
4624
4624
  console.log = console.error;
@@ -4702,15 +4702,18 @@ function _resetMonitorStateForTests() {
4702
4702
  var _monitorTestExports = {
4703
4703
  onStdoutError
4704
4704
  };
4705
+
4706
+ // src/monitor/index.ts
4707
+ var IS_VITEST2 = process.env.VITEST === "true";
4705
4708
  function normalizeForCompare(p) {
4706
4709
  const r = resolvePath(p);
4707
4710
  return process.platform === "win32" ? r.toLowerCase() : r;
4708
4711
  }
4709
4712
  var __thisFileNormalized = normalizeForCompare(fileURLToPath(import.meta.url));
4710
4713
  var isDirectRun = typeof process.argv[1] === "string" && normalizeForCompare(process.argv[1]) === __thisFileNormalized;
4711
- if (isDirectRun && !IS_VITEST) {
4714
+ if (isDirectRun && !IS_VITEST2) {
4712
4715
  main().catch((err) => {
4713
- console.error(`${LOG_PREFIX} Fatal error:`, err);
4716
+ console.error(`[Monitor] Fatal error:`, err);
4714
4717
  process.exit(1);
4715
4718
  });
4716
4719
  }