-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
265 lines (265 loc) · 9.1 KB
/
package.json
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
{
"name": "knex",
"version": "2.4.2",
"description": "A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3",
"main": "knex",
"types": "types/index.d.ts",
"engines": {
"node": ">=12"
},
"scripts": {
"build": "npm run build:gitignore && npm run build:ts",
"clean": "node scripts/clean.js",
"build:ts": "tsc",
"build:gitignore": "node scripts/update_gitignore_for_tsc_output.js run",
"format": "prettier --write \"{lib,bin,scripts,test}/**/*.js\"",
"format:check-difference": "prettier --list-different \"{lib,bin,scripts,test}/**/*.js\"",
"debug:test": "mocha --inspect-brk --exit -t 0 test/all-tests-suite.js",
"debug:tape": "node --inspect-brk test/tape/index.js",
"coveralls": "nyc report --reporter=lcov",
"lint": "eslint \"lib/**/*.js\" \"test/**/*.js\" \"bin/**/*.js\"",
"lint:types": "tsd && dtslint types",
"lint:everything": "npm run lint:types && npm run lint",
"test:unit": "npm run test:unit-only && npm run test:cli",
"test:unit-only": "mocha --exit -t 10000 --config test/mocha-unit-config-test.js",
"test:db": "mocha --exit -t 10000 --config test/mocha-integration-config-test.js",
"test:db:coverage": "nyc mocha --exit --check-leaks -t 10000 --config test/mocha-integration-config-test.js && npm run test:tape",
"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",
"test": "mocha --exit -t 10000 --config test/mocha-all-config-test.js && npm run test:tape && npm run test:cli",
"test:coverage": "nyc mocha --exit --check-leaks -t 10000 --config test/mocha-all-config-test.js && npm run test:tape && npm run test:cli",
"test:everything": "npm run lint:everything && npm run test:coverage",
"test:mssql": "cross-env DB=mssql npm run test:db",
"test:mysql": "cross-env DB=mysql npm run test:db",
"test:mysql2": "cross-env DB=mysql2 npm run test:db",
"test:oracledb": "cross-env DB=oracledb npm run test:db",
"test:sqlite": "cross-env DB=sqlite3 npm run test:db",
"test:better-sqlite3": "cross-env DB=better-sqlite3 npm run test:db",
"test:postgres": "cross-env DB=postgres npm run test:db",
"test:cockroachdb": "cross-env DB=cockroachdb npm run test:db",
"test:pgnative": "cross-env DB=pgnative npm run test:db",
"test:tape": "node test/tape/index.js | tap-spec",
"test:cli": "cross-env KNEX_PATH=../knex.js KNEX=bin/cli.js jake -f test/jake/Jakefile",
"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",
"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",
"db:stop": "docker-compose -f scripts/docker-compose.yml down",
"db:start:postgres": "docker-compose -f scripts/docker-compose.yml up --build -d postgres && docker-compose -f scripts/docker-compose.yml up waitpostgres",
"db:stop:postgres": "docker-compose -f scripts/docker-compose.yml down",
"db:start:pgnative": "docker-compose -f scripts/docker-compose.yml up --build -d pgnative && docker-compose -f scripts/docker-compose.yml up waitpgnative",
"db:stop:pgnative": "docker-compose -f scripts/docker-compose.yml down",
"db:start:mysql": "docker-compose -f scripts/docker-compose.yml up --build -d mysql && docker-compose -f scripts/docker-compose.yml up waitmysql",
"db:stop:mysql": "docker-compose -f scripts/docker-compose.yml down",
"db:start:mssql": "docker-compose -f scripts/docker-compose.yml up --build -d mssql && docker-compose -f scripts/docker-compose.yml up waitmssql",
"db:stop:mssql": "docker-compose -f scripts/docker-compose.yml down",
"db:start:cockroachdb": "docker-compose -f scripts/docker-compose.yml up --build -d cockroachdb && docker-compose -f scripts/docker-compose.yml up waitcockroachdb",
"db:stop:cockroachdb": "docker-compose -f scripts/docker-compose.yml down",
"db:start:oracle": "docker-compose -f scripts/docker-compose.yml up --build -d oracledb && docker-compose -f scripts/docker-compose.yml up waitoracledb",
"db:stop:oracle": "docker-compose -f scripts/docker-compose.yml down",
"stress:init": "docker-compose -f scripts/stress-test/docker-compose.yml up --no-start && docker-compose -f scripts/stress-test/docker-compose.yml start",
"stress:test": "node scripts/stress-test/knex-stress-test.js | grep -A 5 -B 60 -- '- STATS '",
"stress:destroy": "docker-compose -f scripts/stress-test/docker-compose.yml stop",
"prepare": "husky install && npm run clean && npm run build",
"prepublishOnly": "npm run format:check-difference && npm run lint && npm run clean && npm run build"
},
"dependencies": {
"colorette": "2.0.19",
"commander": "^9.1.0",
"debug": "4.3.4",
"escalade": "^3.1.1",
"esm": "^3.2.25",
"get-package-type": "^0.1.0",
"getopts": "2.3.0",
"interpret": "^2.2.0",
"lodash": "^4.17.21",
"pg-connection-string": "2.5.0",
"rechoir": "^0.8.0",
"resolve-from": "^5.0.0",
"tarn": "^3.0.2",
"tildify": "2.0.0"
},
"peerDependenciesMeta": {
"tedious": {
"optional": true
},
"mysql": {
"optional": true
},
"mysql2": {
"optional": true
},
"pg": {
"optional": true
},
"pg-native": {
"optional": true
},
"sqlite3": {
"optional": true
},
"better-sqlite3": {
"optional": true
}
},
"lint-staged": {
"*.{js,json}": [
"prettier --write"
]
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
"@types/node": "^18.7.14",
"better-sqlite3": "^7.6.2",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"chai-subset-in-order": "^3.1.0",
"cli-testlab": "^2.2.0",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"dtslint": "4.2.1",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-mocha-no-only": "^1.1.1",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jake": "^10.8.5",
"JSONStream": "^1.3.5",
"lint-staged": "^13.0.0",
"mocha": "^10.0.0",
"mock-fs": "^5.1.4",
"mysql": "^2.18.1",
"mysql2": "^2.3.3",
"nyc": "^15.1.0",
"oracledb": "^5.4.0",
"pg": "^8.8.0",
"pg-query-stream": "^4.2.4",
"prettier": "2.8.3",
"rimraf": "^3.0.2",
"sinon": "^15.0.1",
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.21",
"sqlite3": "^5.0.11",
"tap-spec": "^5.0.0",
"tape": "^5.6.0",
"tedious": "^14.4.0",
"toxiproxy-node-client": "^2.0.6",
"ts-node": "^10.9.1",
"tsd": "^0.25.0",
"typescript": "4.8.3"
},
"buildDependencies": [
"rimraf"
],
"bin": {
"knex": "./bin/cli.js"
},
"repository": {
"type": "git",
"url": "git://github.com/knex/knex.git"
},
"homepage": "https://knex.github.io/documentation/",
"keywords": [
"sql",
"query",
"postgresql",
"postgres",
"mysql",
"cockroachdb",
"sqlite3",
"oracle",
"mssql",
"builder",
"querybuilder",
"build",
"db",
"database"
],
"author": {
"name": "Tim Griesser",
"web": "https://github.com/tgriesser"
},
"contributors": [
{
"name": "Mikael Lepisto"
},
{
"name": "Igor Savin",
"web": "https://www.codeflashbacks.com"
},
{
"name": "Olivier Cavadenti"
},
{
"name": "Simon Liden"
},
{
"name": "Paul Gaurab",
"web": "https://lorefnon.tech"
},
{
"name": "Brian Lauber",
"web": "https://briandamaged.org"
}
],
"browser": {
"./lib/migrations/migrate/Migrator.js": "./lib/util/noop.js",
"./lib/bin/cli.js": "./lib/util/noop.js",
"./lib/migrations/seed/Seeder.js": "./lib/util/noop.js",
"tedious": false,
"mysql": false,
"mysql2": false,
"pg": false,
"pg-native": false,
"pg-query-stream": false,
"oracle": false,
"sqlite3": false,
"better-sqlite3": false,
"oracledb": false
},
"react-native": {
"./lib/migrate": "./lib/util/noop.js",
"./lib/seed": "./lib/util/noop.js"
},
"files": [
"bin/*",
"lib/",
"lib/**/*.js",
"!lib/**/*.ts",
"!lib/**/*.d.ts",
"!lib/**/*.js.map",
"!lib/.gitignore",
"scripts/*",
"types/index.d.ts",
"types/result.d.ts",
"types/tables.d.ts",
"CHANGELOG.md",
"CONTRIBUTING.md",
"knex.js",
"LICENSE",
"README.md",
"UPGRADING.md"
],
"license": "MIT",
"tonicExampleFilename": "scripts/runkit-example.js",
"nyc": {
"check-coverage": true,
"lines": 84,
"statements": 82,
"functions": 83,
"branches": 69,
"extension": [
".js"
],
"exclude": [
"lib/dialects/oracle",
"lib/dialects/oracledb"
]
},
"tsd": {
"directory": "test-tsd",
"compilerOptions": {
"esModuleInterop": false,
"module": "commonjs",
"target": "ES2017"
}
}
}