build: remove tsc

This commit is contained in:
2026-03-19 19:20:39 +05:30
parent ca753cd1ca
commit 61e8d1491d
4 changed files with 11 additions and 27 deletions
+4 -4
View File
@@ -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
-3
View File
@@ -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=="],
+4 -13
View File
@@ -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",
+3 -7
View File
@@ -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"]
}