-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.json
124 lines (124 loc) · 4.57 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
{
"name": "nats.ws",
"version": "1.29.2",
"description": "WebSocket NATS client",
"main": "./cjs/nats.js",
"module": "./esm/nats.js",
"exports": {
"types": "./lib/src/mod.d.ts",
"require": "./cjs/nats.js",
"import": "./esm/nats.js"
},
"types": "lib/src/mod.d.ts",
"files": [
"cjs/",
"esm/",
"lib/",
"MAINTAINERS.md",
"CODE-OF-CONDUCT.md",
"LICENSE"
],
"scripts": {
"setup": "curl -fsSL https://deno.land/x/install/install.sh | sh",
"setup_win": "choco install deno",
"fmt": "deno fmt src/*.ts examples/*.js test/*.js test/*/*.js",
"start-tls-nats": "cd examples && nats-server -c tls.conf",
"start-nats": "cd examples && nats-server -DV -c nontls.conf",
"start-http": "deno run --allow-all --unstable https://deno.land/[email protected]/http/file_server.ts .",
"start-https": "deno run --allow-all --unstable https://deno.land/[email protected]/http/file_server.ts --port 4607 --cert ./certs/cert.pem --key ./certs/key.pem --host localhost .",
"install-certs": "env CAROOT=./certs mkcert -cert-file ./certs/cert.pem -key-file ./certs/key.pem -install localhost 127.0.0.1 ::1",
"install-ns": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch=main https://github.com/nats-io/nats-server.git && cd nats-server && go build && shx mv nats-server ../../",
"prepack": "npm run build",
"clean": "shx rm -Rf ./esm/nats.js ./lib ./.deps ./nats-base-client ./jetstream ./wst",
"build": "npm run clean && npm run check-imports && npm run check-package && npm run build-cjs && npm run build-esm",
"build-cjs": "npm run stage && npm run cjs-nbc && npm run cjs-jetstream && npm run cjs-wst && shx rm -Rf ./deps/ && tsc && shx rm -Rf ./wst && shx mv ./lib/wst ./lib/src && rm -Rf ./nats-base-client ./jetstream",
"build-esm": "deno run --allow-all --unstable --reload src/mod.ts && deno bundle --log-level info --unstable src/mod.ts ./esm/nats.js",
"stage": "npm run clone-nbc",
"cjs-nbc": "deno run --allow-all ./bin/cjs-fix-imports.ts -o nats-base-client/ ./.deps/nats.deno/nats-base-client",
"cjs-jetstream": "deno run --allow-all ./bin/cjs-fix-imports.ts -o jetstream/ ./.deps/nats.deno/jetstream/",
"cjs-wst": "deno run --allow-all ./bin/cjs-fix-imports.ts -o wst/ ./src",
"clone-nbc": "deno run --allow-all bin/clone-nd.ts",
"ava": "nyc ava --verbose -T 60000",
"test": "npm run build && npm run check-imports && npm run check-package && npm run ava",
"check-imports": "deno run --allow-all bin/consistent-deps.ts",
"check-package": "deno run --allow-all bin/check-bundle-version.ts",
"debug-test": "node node_modules/.bin/ava --verbose -T 6500000 --match",
"version": "deno run -A bin/update-transport-version.ts && git add src/ws_transport.ts",
"postversion": "git push && git push --tags",
"bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version",
"bump-release": "npm version patch --no-commit-hooks --no-git-tag-version"
},
"optionalDependencies": {
"nkeys.js": "1.1.0"
},
"devDependencies": {
"@types/node": "^20.14.12",
"ava": "^5.3.x",
"minimist": "^1.2.8",
"nats-jwt": "^0.0.9",
"shx": "^0.3.3",
"tslint": "^6.1.3",
"typescript": "^5.5.4",
"web-streams-polyfill": "^4.0.0",
"websocket": "^1.0.35",
"nyc": "^15.1.0"
},
"ava": {
"failFast": true,
"files": [
"./test/**/*.js",
"!./test/index.d.ts",
"!./test/index.js",
"!./test/helpers/**/*.js",
"!./test/migrate/**/*.js"
],
"require": [
"./test/helpers/setup-browser-env.js"
]
},
"nyc": {
"extension": [
".ts",
".js"
],
"include": [
"src/**/*.ts",
"lib/**/*.js",
"nats-base-client/**/*.ts"
],
"exclude": [
"nats-base-client/bench.ts",
"nats-base-client/codec.ts",
"nats-base-client/databuffer.ts",
"nats-base-client/denobuffer.ts",
"nats-base-client/headers.ts",
"nats-base-client/muxsubscription.ts",
"nats-base-client/nkeys.ts",
"nats-base-client/nuid.ts",
"nats-base-client/parser.ts",
"nats-base-client/queued_iterator.ts",
"nats-base-client/servers.ts",
"nats-base-client/transport.ts",
"nats-base-client/util.ts",
"test/**",
"examples/**"
],
"sourceMap": true,
"all": true
},
"repository": {
"type": "git",
"url": "[email protected]:nats-io/nats.ws.git"
},
"bugs": {
"url": "https://github.com/nats-io/nats.ws/issues"
},
"keywords": [
"NATS",
"websockets"
],
"author": {
"name": "The NATS Authors"
},
"license": "Apache-2.0"
}