-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
147 lines (147 loc) · 4.17 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "@whisklabs/grpc",
"version": "1.1.2",
"description": "gRPC generator and http library for typescript",
"license": "MIT",
"author": {
"name": "Whisk",
"url": "https://developers.whisk.com/"
},
"contributors": [
{
"name": "Kuzminov Alexander",
"url": "https://github.com/askuzminov",
"email": "[email protected]"
}
],
"repository": {
"type": "git",
"url": "git://github.com/whisklabs/grpc-ts.git"
},
"bugs": {
"url": "https://github.com/whisklabs/grpc-ts/issues"
},
"homepage": "https://github.com/whisklabs/grpc-ts#readme",
"keywords": [
"grpc",
"grpc-web",
"proto",
"protobuf"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=12"
},
"bin": {
"grpc-generator": "./dist/cjs/generator/cli.js"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist",
"generator"
],
"scripts": {
"check-types": "tsc --noEmit",
"check-types:watch": "npm run check-types -- --watch",
"build:cjs": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.build.json --module es2015 --outDir ./dist/esm/",
"build:types": "tsc -p tsconfig.build.json --outDir ./dist/types/ --declaration --emitDeclarationOnly",
"build:clean": "rimraf dist/**",
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types",
"pretest": "npm run build && npm run grpc:protobufjs && npm run gprc:generator",
"test": "jest --coverage",
"test:watch": "jest --watch",
"grpc:protobufjs": "PROTO_DIR=proto PROTO_OUT=tests/protobufjs ts-node src/generator/protobufjs.ts",
"gprc:generator": "PROTO_DIR=proto PROTO_OUT=tests/proto PROTO_VERSION=test PROTO_DEBUG=true ts-node src/generator/cli.ts",
"gprc:package": "PROTO_DIR=proto PROTO_OUT=tests/proto PROTO_PACKAGE_NAME=abc PROTO_PACKAGE_VERSION=0.1.10 ts-node src/generator/cli.ts",
"lint:prettier": "prettier --write \"@(src|tests)/**/*.{ts,tsx,js,json,css,md,html,yml}\"",
"lint:fix": "npm run eslint:fix && npm run lint:prettier",
"eslint": "eslint '**/*.{js,ts,tsx}'",
"eslint:fix": "npm run eslint -- --fix",
"lint": "npm run eslint",
"release": "simple-release"
},
"dependencies": {
"@whisklabs/deep-readonly": "~1.0.0",
"@whisklabs/typeguards": "~1.0.1",
"typescript": "~5.3.3"
},
"devDependencies": {
"@askuzminov/simple-release": "~1.2.0",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^51.0.1",
"husky": "^4.3.8",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-junit": "^16.0.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"prettier": "~3.2.5",
"prettier-eslint": "^16.3.0",
"protobufjs": "~6.9.0",
"rimraf": "^5.0.5",
"ts-jest": "~29.1.2",
"ts-node": "^10.9.2"
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run check-types",
"pre-push": "npm ls && npm run lint && npm run test",
"commit-msg": "simple-release-lint"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{js,json,md,html,yml}": [
"prettier --write"
]
},
"jest": {
"preset": "ts-jest/presets/js-with-ts",
"testRegex": "spec\\.tsx?$",
"roots": [
"src",
"tests"
],
"reporters": [
"default",
[
"jest-junit",
{
"suiteName": "GRPC tests",
"outputDirectory": "./coverage/grpc",
"outputName": "results.xml"
}
]
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"tests/proto",
"tests/protobufjs",
"dist"
]
}
}