diff --git a/package.json b/package.json index a9b7e05..10c3d64 100644 --- a/package.json +++ b/package.json @@ -13,14 +13,14 @@ "types": "./dist/index.d.ts", "import": "./dist/index.js" }, - "./codex-auth": { - "types": "./dist/codex-auth.d.ts", - "import": "./dist/codex-auth.js" + "./auth": { + "types": "./dist/auth.d.ts", + "import": "./dist/auth.js" }, "./schema.json": "./dist/oh-my-opencode.schema.json" }, "scripts": { - "build": "bun build src/index.ts src/codex-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun run build:schema", + "build": "bun build src/index.ts src/auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun run build:schema", "build:schema": "bun run script/build-schema.ts", "clean": "rm -rf dist", "prepublishOnly": "bun run clean && bun run build", diff --git a/src/auth.ts b/src/auth.ts new file mode 100644 index 0000000..6164c53 --- /dev/null +++ b/src/auth.ts @@ -0,0 +1 @@ +export { OpenAIAuthPlugin as default } from "opencode-openai-codex-auth"; diff --git a/src/codex-auth.ts b/src/codex-auth.ts deleted file mode 100644 index 601b21f..0000000 --- a/src/codex-auth.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "opencode-openai-codex-auth";