xonecas.io
64875
Mc

mini-coder / commit 304aa97

build: add build step and fix global install

- Add 'build' script: bundles src/index.ts -> dist/mc.js with --packages=external
- Point bin.mc at dist/mc.js instead of src/index.ts
- Update README install instructions to use: bun run build && bun add -g mini-coder@file:$(pwd)

Sean2026-02-23 304aa97783e2abc016b6ae7a9836e37ed4c3c544 parent 1759b1a

2 files changed

README.md+1−1
@@ -70,7 +70,7 @@ I can also connect to **MCP servers** (like Exa for web search), giving you supe
7070
7171 ```bash
7272 # Install globally
73-bun install -g .
73+bun run build && bun add -g mini-coder@file:$(pwd)
7474
7575 # Set your provider key (pick one — or run Ollama locally)
7676 export OPENCODE_API_KEY=your-zen-key # recommended
package.json+32−31
@@ -1,33 +1,34 @@
11 {
2- "name": "mini-coder",
3- "version": "0.0.3",
4- "description": "A small, fast CLI coding agent",
5- "module": "src/index.ts",
6- "type": "module",
7- "bin": {
8- "mc": "./src/index.ts"
9- },
10- "scripts": {
11- "dev": "bun run src/index.ts",
12- "typecheck": "tsc --noEmit",
13- "lint": "biome check src",
14- "format": "biome format --write src",
15- "test": "bun test"
16- },
17- "dependencies": {
18- "@ai-sdk/anthropic": "^3.0.46",
19- "@ai-sdk/google": "^3.0.30",
20- "@ai-sdk/openai": "^3.0.30",
21- "@ai-sdk/openai-compatible": "^2.0.30",
22- "@modelcontextprotocol/sdk": "^1.26.0",
23- "ai": "^6.0.94",
24- "ollama-ai-provider": "^1.2.0",
25- "yoctocolors": "^2.1.1",
26- "zod": "^4.3.6"
27- },
28- "devDependencies": {
29- "@biomejs/biome": "^1.9.4",
30- "@types/bun": "latest",
31- "typescript": "^5.8.3"
32- }
2+ "name": "mini-coder",
3+ "version": "0.0.3",
4+ "description": "A small, fast CLI coding agent",
5+ "module": "src/index.ts",
6+ "type": "module",
7+ "bin": {
8+ "mc": "./dist/mc.js"
9+ },
10+ "scripts": {
11+ "build": "bun build src/index.ts --target=bun --outfile=dist/mc.js --packages=external",
12+ "dev": "bun run src/index.ts",
13+ "typecheck": "tsc --noEmit",
14+ "lint": "biome check src",
15+ "format": "biome format --write src",
16+ "test": "bun test"
17+ },
18+ "dependencies": {
19+ "@ai-sdk/anthropic": "^3.0.46",
20+ "@ai-sdk/google": "^3.0.30",
21+ "@ai-sdk/openai": "^3.0.30",
22+ "@ai-sdk/openai-compatible": "^2.0.30",
23+ "@modelcontextprotocol/sdk": "^1.26.0",
24+ "ai": "^6.0.94",
25+ "ollama-ai-provider": "^1.2.0",
26+ "yoctocolors": "^2.1.1",
27+ "zod": "^4.3.6"
28+ },
29+ "devDependencies": {
30+ "@biomejs/biome": "^1.9.4",
31+ "@types/bun": "latest",
32+ "typescript": "^5.8.3"
33+ }
3334 }