@versot/vaguspi 0.1.0 → 0.1.2

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/bin.js CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // apps/cli/src/bin.ts
2
4
  import { readFileSync as readFileSync7 } from "node:fs";
3
5
  import { parseArgs } from "node:util";
@@ -7515,7 +7517,9 @@ function daemonEntryPath() {
7515
7517
  return existsSync7(source) ? source : `${base}.js`;
7516
7518
  }
7517
7519
  function spawnDaemon(options = {}) {
7518
- return spawn(process.execPath, ["--import", "tsx", daemonEntryPath(), "daemon"], {
7520
+ const entry = daemonEntryPath();
7521
+ const args = entry.endsWith(".ts") ? ["--import", "tsx", entry, "daemon"] : [entry, "daemon"];
7522
+ return spawn(process.execPath, args, {
7519
7523
  stdio: options.stdio ?? ["pipe", "pipe", "pipe"],
7520
7524
  env: { ...process.env, ...options.env }
7521
7525
  });