Files
turso/testing/conformance/javascript/package.json
Pekka Enberg 17f12b104c bindings/javascript: pin better-sqlite3 to 12.9.0
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.
2026-07-06 10:38:59 +03:00

25 lines
960 B
JSON

{
"name": "turso-integration-tests",
"type": "module",
"private": true,
"scripts": {
"test": "npm run test:turso && npm run test:serverless && npm run test:better-sqlite3",
"test:turso": "PROVIDER=turso ava __test__/*.test.js",
"test:serverless": "PROVIDER=serverless ava __test__/async.test.js",
"test:libsql": "PROVIDER=libsql ava __test__/*.test.js",
"test:better-sqlite3": "PROVIDER=better-sqlite3 ava __test__/sync.test.js",
"test:serverless-compat": "COMPAT_PROVIDER=serverless-compat ava __test__/compat.test.js",
"test:libsql-client": "COMPAT_PROVIDER=libsql-client ava __test__/compat.test.js"
},
"devDependencies": {
"ava": "^6.4.1"
},
"dependencies": {
"@tursodatabase/serverless": "../../../serverless/javascript",
"@tursodatabase/database": "../../../bindings/javascript/packages/native",
"better-sqlite3": "12.9.0",
"libsql": "^0.6.0-pre.41",
"@libsql/client": "^0.15.15"
}
}