forked from unjs/crossws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
116 lines (116 loc) · 3.5 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
{
"name": "crossws",
"version": "0.2.4",
"description": "Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers",
"repository": "unjs/crossws",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./websocket": {
"types": {
"import": "./dist/websocket/index.d.mts",
"require": "./dist/websocket/index.d.cts"
},
"browser": "./dist/websocket/index.mjs",
"worker": "./dist/websocket/index.mjs",
"bun": "./dist/websocket/index.mjs",
"deno": "./dist/websocket/index.mjs",
"edge-light": "./dist/websocket/index.mjs",
"workerd": "./dist/websocket/index.mjs",
"node": {
"import": "./dist/websocket/node.mjs",
"require": "./dist/websocket/node.cjs"
},
"import": "./dist/websocket/index.mjs",
"require": "./dist/websocket/index.cjs"
},
"./adapters/bun": {
"types": "./dist/adapters/bun.d.ts",
"import": "./dist/adapters/bun.mjs",
"require": "./dist/adapters/bun.cjs"
},
"./adapters/deno": {
"types": "./dist/adapters/deno.d.ts",
"import": "./dist/adapters/deno.mjs",
"require": "./dist/adapters/deno.cjs"
},
"./adapters/cloudflare": {
"types": "./dist/adapters/cloudflare.d.ts",
"import": "./dist/adapters/cloudflare.mjs",
"require": "./dist/adapters/cloudflare.cjs"
},
"./adapters/node": {
"types": "./dist/adapters/node.d.ts",
"import": "./dist/adapters/node.mjs",
"require": "./dist/adapters/node.cjs"
},
"./adapters/uws": {
"types": "./dist/adapters/uws.d.ts",
"import": "./dist/adapters/uws.mjs",
"require": "./dist/adapters/uws.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"adapters",
"*.d.ts"
],
"scripts": {
"build": "unbuild",
"dev": "pnpm play:node",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src -w",
"prepack": "pnpm run build",
"play:bun": "bun playground/bun.ts",
"play:cf": "wrangler dev --port 3001",
"play:deno": "deno run --unstable-sloppy-imports -A playground/deno.ts",
"play:node": "jiti playground/node.ts",
"play:uws": "jiti playground/uws.ts",
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types",
"test:types": "tsc --noEmit --skipLibCheck"
},
"resolutions": {
"crossws": "workspace:*"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240314.0",
"@deno/types": "^0.0.1",
"@types/bun": "^1.0.8",
"@types/node": "^20.11.28",
"@types/web": "^0.0.142",
"@types/ws": "^8.5.10",
"automd": "^0.3.6",
"changelogen": "^0.5.5",
"consola": "^3.2.3",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"h3": "^1.11.1",
"jiti": "^1.21.0",
"listhen": "^1.7.2",
"prettier": "^3.2.5",
"typescript": "^5.4.2",
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.33.0",
"unbuild": "^2.0.0",
"wrangler": "^3.34.2",
"ws": "^8.16.0"
},
"peerDependencies": {
"uWebSockets.js": "*"
},
"peerDependenciesMeta": {
"uWebSockets.js": {
"optional": true
}
},
"packageManager": "[email protected]"
}