mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
better-sqlite3 12.11.0 dropped its Node 20 (node-v115) prebuilt binaries while still advertising engines.node "20.x", so `yarn install` on the Node 20 CI runners falls back to compiling from source. That source build is fragile across platforms: on macOS arm64 the bundled node-gyp@13 loads an undici that calls webidl.util.markAsUncloneable (Node 22+ only) and crashes, and on Windows older node-gyp can't detect the Visual Studio version on the runner. Pin better-sqlite3 to 12.9.0, the last release that publishes node-v115 prebuilds for every target platform (darwin-arm64/x64, win32-x64/arm64, linux-x64/arm64, musl). With a prebuilt binary there is no source compile, so node-gyp, Visual Studio, and undici never enter the picture.
12 lines
220 B
JSON
12 lines
220 B
JSON
{
|
|
"name": "turso-perf",
|
|
"type": "module",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"better-sqlite3": "12.9.0",
|
|
"@tursodatabase/database": "../packages/native",
|
|
"mitata": "^0.1.11"
|
|
}
|
|
}
|