diff --git a/README.md b/README.md index 0749de2..7927b5f 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,18 @@ Over time, CodeTyper learns which provider performs best for different task type ## Installation +**Requires [Bun](https://bun.sh) runtime** (v1.0.0+) + ```bash -# Clone and install -git clone https://github.com/your-username/codetyper-cli.git -cd codetyper-cli +# Install Bun if you don't have it +curl -fsSL https://bun.sh/install | bash + +# Install globally via npm +npm install -g codetyper-cli + +# Or install from source +git clone https://github.com/CarGDev/codetyper.cli.git +cd codetyper.cli bun install && bun run build && bun link # Login to a provider diff --git a/package.json b/package.json index f1acdea..4b59d95 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,6 @@ "vitest": "^4.0.17" }, "engines": { - "node": ">=18.0.0" + "bun": ">=1.0.0" } } diff --git a/scripts/build.ts b/scripts/build.ts index ae7c11a..466e6d6 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -56,7 +56,7 @@ if (!result.success) { // Update shebang to use node const distPath = join(ROOT_DIR, "dist/index.js"); let distContent = await readFile(distPath, "utf-8"); -distContent = distContent.replace(/^#!.*\n/, "#!/usr/bin/env node\n"); +distContent = distContent.replace(/^#!.*\n/, "#!/usr/bin/env bun\n"); await writeFile(distPath, distContent); console.log("Build completed successfully!"); diff --git a/src/version.json b/src/version.json index 46ec310..b974c4d 100644 --- a/src/version.json +++ b/src/version.json @@ -1,3 +1,3 @@ { - "version": "0.1.75" + "version": "0.1.76" }