-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
122 lines (122 loc) · 4.1 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
{
"name": "nats.ws",
"version": "1.7.0",
"description": "WebSocket NATS client",
"main": "./cjs/nats.cjs",
"module": "./esm/nats.js",
"exports": {
".": {
"require": "./cjs/nats.js",
"import": "./esm/nats.js"
}
},
"types": "lib/src/mod.d.ts",
"files": [
"cjs/",
"esm/",
"lib/",
"OWNERS.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/std@0.95.0/http/file_server.ts .",
"start-https": "deno run --allow-all --unstable https://deno.land/std@0.95.0/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 ./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-wst && shx rm -Rf ./deps/ && tsc && shx rm -Rf ./wst && shx mv ./lib/wst ./lib/src && rm -Rf ./nats-base-client",
"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-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"
},
"optionalDependencies": {
"nkeys.js": "^1.0.0-9"
},
"devDependencies": {
"@types/node": "^16.10.3",
"ava": "^3.15.0",
"browser-env": "^3.3.0",
"minimist": "^1.2.5",
"nyc": "^15.1.0",
"shx": "^0.3.3",
"tslint": "^6.1.3",
"typescript": "^4.3.4"
},
"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": "git@github.com: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",
"dependencies": {
"nats.ws": "^1.7.0",
"uuid": "^8.3.2"
}
}