-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 6.98 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) · 6.98 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"name": "@photostructure/sqlite",
"version": "2.3.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"
},
"//files": "Everything binding.gyp compiles must ship: node-gyp-build falls back to a source build on platforms without a prebuild.",
"files": [
"CHANGELOG.md",
"LICENSE",
"README.md",
"binding.gyp",
"dist/",
"prebuilds/",
"src/*.cpp",
"src/*.h",
"src/shims/*.h",
"src/upstream/sqlite3.c",
"src/upstream/sqlite3.h",
"src/upstream/sqlite3ext.h"
],
"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 --expose-gc --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 bundler --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",
"preflight": "npx --yes tsx scripts/preflight.ts",
"//release": "driven by both build.yml and publish.yaml -- see RELEASE.md",
"release:verify-prebuilds": "tsx scripts/release-cli.ts verify-prebuilds",
"release:pack-package": "tsx scripts/release-cli.ts pack",
"release:install-package": "tsx scripts/release-cli.ts install",
"release:load-package": "tsx scripts/release-cli.ts load",
"install:osv-scanner": "go install github.com/google/osv-scanner/cmd/osv-scanner@latest",
"update:pinact": "tsx scripts/pinact.ts"
},
"gypfile": true,
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=22"
},
"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.9.0",
"node-gyp-build": "^4.8.4"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@photostructure/sqlite-vec": "^1.2.0",
"@types/jest": "^30.0.0",
"@types/node": "26.1.1",
"better-sqlite3": "13.0.3",
"cross-env": "^10.1.0",
"del-cli": "^7.0.0",
"eslint": "10.8.0",
"eslint-plugin-regexp": "3.1.1",
"eslint-plugin-security": "4.0.1",
"globals": "17.8.0",
"jest": "^30.4.2",
"node-gyp": "13.0.1",
"npm-check-updates": "23.0.0",
"npm-run-all2": "9.0.2",
"prebuildify": "^6.0.1",
"prettier": "3.9.6",
"prettier-plugin-organize-imports": "^4.3.0",
"ts-jest": "29.4.12",
"tsup": "^8.5.1",
"tsx": "4.23.1",
"typedoc": "0.28.20",
"typescript": "6.0.3",
"typescript-eslint": "8.65.0"
},
"versions": {
"nodejs": "v26.x-staging@079339a",
"sqlite": "3.53.4"
}
}