refactor(auth): rename codex-auth to auth subpath export

- Rename src/codex-auth.ts → src/auth.ts
- Update package.json exports: ./codex-auth → ./auth
- Update build script to include auth.ts

Users can now use oh-my-opencode/auth as OpenAI auth plugin.

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2025-12-12 19:39:24 +09:00
parent c662f9c240
commit efe37d4cfc
3 changed files with 5 additions and 5 deletions

View File

@@ -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",