-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
87 lines (87 loc) · 2.33 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
{
"name": "@uptech/edenai-client",
"version": "1.0.0",
"description": "Eden AI Integration Module",
"author": "Uptech Studio",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
".api/**/*",
"*.md"
],
"type": "commonjs",
"scripts": {
"build": "tsc",
"test": "jest",
"generate": "openapi-generator generate -i https://api.edenai.run/v2/info/schema -g typescript-axios --skip-validate-spec -o src/generated",
"test:watch": "jest --watch",
"test:cov": "jest --passWithNoTests --coverage",
"test:cov:bail": "jest --coverage --passWithNoTests --bail src/ && lcov --remove coverage/lcov.info 'src/models/*' -o coverage/lcov.info",
"prepare": "if [[ $NODE_ENV != \"production\" ]]; then husky install; fi",
"prepublish": "npm run build",
"pre-commit": "lint-staged",
"changelog": "git cl full > CHANGELOG.md",
"lint": "eslint \"src/**/*.ts\" --fix",
"lint:dry": "eslint \"src/**/*.ts\""
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.7.0",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.60.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-sonarjs": "^0.19.0",
"husky": "^8.0.3",
"jest": "^29.6.1",
"jest-mock-extended": "^3.0.4",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"ts-jest": "^29.1.0",
"typescript": "^5.1.6"
},
"dependencies": {
"axios": "^1.4.0"
},
"jest": {
"clearMocks": true,
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s",
"!**/*.mock(|s).(t|j)s",
"!**/dto/**"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"coverageReporters": [
"clover",
"json",
"lcov",
[
"text",
{
"skipFull": true
}
]
]
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --cache --fix",
"jest --bail --passWithNoTests --findRelatedTests"
],
"*.{js,jsx,ts,tsx,css,scss,md,json}": "prettier --write"
}
}