mirror of
https://github.com/NocturnLabs/opencode-personal-knowledge.git
synced 2026-06-02 06:03:47 +02:00
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:
@@ -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
@@ -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
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user