fix: approve native build scripts and update vitest

Add pnpm.onlyBuiltDependencies to whitelist packages that need
install/postinstall scripts (better-sqlite3, esbuild, node-llama-cpp,
tree-sitter-*). Without this, pnpm silently skips native compilation
causing all tests that touch SQLite to fail.

Also bumps vitest from ^3.0.0 to ^3.2.4.
This commit is contained in:
Tobi Lutke 2026-04-05 18:13:31 -04:00
parent 54fc7b01a9
commit cc32c9958d
No known key found for this signature in database
2 changed files with 3339 additions and 1 deletions

View File

@ -69,7 +69,19 @@
"devDependencies": {
"@types/better-sqlite3": "^7.6.0",
"tsx": "^4.0.0",
"vitest": "^3.0.0"
"vitest": "^3.2.4"
},
"pnpm": {
"onlyBuiltDependencies": [
"better-sqlite3",
"esbuild",
"node-llama-cpp",
"tree-sitter-go",
"tree-sitter-javascript",
"tree-sitter-python",
"tree-sitter-rust",
"tree-sitter-typescript"
]
},
"peerDependencies": {
"typescript": "^5.9.3"

3326
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff