UNPKG

9.28 kBJSONView Raw
1{
2 "name": "knex",
3 "version": "3.1.0",
4 "description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3",
5 "main": "knex",
6 "types": "types/index.d.ts",
7 "engines": {
8 "node": ">=16"
9 },
10 "scripts": {
11 "build": "npm run build:gitignore && npm run build:ts && npm run format",
12 "clean": "node scripts/clean.js",
13 "build:ts": "tsc",
14 "build:gitignore": "node scripts/update_gitignore_for_tsc_output.js run",
15 "format": "prettier --write --list-different .",
16 "format:check": "prettier --list-different .",
17 "debug:test": "mocha --inspect-brk --exit -t 0 test/all-tests-suite.js",
18 "debug:tape": "node --inspect-brk test/tape/index.js",
19 "coveralls": "nyc report --reporter=lcov",
20 "lint": "eslint --cache .",
21 "lint:fix": "eslint --cache --fix .",
22 "lint:types": "tsd",
23 "lint:types:legacy": "dtslint types",
24 "lint:everything": "npm run lint && npm run lint:types",
25 "lint:fix:everything": "npm run lint:fix && npm run lint:types",
26 "test:unit": "npm run test:unit-only && npm run test:cli",
27 "test:unit-only": "mocha --exit -t 10000 --config test/mocha-unit-config-test.js",
28 "test:db": "mocha --exit -t 10000 --config test/mocha-integration-config-test.js",
29 "test:db:coverage": "nyc mocha --exit --check-leaks -t 10000 --config test/mocha-integration-config-test.js && npm run test:tape",
30 "test:db:no-oracle": "cross-env DB=\"mssql mysql mysql2 postgres sqlite3\" mocha --exit -t 10000 --config test/mocha-integration-config-test.js && npm run test:tape",
31 "test": "mocha --exit -t 10000 --config test/mocha-all-config-test.js && npm run test:tape && npm run test:cli",
32 "test:coverage": "nyc mocha --exit --check-leaks -t 10000 --config test/mocha-all-config-test.js && npm run test:tape && npm run test:cli",
33 "test:everything": "npm run lint:everything && npm run test:coverage",
34 "test:mssql": "cross-env DB=mssql npm run test:db",
35 "test:mysql": "cross-env DB=mysql npm run test:db",
36 "test:mysql2": "cross-env DB=mysql2 npm run test:db",
37 "test:oracledb": "cross-env DB=oracledb npm run test:db",
38 "test:sqlite": "cross-env DB=sqlite3 npm run test:db",
39 "test:better-sqlite3": "cross-env DB=better-sqlite3 npm run test:db",
40 "test:postgres": "cross-env DB=postgres npm run test:db",
41 "test:cockroachdb": "cross-env DB=cockroachdb npm run test:db",
42 "test:pgnative": "cross-env DB=pgnative npm run test:db",
43 "test:tape": "node test/tape/index.js | tap-spec",
44 "test:cli": "cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile",
45 "db:start": "docker-compose -f scripts/docker-compose.yml up --build -d mysql oracledb postgres mssql cockroachdb pgnative && docker-compose -f scripts/docker-compose.yml up waitmssql waitmysql waitpostgres waitoracledb",
46 "db:start:no-oracle": "docker-compose -f scripts/docker-compose.yml up --build -d mysql postgres mssql cockroachdb pgnative && docker-compose -f scripts/docker-compose.yml up waitmssql waitmysql waitpostgres",
47 "db:stop": "docker-compose -f scripts/docker-compose.yml down",
48 "db:start:postgres": "docker-compose -f scripts/docker-compose.yml up --build -d postgres && docker-compose -f scripts/docker-compose.yml up waitpostgres",
49 "db:stop:postgres": "docker-compose -f scripts/docker-compose.yml down",
50 "db:start:pgnative": "docker-compose -f scripts/docker-compose.yml up --build -d pgnative && docker-compose -f scripts/docker-compose.yml up waitpgnative",
51 "db:stop:pgnative": "docker-compose -f scripts/docker-compose.yml down",
52 "db:start:mysql": "docker-compose -f scripts/docker-compose.yml up --build -d mysql && docker-compose -f scripts/docker-compose.yml up waitmysql",
53 "db:stop:mysql": "docker-compose -f scripts/docker-compose.yml down",
54 "db:start:mssql": "docker-compose -f scripts/docker-compose.yml up --build -d mssql && docker-compose -f scripts/docker-compose.yml up waitmssql",
55 "db:stop:mssql": "docker-compose -f scripts/docker-compose.yml down",
56 "db:start:cockroachdb": "docker-compose -f scripts/docker-compose.yml up --build -d cockroachdb && docker-compose -f scripts/docker-compose.yml up waitcockroachdb",
57 "db:stop:cockroachdb": "docker-compose -f scripts/docker-compose.yml down",
58 "db:start:oracle": "docker-compose -f scripts/docker-compose.yml up --build -d oracledb && docker-compose -f scripts/docker-compose.yml up waitoracledb",
59 "db:stop:oracle": "docker-compose -f scripts/docker-compose.yml down",
60 "stress:init": "docker-compose -f scripts/stress-test/docker-compose.yml up --no-start && docker-compose -f scripts/stress-test/docker-compose.yml start",
61 "stress:test": "node scripts/stress-test/knex-stress-test.js | grep -A 5 -B 60 -- '- STATS '",
62 "stress:destroy": "docker-compose -f scripts/stress-test/docker-compose.yml stop"
63 },
64 "dependencies": {
65 "colorette": "2.0.19",
66 "commander": "^10.0.0",
67 "debug": "4.3.4",
68 "escalade": "^3.1.1",
69 "esm": "^3.2.25",
70 "get-package-type": "^0.1.0",
71 "getopts": "2.3.0",
72 "interpret": "^2.2.0",
73 "lodash": "^4.17.21",
74 "pg-connection-string": "2.6.2",
75 "rechoir": "^0.8.0",
76 "resolve-from": "^5.0.0",
77 "tarn": "^3.0.2",
78 "tildify": "2.0.0"
79 },
80 "peerDependenciesMeta": {
81 "tedious": {
82 "optional": true
83 },
84 "mysql": {
85 "optional": true
86 },
87 "mysql2": {
88 "optional": true
89 },
90 "pg": {
91 "optional": true
92 },
93 "pg-native": {
94 "optional": true
95 },
96 "sqlite3": {
97 "optional": true
98 },
99 "better-sqlite3": {
100 "optional": true
101 }
102 },
103 "lint-staged": {
104 "*": "prettier --ignore-unknown --write",
105 "*.js": "eslint --cache --fix"
106 },
107 "devDependencies": {
108 "@tsconfig/recommended": "^1.0.1",
109 "@types/node": "^20.4.0",
110 "better-sqlite3": "^9.1.1",
111 "chai": "^4.3.6",
112 "chai-as-promised": "^7.1.1",
113 "chai-subset-in-order": "^3.1.0",
114 "cli-testlab": "^2.2.0",
115 "coveralls": "^3.1.1",
116 "cross-env": "^7.0.3",
117 "dtslint": "4.2.1",
118 "eslint": "^8.54.0",
119 "eslint-config-prettier": "^8.6.0",
120 "eslint-plugin-import": "^2.29.0",
121 "eslint-plugin-mocha-no-only": "^1.1.1",
122 "eslint-plugin-prettier": "^4.2.1",
123 "husky": "^8.0.1",
124 "jake": "^10.8.5",
125 "JSONStream": "^1.3.5",
126 "lint-staged": "^13.0.0",
127 "mocha": "^10.0.0",
128 "mock-fs": "^5.1.4",
129 "mysql": "^2.18.1",
130 "mysql2": "^3.2.0",
131 "nyc": "^15.1.0",
132 "oracledb": "^6.1.0",
133 "pg": "^8.8.0",
134 "pg-query-stream": "^4.2.4",
135 "prettier": "2.8.7",
136 "rimraf": "^5.0.5",
137 "sinon": "^15.0.1",
138 "sinon-chai": "^3.7.0",
139 "source-map-support": "^0.5.21",
140 "sqlite3": "^5.0.11",
141 "tap-spec": "^5.0.0",
142 "tape": "^5.6.0",
143 "tedious": "^16.6.1",
144 "toxiproxy-node-client": "^2.0.6",
145 "ts-node": "^10.9.1",
146 "tsd": "^0.28.1",
147 "typescript": "5.0.4"
148 },
149 "buildDependencies": [
150 "rimraf"
151 ],
152 "bin": {
153 "knex": "./bin/cli.js"
154 },
155 "repository": {
156 "type": "git",
157 "url": "git://github.com/knex/knex.git"
158 },
159 "homepage": "https://knex.github.io/documentation/",
160 "keywords": [
161 "sql",
162 "query",
163 "postgresql",
164 "postgres",
165 "mysql",
166 "cockroachdb",
167 "sqlite3",
168 "oracle",
169 "mssql",
170 "builder",
171 "querybuilder",
172 "build",
173 "db",
174 "database"
175 ],
176 "author": {
177 "name": "Tim Griesser",
178 "web": "https://github.com/tgriesser"
179 },
180 "contributors": [
181 {
182 "name": "Mikael Lepisto"
183 },
184 {
185 "name": "Igor Savin",
186 "web": "https://www.codeflashbacks.com"
187 },
188 {
189 "name": "Olivier Cavadenti"
190 },
191 {
192 "name": "Simon Liden"
193 },
194 {
195 "name": "Paul Gaurab",
196 "web": "https://lorefnon.tech"
197 },
198 {
199 "name": "Brian Lauber",
200 "web": "https://briandamaged.org"
201 }
202 ],
203 "browser": {
204 "./lib/migrations/migrate/Migrator.js": "./lib/util/noop.js",
205 "./lib/bin/cli.js": "./lib/util/noop.js",
206 "./lib/migrations/seed/Seeder.js": "./lib/util/noop.js",
207 "tedious": false,
208 "mysql": false,
209 "mysql2": false,
210 "pg": false,
211 "pg-native": false,
212 "pg-query-stream": false,
213 "oracle": false,
214 "sqlite3": false,
215 "better-sqlite3": false,
216 "oracledb": false
217 },
218 "react-native": {
219 "./lib/migrate": "./lib/util/noop.js",
220 "./lib/seed": "./lib/util/noop.js"
221 },
222 "files": [
223 "bin/*",
224 "lib/",
225 "lib/**/*.js",
226 "!lib/**/*.ts",
227 "!lib/**/*.d.ts",
228 "!lib/**/*.js.map",
229 "!lib/.gitignore",
230 "scripts/*",
231 "types/index.d.ts",
232 "types/result.d.ts",
233 "types/tables.d.ts",
234 "CHANGELOG.md",
235 "CONTRIBUTING.md",
236 "knex.js",
237 "knex.mjs",
238 "LICENSE",
239 "README.md",
240 "UPGRADING.md"
241 ],
242 "license": "MIT",
243 "tonicExampleFilename": "scripts/runkit-example.js",
244 "nyc": {
245 "check-coverage": true,
246 "lines": 84,
247 "statements": 82,
248 "functions": 83,
249 "branches": 69,
250 "extension": [
251 ".js"
252 ],
253 "exclude": [
254 "lib/dialects/oracle",
255 "lib/dialects/oracledb",
256 "test/**/*.spec.js"
257 ]
258 },
259 "tsd": {
260 "directory": "test-tsd",
261 "compilerOptions": {
262 "esModuleInterop": false,
263 "module": "commonjs",
264 "target": "ES2017"
265 }
266 }
267}