Merge remote-tracking branch 'origin/opencode-2-0' into opencode-2-0
commit
04954a9620
|
|
@ -1,7 +1,6 @@
|
|||
node_modules
|
||||
plans
|
||||
package.json
|
||||
package-lock.json
|
||||
bun.lock
|
||||
.gitignore
|
||||
package-lock.json
|
||||
|
|
@ -151,7 +151,9 @@ export namespace Npm {
|
|||
const files = await readdir(dir).catch(() => [])
|
||||
if (!files.length) {
|
||||
await add(pkg)
|
||||
return which(pkg)
|
||||
const retry = await readdir(dir).catch(() => [])
|
||||
if (!retry.length) throw new Error(`No binary found for package "${pkg}" after install`)
|
||||
return path.join(dir, retry[0])
|
||||
}
|
||||
return path.join(dir, files[0])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue