@neat.is/core 0.4.29-dev.20260715 → 0.4.29

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.
package/dist/cli.js CHANGED
@@ -2853,6 +2853,7 @@ import { promises as fs6 } from "fs";
2853
2853
  import http from "http";
2854
2854
  import net from "net";
2855
2855
  import path7 from "path";
2856
+ import { fileURLToPath as fileURLToPath2 } from "url";
2856
2857
  import { spawn as spawn2 } from "child_process";
2857
2858
  import readline from "readline";
2858
2859
  async function extractAndPersist(opts) {
@@ -3238,7 +3239,7 @@ function daemonLogPath(projectPath2) {
3238
3239
  return path7.join(projectPath2, "neat-out", "daemon.log");
3239
3240
  }
3240
3241
  function spawnDaemonDetached(spec) {
3241
- const here = path7.dirname(new URL(import.meta.url).pathname);
3242
+ const here = path7.dirname(fileURLToPath2(import.meta.url));
3242
3243
  const candidates = [
3243
3244
  path7.join(here, "neatd.cjs"),
3244
3245
  path7.join(here, "neatd.js")
@@ -5511,7 +5512,7 @@ async function runQueryVerb(cmd, parsed) {
5511
5512
  }
5512
5513
  }
5513
5514
  var entry = process.argv[1] ?? "";
5514
- if (/[\\/]cli\.(?:cjs|js)$/.test(entry) || entry.endsWith("/cli") || entry.endsWith("/neat") || entry.endsWith("/neat.is")) {
5515
+ if (/[\\/](?:cli\.(?:cjs|js)|cli|neat|neat\.is)$/.test(entry)) {
5515
5516
  main().catch((err) => {
5516
5517
  console.error(err);
5517
5518
  process.exit(1);