|
1 | 1 | import { BusEvent } from "@/bus/bus-event" |
2 | | -import { Bus } from "@/bus" |
3 | 2 | import path from "path" |
4 | 3 | import { $ } from "bun" |
5 | 4 | import z from "zod" |
@@ -66,23 +65,23 @@ export namespace Installation { |
66 | 65 | const checks = [ |
67 | 66 | { |
68 | 67 | name: "npm" as const, |
69 | | - command: () => $`npm list -g --depth=0`.throws(false).text(), |
| 68 | + command: () => $`npm list -g --depth=0`.throws(false).quiet().text(), |
70 | 69 | }, |
71 | 70 | { |
72 | 71 | name: "yarn" as const, |
73 | | - command: () => $`yarn global list`.throws(false).text(), |
| 72 | + command: () => $`yarn global list`.throws(false).quiet().text(), |
74 | 73 | }, |
75 | 74 | { |
76 | 75 | name: "pnpm" as const, |
77 | | - command: () => $`pnpm list -g --depth=0`.throws(false).text(), |
| 76 | + command: () => $`pnpm list -g --depth=0`.throws(false).quiet().text(), |
78 | 77 | }, |
79 | 78 | { |
80 | 79 | name: "bun" as const, |
81 | | - command: () => $`bun pm ls -g`.throws(false).text(), |
| 80 | + command: () => $`bun pm ls -g`.throws(false).quiet().text(), |
82 | 81 | }, |
83 | 82 | { |
84 | 83 | name: "brew" as const, |
85 | | - command: () => $`brew list --formula opencode`.throws(false).text(), |
| 84 | + command: () => $`brew list --formula opencode`.throws(false).quiet().text(), |
86 | 85 | }, |
87 | 86 | ] |
88 | 87 |
|
@@ -112,9 +111,9 @@ export namespace Installation { |
112 | 111 | ) |
113 | 112 |
|
114 | 113 | async function getBrewFormula() { |
115 | | - const tapFormula = await $`brew list --formula sst/tap/opencode`.throws(false).text() |
| 114 | + const tapFormula = await $`brew list --formula sst/tap/opencode`.throws(false).quiet().text() |
116 | 115 | if (tapFormula.includes("opencode")) return "sst/tap/opencode" |
117 | | - const coreFormula = await $`brew list --formula opencode`.throws(false).text() |
| 116 | + const coreFormula = await $`brew list --formula opencode`.throws(false).quiet().text() |
118 | 117 | if (coreFormula.includes("opencode")) return "opencode" |
119 | 118 | return "opencode" |
120 | 119 | } |
|
0 commit comments