@versot/vaguspi 0.1.0 → 0.1.1

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
@@ -7515,7 +7515,9 @@ function daemonEntryPath() {
7515
7515
  return existsSync7(source) ? source : `${base}.js`;
7516
7516
  }
7517
7517
  function spawnDaemon(options = {}) {
7518
- return spawn(process.execPath, ["--import", "tsx", daemonEntryPath(), "daemon"], {
7518
+ const entry = daemonEntryPath();
7519
+ const args = entry.endsWith(".ts") ? ["--import", "tsx", entry, "daemon"] : [entry, "daemon"];
7520
+ return spawn(process.execPath, args, {
7519
7521
  stdio: options.stdio ?? ["pipe", "pipe", "pipe"],
7520
7522
  env: { ...process.env, ...options.env }
7521
7523
  });