algocoach 0.1.3 → 0.1.4

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/cli/index.ts +9 -7
  2. package/package.json +1 -1
package/cli/index.ts CHANGED
@@ -96,13 +96,15 @@ async function cmdStart() {
96
96
 
97
97
  console.log(`\n AlgoCoach running at ${url}\n`)
98
98
 
99
- // Auto-open browser (fire-and-forget)
100
- const openCmd = process.platform === "darwin"
101
- ? ["open", url]
102
- : process.platform === "win32"
103
- ? ["cmd", "/c", "start", url]
104
- : ["xdg-open", url]
105
- Bun.spawn(openCmd).catch(() => {})
99
+ // Auto-open browser
100
+ try {
101
+ const openCmd = process.platform === "darwin"
102
+ ? ["open", url]
103
+ : process.platform === "win32"
104
+ ? ["cmd", "/c", "start", url]
105
+ : ["xdg-open", url]
106
+ Bun.spawnSync(openCmd)
107
+ } catch {}
106
108
  }
107
109
 
108
110
  const cmd = process.argv[2] || "start"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algocoach",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "algocoach": "cli/index.ts"