forked from RobinTail/express-zod-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
142 lines (142 loc) · 4.63 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
{
"name": "express-zod-api",
"version": "8.9.4",
"description": "A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.",
"license": "MIT",
"scripts": {
"start": "ts-node example/index.ts",
"build": "yarn build:cleanup && yarn build:compile && yarn build:esm && yarn build:swagger && yarn build:client && yarn build:license",
"build:cleanup": "rm -rf ./dist ./dist-esm example/example.swagger.yaml example/example.client.ts ./LICENSE",
"build:compile": "tsc --build tsconfig.build.json",
"build:esm": "tsc --build tsconfig.esm.json && ts-node tools/esm-package.ts && ts-node tools/esm-extensions.ts",
"build:swagger": "ts-node example/generate-open-api-schema.ts > example/example.swagger.yaml",
"build:client": "ts-node example/generate-client.ts > example/example.client.ts && yarn prettier example/example.client.ts --write",
"build:license": "ts-node tools/license.ts > ./LICENSE",
"build:intTest": "ts-node tools/integration-test.ts && yarn install --cwd ./tests/integration",
"build:esmTest": "ts-node tools/esm-test.ts && yarn install --cwd ./tests/esm && ts-node tools/esm-test-package.ts",
"test": "yarn test:jest && yarn test:badge",
"test:int": "yarn jest ./tests/integration",
"test:esm": "yarn jest ./tests/esm",
"test:u": "yarn test:jest -u && yarn test:badge",
"test:jest": "yarn jest --detectOpenHandles ./tests/unit ./tests/system",
"test:badge": "yarn make-coverage-badge --output-path ./coverage.svg",
"lint": "yarn eslint ./src ./example ./tests && yarn prettier *.md --check",
"mdfix": "yarn prettier *.md --write",
"precommit": "yarn lint && yarn test && yarn build && git add example/example.swagger.yaml example/example.client.ts ./LICENSE ./coverage.svg",
"prepublishOnly": "yarn lint && yarn test && yarn build",
"postversion": "git push && git push --tags",
"install_hooks": "husky install"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist-esm/index.js",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist-esm/index.js"
},
"dependencies": {
"@types/compression": "^1.7.2",
"@types/express": "^4.17.13",
"@types/express-fileupload": "^1.2.2",
"@types/http-errors": "^2.0.0",
"@types/node": "*",
"compression": "1.7.4",
"express": "4.18.2",
"express-fileupload": "1.4.0",
"http-errors": "2.0.0",
"mime": "3.0.0",
"openapi3-ts": "3.2.0",
"ramda": "0.28.0",
"triple-beam": "1.3.0",
"typescript": "4.9.5",
"winston": "3.8.2",
"zod": "3.20.6"
},
"peerDependencies": {
"@types/jest": "*",
"jest": ">=25 <30",
"typescript": "^4.1"
},
"peerDependenciesMeta": {
"jest": {
"optional": true
},
"@types/jest": {
"optional": true
},
"typescript": {
"optional": true
}
},
"devDependencies": {
"@tsconfig/node14": "^1.0.3",
"@types/cors": "^2.8.12",
"@types/has-ansi": "^5.0.0",
"@types/jest": "^29.0.0",
"@types/mime": "^3.0.1",
"@types/node-fetch": "^2.6.2",
"@types/ramda": "^0.28.15",
"@types/triple-beam": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"chalk": "^4.1.2",
"cors": "^2.8.5",
"eslint": "^8.23.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"form-data": "^4.0.0",
"has-ansi": "^4.0.1",
"husky": "^8.0.1",
"jest": "^29.0.2",
"make-coverage-badge": "^1.2.0",
"mockdate": "^3.0.5",
"node-fetch": "^2.6.7",
"prettier": "2.8.4",
"strip-ansi": "^6.0.1",
"ts-jest": "^29.0.0",
"ts-node": "^10.9.1",
"tsd": "^0.25.0"
},
"engines": {
"node": "^14.17.0 || ^16.10.0 || ^18.0.0 || ^19.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/RobinTail/express-zod-api.git"
},
"homepage": "https://ez.robintail.cz",
"author": {
"name": "Anna Bocharova",
"url": "https://robintail.cz",
"email": "me@robintail.cz"
},
"bugs": {
"url": "https://github.com/RobinTail/express-zod-api/issues"
},
"keywords": [
"nodejs",
"api",
"http",
"middleware",
"documentation",
"json",
"express",
"typescript",
"schema",
"server",
"handler",
"swagger",
"documentation-tool",
"openapi",
"schema-validation",
"endpoint",
"openapi-specification",
"swagger-documentation",
"zod",
"validation"
]
}