|
1 | 1 | { |
2 | 2 | "name": "@photostructure/sqlite", |
3 | 3 | "version": "0.1.0", |
4 | | - "description": "Drop-in replacement for node:sqlite - Node.js SQLite implementation extracted from Node.js core", |
| 4 | + "description": "Drop-in replacement for node:sqlite", |
5 | 5 | "homepage": "https://github.com/photostructure/node-sqlite", |
6 | 6 | "types": "./dist/index.d.ts", |
7 | 7 | "main": "./dist/index.js", |
|
17 | 17 | "clean": "run-p clean:*", |
18 | 18 | "clean:dist": "del-cli dist \"*.tsbuildinfo\"", |
19 | 19 | "clean:gyp": "node-gyp clean", |
20 | | - "sync": "node scripts/sync-from-node.js", |
| 20 | + "sync": "node scripts/sync-from-node.mjs", |
21 | 21 | "node-gyp-rebuild": "node-gyp rebuild", |
22 | 22 | "prebuild": "prebuildify --napi --tag-libc --strip", |
23 | 23 | "compile": "tsc --noEmit", |
24 | 24 | "bundle": "tsup src/index.ts --format cjs,esm --dts", |
25 | 25 | "test": "jest", |
26 | 26 | "test:unit": "jest --testPathPattern=src/", |
27 | 27 | "test:integration": "jest --testPathPattern=test/", |
| 28 | + "test:memory": "cross-env TEST_MEMORY=1 node --expose-gc node_modules/jest/bin/jest.js --no-coverage test/memory.test.ts", |
| 29 | + "tests:memory": "node scripts/check-memory.mjs", |
| 30 | + "asan": "cross-env ENABLE_ASAN=1 node scripts/check-memory.mjs", |
| 31 | + "clang-tidy": "node scripts/clang-tidy.mjs", |
| 32 | + "precommit:quality": "node -e \"if(process.platform==='linux'||process.platform==='darwin')process.exit(1)\" || npm run clang-tidy", |
| 33 | + "precommit:memory": "node -e \"if(process.platform!=='linux')process.exit(1)\" && npm run test:memory || echo 'Skipping memory tests (Linux only)'", |
28 | 34 | "lint": "run-s lint:*", |
29 | 35 | "lint:eslint": "eslint src/ test/", |
30 | 36 | "lint:api": "tsc --noEmit src/api-compatibility.test.ts", |
31 | 37 | "lint:fix": "eslint --fix src/ test/", |
32 | 38 | "fmt": "prettier --write \"**/*.{ts,js,json,md}\"", |
33 | 39 | "build": "run-s compile bundle", |
34 | | - "precommit": "run-s fmt lint build test", |
| 40 | + "precommit": "node scripts/precommit.mjs", |
35 | 41 | "prepare-release": "npm run build", |
36 | 42 | "release": "release-it" |
37 | 43 | }, |
|
71 | 77 | "devDependencies": { |
72 | 78 | "@eslint/js": "^9.27.0", |
73 | 79 | "@types/jest": "^29.5.14", |
74 | | - "@types/node": "^22.15.24", |
| 80 | + "@types/node": "^22.15.26", |
75 | 81 | "@typescript-eslint/eslint-plugin": "^8.33.0", |
76 | 82 | "@typescript-eslint/parser": "^8.33.0", |
77 | 83 | "cross-env": "^7.0.3", |
|
0 commit comments