-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
61 lines (61 loc) · 1.92 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
{
"name": "@cloudpss/rpc",
"description": "Rpc used in cloudpss, a simple shim of apache thrift",
"version": "0.4.5",
"author": "CloudPSS",
"license": "MIT",
"engines": {
"node": ">= 20.10"
},
"homepage": "https://github.com/CloudPSS/Rpc",
"repository": {
"type": "git",
"url": "[email protected]:CloudPSS/Rpc.git"
},
"type": "module",
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"bin": {
"thrift": "./bin/thrift.js"
},
"scripts": {
"start": "pnpm clean && tsc --watch",
"build": "pnpm clean && tsc",
"clean": "rimraf dist",
"prepublishOnly": "pnpm build",
"test:build": "mkdirp ./test/thrift && node ./bin/thrift.js -r --gen js:ts,es6,node --gen markdown:suffix=md -o ./test/thrift ./test/room.thrift && pnpm format",
"test:server": "NODE_DEBUG=cloudpss/rpc node --experimental-strip-types ./test/server.ts",
"test:client": "NODE_DEBUG=cloudpss/rpc node --experimental-strip-types ./test/client.ts",
"prepare": "husky || echo Failed to initialize husky",
"format": "prettier --cache --cache-strategy content --ignore-path .gitignore --write .",
"lint": "eslint --cache --cache-location node_modules/.cache/eslint/ --cache-strategy content"
},
"prettier": "@cloudpss/prettier-config",
"commitlint": {
"extends": "@cloudpss"
},
"devDependencies": {
"@cloudpss/commitlint-config": "^3.0.14",
"@cloudpss/eslint-config": "^3.0.14",
"@cloudpss/lint-staged-config": "^3.0.14",
"@cloudpss/prettier-config": "^3.0.14",
"@cloudpss/tsconfig": "^3.0.14",
"husky": "^9.1.6",
"mkdirp": "^3.0.1",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
},
"dependencies": {
"@types/node": "^22.7.2",
"@types/node-int64": "^0.4.32",
"@types/thrift": "^0.10.17"
},
"peerDependencies": {
"node-int64": "^0.4.0",
"thrift": "0.21.0"
}
}