fixing the installation issue
This commit is contained in:
14
README.md
14
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
|
||||
|
||||
@@ -95,6 +95,6 @@
|
||||
"vitest": "^4.0.17"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
"bun": ">=1.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!");
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "0.1.75"
|
||||
"version": "0.1.76"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user