chore(js-sdk): Compatible with nodenext (#1667)

This commit is contained in:
zWing
2025-08-09 08:05:50 +08:00
committed by GitHub
parent 83f4e8e156
commit 2f4291672b
11 changed files with 35 additions and 32 deletions

View File

@@ -1,7 +1,7 @@
import { createClient } from "./gen/client/client"
import { type Config } from "./gen/client/types"
import { OpencodeClient } from "./gen/sdk.gen"
export * from "./gen/types.gen"
import { createClient } from "./gen/client/client.js"
import { type Config } from "./gen/client/types.js"
import { OpencodeClient } from "./gen/sdk.gen.js"
export * from "./gen/types.gen.js"
export function createOpencodeClient(config?: Config) {
const client = createClient(config)