Files
inkling/package.json
altair823 c7e9463adb fix(e2e): rebuild better-sqlite3 per ABI + select inbox window by title
- Vitest needs the node-ABI prebuilt sqlite binary; Electron 41 needs ABI 145.
  Add `rebuild:node` / `rebuild:electron` scripts and wire them as
  pre-hooks for `test`, `test:e2e`, `start`, `dev`, `test:integration`.
- Smoke test was racing on `firstWindow()`, which non-deterministically
  returned the quickcapture window. Strip ELECTRON_RUN_AS_NODE from the
  launch env, wait for both windows to register, then pick the inbox by
  title and assert the heading via `getByRole`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 16:05:15 +09:00

47 lines
1.4 KiB
JSON

{
"name": "inkling",
"version": "0.2.0",
"private": true,
"main": "out/main/index.js",
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
"start": "electron-vite preview",
"rebuild:node": "cd node_modules/better-sqlite3 && prebuild-install",
"rebuild:electron": "cd node_modules/better-sqlite3 && prebuild-install --runtime=electron --target=41.3.0",
"pretest": "npm run rebuild:node",
"pretest:integration": "npm run rebuild:node",
"pretest:e2e": "npm run rebuild:electron && npm run build",
"prestart": "npm run rebuild:electron",
"predev": "npm run rebuild:electron",
"test": "vitest run",
"test:watch": "vitest",
"test:integration": "INKLING_INTEGRATION=1 vitest run tests/integration",
"test:e2e": "playwright test",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"better-sqlite3": "12.9.0",
"electron": "41.3.0",
"electron-log": "5.2.0",
"react": "19.2.5",
"react-dom": "19.2.5",
"uuid": "11.0.3",
"zod": "4.3.6",
"zustand": "5.0.12"
},
"devDependencies": {
"@playwright/test": "1.59.1",
"@types/better-sqlite3": "7.6.11",
"@types/node": "24.0.0",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
"@vitejs/plugin-react": "5.1.4",
"electron-vite": "5.0.0",
"typescript": "6.0.3",
"undici": "8.1.0",
"vite": "7.3.2",
"vitest": "4.1.5"
}
}