fix: switch from npx to bunx for Bun-native SQLite compatibility

- Update README and docs to use bunx
- Package requires Bun runtime
This commit is contained in:
CodingInCarhartts
2025-12-14 13:02:49 -08:00
parent 34e81521b7
commit b77c569f8e
3 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ Add to `~/.config/opencode/opencode.jsonc`:
"mcp": {
"personal-knowledge": {
"type": "local",
"command": ["npx", "-y", "opencode-personal-knowledge"],
"command": ["bunx", "opencode-personal-knowledge"],
"enabled": true
}
}
+5 -3
View File
@@ -1,6 +1,6 @@
{
"name": "opencode-personal-knowledge",
"version": "1.0.1",
"version": "1.0.2",
"description": "Personal knowledge MCP server with vector database for the Opencode ecosystem",
"type": "module",
"main": "dist/mcp-server.js",
@@ -15,7 +15,7 @@
"start": "bun run src/index.ts",
"dev": "bun --watch run src/index.ts",
"mcp": "bun run src/mcp-server.ts",
"build": "bun build src/mcp-server.ts --outdir=dist --target=node --format=esm && bun build src/index.ts --outdir=dist --target=node --format=esm",
"build": "tsc && chmod +x dist/mcp-server.js",
"prepublishOnly": "npm run build",
"test": "bun test",
"test:coverage": "bun test --coverage",
@@ -50,7 +50,9 @@
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/bun": "^1.1.14"
"@types/bun": "^1.1.14",
"@types/node": "^22.10.2",
"typescript": "^5.7.2"
},
"trustedDependencies": [
"@biomejs/biome",
+4 -5
View File
@@ -1,16 +1,15 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"declaration": true,
"outDir": "./dist",
"rootDir": "./src",
"types": ["bun-types"]
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "tests"]