@todoforai/cli 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.
Files changed (2) hide show
  1. package/dist/todoai.js +6 -2
  2. package/package.json +1 -1
package/dist/todoai.js CHANGED
@@ -44885,8 +44885,12 @@ Cancelled by user (Ctrl+C)
44885
44885
  `);
44886
44886
  try {
44887
44887
  const { spawn } = await import("child_process");
44888
- const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
44889
- spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
44888
+ if (process.platform === "win32") {
44889
+ spawn("cmd", ["/c", "start", "", url], { stdio: "ignore", detached: true }).unref();
44890
+ } else {
44891
+ const cmd = process.platform === "darwin" ? "open" : "xdg-open";
44892
+ spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
44893
+ }
44890
44894
  } catch {}
44891
44895
  process.stderr.write(`Waiting for approval (expires in ${Math.round(expiresIn / 60)}min)...
44892
44896
  `);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoforai/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "todoai": "dist/todoai.js"