Files
obsidian_ollama/package.json
fegger 378642152e fix: plugin cannot be installed — manifest path, deps, and install script
- manifest.json: fix 'main' from 'src/main.js' to 'dist/main.js'
  (TypeScript compiles to dist/, not src/ — Obsidian could not find the entry point)
- manifest.json: set isDesktopOnly to true (plugin requires a local Ollama server)
- package.json: remove unused node-fetch dependency (ESM-only, conflicts with CommonJS build)
- src/semantic-cache.ts: use dynamic import for chromadb instead of top-level import
  (prevents plugin load crash when chromadb is not installed; cache defaults to disabled)
- install.sh: new script that installs deps, builds, and copies the plugin into a vault
- README.md: add quick install, manual install, and expanded troubleshooting sections
2026-05-19 17:39:10 +02:00

39 lines
858 B
JSON
Executable File

{
"name": "ollama-plugin",
"version": "1.0.0",
"description": "Ollama integration plugin for Obsidian",
"main": "dist/main.js",
"scripts": {
"test": "jest",
"build": "tsc",
"watch": "tsc --watch",
"lint": "eslint src --ext .ts",
"format": "prettier --write ."
},
"keywords": [
"obsidian",
"ollama",
"chat",
"ai",
"plugin"
],
"author": "Anonymous",
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.11.19",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.3.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3"
},
"dependencies": {
"chromadb": "^1.5.3",
"obsidian": "^1.4.11"
}
}