fixing the installation issue

This commit is contained in:
2026-01-27 23:49:48 -05:00
parent 7f4a23a4db
commit 44b78aefae
4 changed files with 14 additions and 6 deletions

View File

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

View File

@@ -95,6 +95,6 @@
"vitest": "^4.0.17"
},
"engines": {
"node": ">=18.0.0"
"bun": ">=1.0.0"
}
}

View File

@@ -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!");

View File

@@ -1,3 +1,3 @@
{
"version": "0.1.75"
"version": "0.1.76"
}