mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: add .quiet
This commit is contained in:
parent
8e248ae045
commit
677b19e22e
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ export namespace Installation {
|
|||
|
||||
export async function latest() {
|
||||
const registry = await iife(async () => {
|
||||
const r = (await $`npm config get registry`.throws(false).text()).trim()
|
||||
const r = (await $`npm config get registry`.quiet().nothrow().text()).trim()
|
||||
const reg = r || "https://registry.npmjs.org"
|
||||
return reg.endsWith("/") ? reg.slice(0, -1) : reg
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue