77 lines
2.0 KiB
JSON
77 lines
2.0 KiB
JSON
{
|
|
"name": "tsrpc",
|
|
"version": "3.3.1-dev.0",
|
|
"description": "A TypeScript RPC Framework, with runtime type checking and built-in serialization, support both HTTP and WebSocket.",
|
|
"main": "index.js",
|
|
"exports": {
|
|
"require": "./index.js",
|
|
"import": "./index.mjs"
|
|
},
|
|
"typings": "index.d.ts",
|
|
"directories": {
|
|
"doc": "docs"
|
|
},
|
|
"scripts": {
|
|
"test": "npx mocha",
|
|
"genTestProto": "npx tsrpc-cli@latest proto --input test/proto --output test/proto/serviceProto.ts",
|
|
"coverage": "nyc mocha test/**/*.test.ts && start coverage\\index.html",
|
|
"build": "npm run build:js && npm run build:dts && npm run build:doc && node scripts/postBuild && cp package.json LICENSE README.md dist/",
|
|
"build:js": "rm -rf dist && npx rollup -c",
|
|
"build:dts": "rm -rf lib && npx tsc && npx api-extractor run --local --verbose && rm -rf lib",
|
|
"build:doc": "rm -rf docs/api && npx api-documenter markdown --input temp --output docs/api"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/k8w/tsrpc.git"
|
|
},
|
|
"keywords": [
|
|
"k8w",
|
|
"ts",
|
|
"rpc",
|
|
"grpc",
|
|
"tsbuffer",
|
|
"fullstack",
|
|
"websocket",
|
|
"protobuf",
|
|
"socket.io"
|
|
],
|
|
"author": "k8w",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@microsoft/api-documenter": "^7.17.9",
|
|
"@microsoft/api-extractor": "^7.22.2",
|
|
"@types/chai": "^4.3.1",
|
|
"@types/mocha": "^8.2.3",
|
|
"@types/node": "^15.14.9",
|
|
"@types/uuid": "^8.3.4",
|
|
"chai": "^4.3.6",
|
|
"mocha": "^9.2.2",
|
|
"nyc": "^15.1.0",
|
|
"rollup": "^2.70.2",
|
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
"ts-node": "^10.7.0",
|
|
"typescript": "^4.6.3"
|
|
},
|
|
"dependencies": {
|
|
"@types/ws": "^7.4.7",
|
|
"bson": "*",
|
|
"chalk": "^4.1.2",
|
|
"tsbuffer": "^2.2.2",
|
|
"tsrpc-base-client": "^2.0.5",
|
|
"tsrpc-proto": "^1.4.1",
|
|
"uuid": "^8.3.2",
|
|
"ws": "^7.5.7"
|
|
},
|
|
"nyc": {
|
|
"extension": [
|
|
".ts"
|
|
],
|
|
"include": [
|
|
"src/**/*.ts"
|
|
],
|
|
"reporter": [
|
|
"html"
|
|
],
|
|
"all": true
|
|
}
|
|
} |