lllin000_PaperForge/paperforge/plugin/package.json
LLLin000 32e69a6c7b Delete sql.js: remove db.ts, wasm, dependency, and all sql.js code paths
- Remove paperforge/plugin/src/services/db.ts (sql.js wrapper, initDatabase/searchMetadata/SearchResultItem)
- Remove paperforge/plugin/sql-wasm.wasm (644KB binary)
- Remove sql.js and @types/sql.js from package.json; npm install to update lockfile
- dashboard.ts: remove import of db.ts, remove _sqlJsInitialized/_sqlJsFailed state,
  remove the sql.js search path block entirely — all searches go straight to CLI spawn.
  Clean up stale comments.
- Bundle drops from 346KB to 167KB; 6 test files / 58 tests still pass
2026-07-10 23:07:26 +08:00

27 lines
693 B
JSON

{
"name": "paperforge-plugin",
"version": "1.0.0",
"private": true,
"type": "commonjs",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc -noEmit -skipLibCheck",
"prepare": "husky"
},
"devDependencies": {
"@types/node": "^20.0.0",
"builtin-modules": "^3.3.0",
"esbuild": "^0.25.0",
"husky": "^9.1.7",
"jsdom": "^25.0.0",
"lint-staged": "^17.0.8",
"obsidian": "^1.12.0",
"obsidian-test-mocks": "^2.0.0",
"prettier": "^3.8.4",
"typescript": "^5.4.0",
"vitest": "^2.1.0"
}
}