Compare commits

..

2 Commits

Author SHA1 Message Date
Dax Raad dbba4a97aa force use npm registry 2025-06-23 20:23:37 -04:00
GitMurf 0dc586faef fix: typescript error (any) from models (#347) 2025-06-23 18:44:57 -04:00
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -53,9 +53,12 @@ export namespace BunProc {
if (parsed.dependencies[pkg] === version) return mod
parsed.dependencies[pkg] = version
await Bun.write(pkgjson, JSON.stringify(parsed, null, 2))
await BunProc.run(["install"], {
cwd: Global.Path.cache,
}).catch((e) => {
await BunProc.run(
["install", "--registry", "https://registry.npmjs.org/"],
{
cwd: Global.Path.cache,
},
).catch((e) => {
new InstallFailedError(
{ pkg, version },
{
+1 -1
View File
@@ -57,7 +57,7 @@ export namespace ModelsDev {
}
refresh()
const json = await data()
return JSON.parse(json)
return JSON.parse(json) as Record<string, Provider>
}
async function refresh() {