fix(opencode): skip typechecking generated models snapshot (#19018)
This commit is contained in:
parent
0dcdf5f529
commit
50f6aa3763
2 changed files with 8 additions and 4 deletions
|
|
@ -89,7 +89,7 @@ export namespace ModelsDev {
|
|||
const result = await Filesystem.readJson(Flag.OPENCODE_MODELS_PATH ?? filepath).catch(() => {})
|
||||
if (result) return result
|
||||
// @ts-ignore
|
||||
const snapshot = await import("./models-snapshot")
|
||||
const snapshot = await import("./models-snapshot.js")
|
||||
.then((m) => m.snapshot as Record<string, unknown>)
|
||||
.catch(() => undefined)
|
||||
if (snapshot) return snapshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue