-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
163 lines (163 loc) · 6.32 KB
/
package.json
File metadata and controls
163 lines (163 loc) · 6.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"name": "@photostructure/sqlite",
"version": "0.5.0",
"description": "Drop-in replacement for node:sqlite",
"homepage": "https://photostructure.github.io/node-sqlite/",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
}
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/photostructure/node-sqlite.git"
},
"license": "MIT",
"private": false,
"scripts": {
"install": "node-gyp-build",
"//build": "build commands",
"build": "run-p build:dist build:native",
"build:dist": "tsup && node scripts/post-build.mjs",
"build:native": "tsx scripts/build-native.ts",
"build:native:linux": "bash scripts/prebuild-linux-glibc.sh",
"build:native:rebuild": "node-gyp rebuild",
"rebuild": "run-s clean build",
"//clean": "cleanup commands",
"clean": "run-p clean:dist clean:native",
"clean:dist": "del-cli dist \"*.tsbuildinfo\"",
"clean:native": "node-gyp clean && del-cli prebuilds",
"clean:docker": "docker rm -f $(docker ps -aq --filter name=node-sqlite-test 2>/dev/null) 2>/dev/null || true",
"clean:docker:cache": "del-cli .cache",
"clean:all": "run-p clean:dist clean:native clean:docker clean:docker:cache",
"//sync": "sync upstream sources",
"sync": "run-s sync:node sync:sqlite sync:tests",
"sync:node": "tsx scripts/sync-from-node.ts",
"sync:sqlite": "tsx scripts/sync-from-sqlite.ts",
"sync:tests": "tsx scripts/sync-node-tests.ts",
"//test": "'test' is quick dev feedback, 'test:all' is comprehensive",
"test": "npm run build:dist && node --expose-gc node_modules/jest/bin/jest.js --no-coverage",
"test:cjs": "node --expose-gc node_modules/jest/bin/jest.js",
"test:esm": "cross-env TEST_ESM=1 node --expose-gc --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js",
"test:all": "npm run build && run-s test:cjs test:esm",
"test:serial": "node --expose-gc node_modules/jest/bin/jest.js --runInBand --no-coverage",
"test:api": "jest --config jest.config.api-compat.cjs",
"test:node": "node --test test/node-compat/*.js test/node-compat/*.mjs",
"test:memory": "cross-env TEST_MEMORY=1 node --expose-gc node_modules/jest/bin/jest.js --no-coverage test/memory.test.ts",
"test:extension": "cd test/fixtures/test-extension && node build.js",
"test:docker:debian": "REUSE_BUILD=1 REUSE_CONTAINER=1 bash scripts/test-docker-debian.sh",
"test:docker:alpine": "REUSE_BUILD=1 REUSE_CONTAINER=1 bash scripts/test-docker-alpine.sh",
"//lint": "'lint' runs everywhere, 'lint:full' adds optional tools",
"lint": "run-p lint:ts lint:eslint",
"lint:ts": "tsc --noEmit",
"lint:ts:build": "tsc -p tsconfig.build.json --noEmit",
"lint:ts:scripts": "tsc --noEmit --module esnext --target es2022 --moduleResolution node --project scripts/tsconfig.json",
"lint:ts:bench": "cd benchmark && npm install && tsc --noEmit",
"lint:eslint": "eslint src/ test/ scripts/",
"lint:native": "tsx scripts/clang-tidy.ts",
"lint:api": "tsx scripts/check-api-compat.ts",
"lint:full": "run-s lint lint:native lint:api",
"//fmt": "code formatting",
"fmt": "run-p fmt:prettier fmt:native",
"fmt:prettier": "prettier --cache --write .",
"fmt:native": "clang-format --style=LLVM -i src/shims/*.h src/*.cpp src/*.h test/fixtures/test-extension/*.c || true",
"//memory": "memory analysis tools",
"memory:check": "npx --yes tsx scripts/check-memory.ts",
"memory:valgrind": "bash scripts/valgrind-test.sh",
"memory:asan": "bash scripts/sanitizers-test.sh",
"//bench": "benchmarks",
"bench": "cd benchmark && npm install && npm run bench",
"bench:memory": "cd benchmark && npm install && npm run bench:memory",
"bench:full": "cd benchmark && npm install && npm run bench && npm run bench:memory",
"//stress": "stress tests",
"stress": "cd benchmark && npm install && cd .. && tsx scripts/stress-test.ts",
"stress:validate": "node --expose-gc node_modules/jest/bin/jest.js --no-coverage benchmark/stress-test.test.ts",
"stress:ci": "cd benchmark && npm install && cd .. && tsx scripts/stress-test.ts --ci --output-file stress-test-results.json",
"//security": "security scanning",
"security": "run-s security:audit security:osv",
"security:audit": "npm audit --production",
"security:audit:fix": "npm audit fix --force",
"security:osv": "osv-scanner scan --recursive . || true",
"//docs": "documentation",
"docs": "typedoc",
"//ci": "CI and release commands",
"precommit": "npx --yes tsx scripts/precommit.ts",
"release:prepare": "npm run build:dist",
"update:actions": "pinact run -u",
"install:osv-scanner": "go install github.com/google/osv-scanner/cmd/osv-scanner@latest",
"install:actions": "go install github.com/suzuki-shunsuke/pinact/cmd/pinact@latest"
},
"gypfile": true,
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
},
"os": [
"darwin",
"linux",
"win32"
],
"cpu": [
"x64",
"arm64"
],
"keywords": [
"sqlite",
"node:sqlite",
"drop-in-replacement",
"database",
"sql",
"native",
"node-addon",
"DatabaseSync",
"StatementSync",
"sync",
"performance"
],
"dependencies": {
"node-addon-api": "^8.5.0",
"node-gyp-build": "^4.8.4"
},
"devDependencies": {
"@mceachen/sqlite-vec": "^0.3.2",
"@types/jest": "^30.0.0",
"@types/node": "^25.0.3",
"better-sqlite3": "^12.6.2",
"cross-env": "^10.1.0",
"del-cli": "^7.0.0",
"eslint": "^9.39.2",
"eslint-plugin-regexp": "^3.0.0",
"eslint-plugin-security": "^3.0.1",
"globals": "^17.0.0",
"jest": "^30.2.0",
"node-gyp": "^12.2.0",
"npm-check-updates": "^19",
"npm-run-all2": "8.0.4",
"prebuildify": "^6.0.1",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
"ts-jest": "^29.4.6",
"tsup": "^8.5.1",
"tsx": "^4.21.0",
"typedoc": "^0.28.16",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0"
},
"versions": {
"nodejs": "v25.6.1@dffcdb3",
"sqlite": "3.51.2"
}
}