-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathpackage.json
96 lines (96 loc) · 3.21 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
{
"name": "@connectrpc/connect",
"version": "1.3.0",
"description": "Type-safe APIs with Protobuf and TypeScript.",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/connectrpc/connect-es.git",
"directory": "packages/connect"
},
"scripts": {
"clean": "rm -rf ./dist/*",
"generate": "buf generate src/protocol-grpc/proto",
"build": "npm run build:cjs && npm run build:esm && npm run build:proxy && node scripts/update-user-agent.mjs",
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.json --module ES2015 --verbatimModuleSyntax --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
"build:proxy": "node ../../scripts/gen-esm-proxy.mjs . protocol protocol-connect protocol-grpc protocol-grpc-web",
"jasmine": "jasmine --config=jasmine.json",
"attw": "attw --pack"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./protocol": {
"node": {
"import": "./dist/proxy/protocol/index.js",
"require": "./dist/cjs/protocol/index.js"
},
"module": "./dist/esm/protocol/index.js",
"import": "./dist/esm/protocol/index.js",
"require": "./dist/cjs/protocol/index.js"
},
"./protocol-connect": {
"node": {
"import": "./dist/proxy/protocol-connect/index.js",
"require": "./dist/cjs/protocol-connect/index.js"
},
"module": "./dist/esm/protocol-connect/index.js",
"import": "./dist/esm/protocol-connect/index.js",
"require": "./dist/cjs/protocol-connect/index.js"
},
"./protocol-grpc": {
"node": {
"import": "./dist/proxy/protocol-grpc/index.js",
"require": "./dist/cjs/protocol-grpc/index.js"
},
"module": "./dist/esm/protocol-grpc/index.js",
"import": "./dist/esm/protocol-grpc/index.js",
"require": "./dist/cjs/protocol-grpc/index.js"
},
"./protocol-grpc-web": {
"node": {
"import": "./dist/proxy/protocol-grpc-web/index.js",
"require": "./dist/cjs/protocol-grpc-web/index.js"
},
"module": "./dist/esm/protocol-grpc-web/index.js",
"import": "./dist/esm/protocol-grpc-web/index.js",
"require": "./dist/cjs/protocol-grpc-web/index.js"
}
},
"typesVersions": {
"*": {
"protocol": [
"./dist/cjs/protocol/index.d.ts"
],
"protocol-connect": [
"./dist/cjs/protocol-connect/index.d.ts"
],
"protocol-grpc": [
"./dist/cjs/protocol-grpc/index.d.ts"
],
"protocol-grpc-web": [
"./dist/cjs/protocol-grpc-web/index.d.ts"
]
}
},
"peerDependencies": {
"@bufbuild/protobuf": "^1.4.2"
},
"devDependencies": {
"@bufbuild/protoc-gen-es": "^1.6.0",
"@types/jasmine": "^5.0.0",
"jasmine": "^5.1.0",
"undici": "^5.28.2"
}
}