-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
136 lines (136 loc) · 3.79 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
{
"name": "leoric",
"version": "2.13.2",
"description": "yet another JavaScript object-relational mapping library",
"browser": "dist/browser.js",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"exports": "./lib/index.js",
"files": [
"dist",
"lib"
],
"scripts": {
"jsdoc": "rm -rf docs/api && jsdoc -c .jsdoc.json -d docs/api -t node_modules/@cara/minami",
"clean": "tsc -b --clean",
"lint-staged": "lint-staged",
"copy-dts": "mkdir -p lib && cd src && rsync -R ./**/*.d.ts ./*.d.ts ../lib && cd -",
"copy-dts:browser": "mkdir -p dist && cd src && rsync -R ./**/*.d.ts ./*.d.ts ../dist && cd -",
"prepack": "tsc && npm run copy-dts",
"prepack:browser": "rm -rf dist && tsc -p tsconfig.browser.json && npm run copy-dts:browser",
"prepublishOnly": "npm run prepack && npm run prepack:browser",
"pretest": "./test/prepare.sh",
"test": "./test/start.sh",
"test:local": "./test/start.sh",
"test:unit": "./test/start.sh unit",
"test:integration": "./test/start.sh integration",
"test:mysql": "./test/start.sh test/integration/mysql.test.js",
"test:mysql2": "./test/start.sh test/integration/mysql2.test.js",
"test:postgres": "./test/start.sh test/integration/postgres.test.js",
"test:sqlite": "./test/start.sh test/integration/sqlite.test.js",
"test:sqljs": "./test/start.sh test/integration/sqljs.test.js",
"test:custom": "./test/start.sh test/integration/custom.test.js",
"test:sqlcipher": "./test/start.sh test/integration/sqlcipher.test.js",
"test:dts": "./test/start.sh dts",
"test:coverage": "nyc ./test/start.sh && nyc report --reporter=lcov",
"lint": "eslint ./",
"lint:fix": "eslint . --fix",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "https://github.com/cyjake/leoric.git"
},
"keywords": [
"model",
"mysql",
"orm",
"postgresql",
"query builder",
"sqlite"
],
"maintainers": [
"cyjake (http://cyj.me)",
"jimmydaddy <[email protected]>"
],
"license": "BSD-3-Clause",
"engines": {
"node": ">= 12.0.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --no-ignore --fix"
]
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"include": [
"src"
]
},
"dependencies": {
"dayjs": "^1.10.3",
"debug": "^3.1.0",
"deep-equal": "^2.0.5",
"heredoc": "^1.3.1",
"pluralize": "^7.0.0",
"reflect-metadata": "^0.1.13",
"sqlstring": "^2.3.0",
"tslib": "^2.5.0",
"validator": "^13.5.2"
},
"peerDependencies": {
"mysql": "^2.17.1",
"mysql2": "^2.3.0 || ^3.9.4",
"pg": "^8.5.1",
"sql.js": "^1.8.0",
"sqlite3": "^5.0.2"
},
"peerDependenciesMeta": {
"mysql": {
"optional": true
},
"mysql2": {
"optional": true
},
"pg": {
"optional": true
},
"sqlite3": {
"optional": true
},
"sql.js": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/eslint-parser": "^7.14.7",
"@cara/minami": "^1.2.3",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@journeyapps/sqlcipher": "^5.2.0",
"@tsconfig/node16": "^16.1.1",
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.1",
"@types/sinon": "^10.0.20",
"@types/sql.js": "^1.4.4",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"eslint": "^8.52.0",
"eslint-plugin-no-only-tests": "^3.0.0",
"expect.js": "^0.3.1",
"husky": "^8.0.3",
"jsdoc": "^4.0.2",
"lint-staged": "^13.2.2",
"mocha": "^10.2.0",
"mysql": "^2.17.1",
"mysql2": "^3.9.4",
"nyc": "^15.1.0",
"pg": "^8.5.1",
"sinon": "^10.0.0",
"sql.js": "^1.8.0",
"sqlite3": "^5.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
}
}