diff --git a/README.md b/README.md index 40a5dd6..1034602 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,17 @@ Add to your OpenCode config (`opencode.json`): ### As Standalone CLI ```bash -# Using npx (no install) -npx @username/opencode-multi-model open my-session -m openai/gpt-4o anthropic/claude-3-5-sonnet +# Using bunx (no install) +bunx @username/opencode-multi-model open my-session -m openai/gpt-4o anthropic/claude-3-5-sonnet # Or install globally -npm install -g @username/opencode-multi-model +bun install -g @username/opencode-multi-model opencode-multi-model open my-session -m openai/gpt-4o ``` ### As Project Tool -If you installed it via NPM and want to use it as a project tool, import it from the package: +If you installed it via bun and want to use it as a project tool, import it from the package: ```typescript // .opencode/tools/multi-model.ts diff --git a/bun.lock b/bun.lock index 3dc2b7a..7e37a9c 100644 --- a/bun.lock +++ b/bun.lock @@ -11,7 +11,6 @@ "devDependencies": { "@types/bun": "^1.3.10", "@types/node": "^25.5.0", - "typescript": "^5.0.0", }, }, }, @@ -28,8 +27,6 @@ "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - "undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], "zod": ["zod@4.1.8", "", {}, "sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ=="], diff --git a/package.json b/package.json index 55dc81c..65614de 100644 --- a/package.json +++ b/package.json @@ -4,19 +4,12 @@ "description": "Launch multiple AI models in tmux sessions - OpenCode Plugin, CLI, and Project Tool", "type": "module", "main": "./dist/index.js", - "types": "./dist/index.d.ts", "bin": { "opencode-multi-model": "./dist/cli.js" }, "exports": { - ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts" - }, - "./core": { - "import": "./dist/core/index.js", - "types": "./dist/core/index.d.ts" - } + ".": "./dist/index.js", + "./core": "./dist/core/index.js" }, "files": [ "dist", @@ -24,9 +17,8 @@ "LICENSE" ], "scripts": { - "build": "bun build src/index.ts src/cli.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly --outDir dist", + "build": "bun build src/index.ts src/cli.ts --outdir dist --target bun --format esm", "test": "bun test", - "typecheck": "tsc --noEmit", "prepublishOnly": "bun run build" }, "dependencies": { @@ -35,8 +27,7 @@ }, "devDependencies": { "@types/bun": "^1.3.10", - "@types/node": "^25.5.0", - "typescript": "^5.0.0" + "@types/node": "^25.5.0" }, "keywords": [ "opencode", diff --git a/tsconfig.json b/tsconfig.json index 2eb3bf8..e65e1d7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,19 +5,15 @@ "module": "Preserve", "moduleDetection": "force", "moduleResolution": "bundler", - "allowImportingTsExtensions": false, "verbatimModuleSyntax": true, - "emitDeclarationOnly": true, + "noEmit": true, "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, - "declaration": true, - "outDir": "./dist", - "rootDir": "./src", "types": ["bun-types"] }, - "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "tests"] + "include": ["src/**/*", "tests/**/*"], + "exclude": ["node_modules", "dist"] }