-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
65 lines (65 loc) · 1.74 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
{
"name": "@stackpath/node-grpc-error-details",
"version": "1.0.0",
"description": "Utility for deserializing grpc-status-details-bin",
"main": "build/index.js",
"types": "build/index.d.ts",
"author": "The StackPath Development Team <[email protected]>",
"license": "MIT",
"dependencies": {
"@types/google-protobuf": "*",
"@types/node": "*",
"@types/protobufjs": "*"
},
"devDependencies": {
"@types/jest": "^25.1.2",
"cpr": "^3.0.1",
"google-protobuf": "^3.11.4",
"grpc": "^1.24.2",
"grpc-tools": "1.8.1",
"grpc_tools_node_protoc_ts": "^2.5.10",
"husky": "^4.2.3",
"jest": "^25.1.0",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"rimraf": "^3.0.2",
"ts-jest": "^25.2.0",
"typescript": "^3.7.5"
},
"peerDependencies": {
"google-protobuf": ">=3",
"grpc": ">=1"
},
"scripts": {
"build": "rimraf build && tsc && cpr ./src/generated ./build/generated && rimraf build/__tests__",
"genProto": "protoc --plugin=protoc-gen-grpc=./node_modules/.bin/grpc_tools_node_protoc_plugin -I src/proto --js_out=import_style=commonjs,binary:./src/generated ./src/proto/*.proto && protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I src/proto --ts_out=./src/generated ./src/proto/*.proto",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,json,css,md}": [
"prettier --write"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}