-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 3.26 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
{
"name": "zod-sockets",
"version": "2.2.0",
"description": "Socket.IO solution with I/O validation and the ability to generate AsyncAPI specification and a contract for consumers",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"*.md"
],
"engines": {
"node": "^18.18.0 || ^20.9.0 || ^22.0.0"
},
"author": {
"name": "Anna Bocharova",
"url": "https://robintail.cz",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RobinTail/zod-sockets.git"
},
"license": "MIT",
"scripts": {
"lint": "eslint",
"pretest": "tsc --noEmit",
"test": "vitest run --coverage src",
"posttest": "make-coverage-badge --output-path coverage.svg",
"test:cjs": "yarn --cwd tests/cjs && vitest run -r tests/cjs",
"test:esm": "yarn --cwd tests/esm && vitest run -r tests/esm",
"test:compat": "yarn --cwd tests/compat && vitest run -r tests/compat",
"test:952": "yarn --cwd tests/issue952 && yarn --cwd tests/issue952 test",
"test:system": "yarn --cwd tests/system && vitest run -r tests/system",
"mdfix": "prettier *.md --write",
"start": "tsx example/index.ts",
"build": "yarn build:compile && yarn build:tests && yarn build:client && yarn build:docs",
"build:compile": "tsup && attw --pack",
"build:client": "tsx example/generate-client.ts && prettier --write example/example*.ts",
"build:docs": "tsx example/generate-documentation.ts",
"build:tests": "tsx tools/make-tests.ts",
"precommit": "yarn lint && yarn test && yarn build && git add example/example* coverage.svg",
"postversion": "git push && git push --tags",
"prepublishOnly": "yarn lint && yarn test && yarn build",
"hooks": "husky"
},
"dependencies": {
"ansis": "^3.1.0",
"ramda": "^0.30.0",
"yaml": "^2.4.1"
},
"peerDependencies": {
"socket.io": "^4.7.4",
"typescript": "^5.3.3",
"zod": "^3.23.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.0",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^22.0.0",
"@types/ramda": "^0.30.0",
"@types/semver": "^7.5.8",
"@vitest/coverage-istanbul": "^2.1.5",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-allowed-dependencies": "^1.0.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^56.0.0",
"husky": "^9.0.10",
"make-coverage-badge": "^1.2.0",
"prettier": "3.4.2",
"semver": "^7.6.3",
"socket.io": "^4.7.4",
"socket.io-client": "^4.7.4",
"tsup": "^8.0.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"typescript-eslint": "^8.0.1",
"vitest": "^2.1.5",
"zod": "^3.22.4"
},
"resolutions": {
"**/vite": "^6"
},
"keywords": [
"nodejs",
"socket",
"validation",
"server",
"sockets",
"websocket",
"websockets",
"socket-io",
"zod",
"typescript-library",
"asyncapi",
"async-api",
"asyncapi-specification",
"asyncapi-tools"
]
}