diff --git a/src/cli.ts b/src/cli.ts index 4179a8c..35da605 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,5 +1,6 @@ #!/usr/bin/env bun import { Command } from "commander"; +import pkg from "../package.json"; import { cleanupMultiModel } from "./core/cleanup"; import { closeMultiModel } from "./core/close"; import { openMultiModel } from "./core/open"; @@ -10,7 +11,7 @@ const program = new Command(); program .name("opencode-multi-model") .description("Launch multiple OpenCode models in tmux sessions") - .version("1.0.0"); + .version(pkg.version); program .command("open") diff --git a/tsconfig.json b/tsconfig.json index e65e1d7..4591888 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,9 @@ "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, - "types": ["bun-types"] + "types": ["bun-types"], + "resolveJsonModule": true, + "esModuleInterop": true }, "include": ["src/**/*", "tests/**/*"], "exclude": ["node_modules", "dist"]