-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
117 lines (117 loc) · 3.48 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
{
"name": "@godaddy/mssql-pool-party",
"version": "2.0.0",
"description": "Extension of mssql that provides management of multiple connection pools, dsns, retries, and more",
"main": "dist/index.js",
"files": [
"dist/",
"src/"
],
"scripts": {
"build": "babel src --out-dir dist --ignore test.js --source-maps --copy-files",
"coverage": "open coverage/lcov-report/index.html",
"docs": "jsdoc2md --configure jsdoc.json src/**/*.js > API.md",
"lint": "eslint src test --fix",
"test": "npm run lint && jest src/* && npm run test:coverage",
"test:all": "rm -rf coverage && npm run lint && npm run test:unit && npm run test:docker && npm run test:integration && npm run test:coverage && npm run test:docker-stop",
"test:coverage": "nyc report --reporter=text -t coverage --check-coverage --branches 75 --functions 75 --lines 75 --statements 75",
"test:docker": "./test/start-mssql.sh",
"test:docker-stop": "./test/stop-mssql.sh",
"test:integration": "node --trace-warnings node_modules/.bin/jest test/parallel/* && mv coverage/coverage-final.json coverage/coverage-integration-parallel.json && node --trace-warnings node_modules/.bin/jest test/serial/index.test.js && mv coverage/coverage-final.json coverage/coverage-integration-serial.json",
"test:unit": "jest src/* && mv coverage/coverage-final.json coverage/coverage-unit.json",
"prepublishOnly": "npm run lint && npm run test:all && npm run docs && npm run build",
"pretest": "echo 'Most of our testing is done via integration tests. See package.json for more information.'"
},
"repository": "godaddy/mssql-pool-party",
"keywords": [
"mssql",
"sql",
"failover",
"dsn"
],
"license": "MIT",
"author": {
"name": "Grant Shively",
"email": "[email protected]"
},
"engines": {
"node": ">=18"
},
"dependencies": {
"@babel/runtime": "^7.6.3",
"aggregate-error": "^3.0.1",
"debug": "^4.1.1",
"lodash.partial": "^4.2.1",
"mssql": "^11.0.1",
"promise-reduce": "^2.1.0",
"promise-retry": "^1.1.1",
"uuid": "^3.3.3"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.25.3",
"babel-eslint": "^10.0.3",
"babel-jest": "^29.3.1",
"babel-plugin-add-module-exports": "^1.0.4",
"eslint": "^6.6.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"execa": "^3.2.0",
"jest": "^29.3.1",
"jsdoc-babel": "^0.5.0",
"jsdoc-to-markdown": "^7.1.1",
"nyc": "^14.1.1"
},
"babel": {
"presets": [
"@babel/preset-env"
],
"sourceMaps": "inline",
"retainLines": true,
"plugins": [
"add-module-exports"
],
"targets": "node 18.0"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.js"
],
"coveragePathIgnorePatterns": [
"\\.test\\.js$"
],
"coverageReporters": [
"json"
],
"roots": [
"<rootDir>/src/",
"<rootDir>/test/"
]
},
"eslintConfig": {
"extends": "airbnb",
"env": {
"jest": true
},
"parser": "babel-eslint",
"rules": {
"import/prefer-default-export": 0,
"no-confusing-arrow": 0,
"no-underscore-dangle": 0,
"operator-linebreak": [
"error",
"after",
{
"overrides": {
"?": "before",
":": "before"
}
}
]
}
}
}