-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
146 lines (146 loc) · 5.52 KB
/
package.json
File metadata and controls
146 lines (146 loc) · 5.52 KB
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
{
"name": "starpc",
"version": "0.49.0",
"description": "Streaming protobuf RPC service protocol over any two-way channel.",
"license": "MIT",
"author": {
"name": "Aperture Robotics LLC.",
"email": "[email protected]",
"url": "http://aperture.us"
},
"contributors": [
{
"name": "Christian Stewart",
"email": "[email protected]",
"url": "http://github.com/paralin"
}
],
"bin": {
"protoc-gen-es-starpc": "./cmd/protoc-gen-es-starpc/protoc-gen-es-starpc"
},
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./mock": {
"types": "./dist/mock/index.d.ts",
"import": "./dist/mock/index.js",
"require": "./dist/mock/index.js"
},
"./echo": {
"types": "./dist/echo/index.d.ts",
"import": "./dist/echo/index.js",
"require": "./dist/echo/index.js"
},
"./rpcstream": {
"types": "./dist/rpcstream/index.d.ts",
"import": "./dist/rpcstream/index.js",
"require": "./dist/rpcstream/index.js"
},
"./rpcstream/rpcstream.pb.js": {
"types": "./dist/rpcstream/rpcstream.pb.d.ts",
"import": "./dist/rpcstream/rpcstream.pb.js",
"require": "./dist/rpcstream/rpcstream.pb.js"
}
},
"files": [
"!**/*.tsbuildinfo",
"dist",
"mock",
"echo",
"go.mod",
"go.sum",
"integration",
"srpc",
"cmd/protoc-gen-es-starpc"
],
"repository": {
"url": "git+ssh://[email protected]/aperturerobotics/starpc.git"
},
"scripts": {
"clean": "rimraf ./dist",
"build": "bun run clean && tsc --project tsconfig.build.json --outDir ./dist/",
"check": "bun run typecheck",
"typecheck": "tsgo --noEmit",
"deps": "depcheck --ignores 'bufferutil,utf-8-validate,rimraf,starpc,@aptre/protobuf-es-lite,tsx'",
"codegen": "bun run gen",
"ci": "bun run build && bun run lint:js && bun run lint:go",
"format": "bun run format:go && bun run format:js && bun run format:config",
"format:config": "prettier --write tsconfig.json package.json",
"format:go": "bun run go:aptre -- format",
"format:js": "prettier --write './{srpc,echo,e2e,integration,rpcstream,cmd}/**/(*.ts|*.tsx|*.html|*.css)'",
"gen": "bun run go:aptre -- generate && bun run format",
"gen:force": "bun run go:aptre -- generate --force && bun run format",
"test": "bun run test:js && bun run test:go",
"test:go": "bun run go:aptre -- test",
"test:cpp": "mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel && ctest --output-on-failure",
"build:e2e": "bun run build && cd e2e && esbuild e2e.ts --sourcemap --outfile=e2e.cjs --bundle --platform=node",
"test:js": "vitest run",
"test:js:watch": "vitest",
"debug:js": "bun run build:e2e && cd e2e && node --inspect --inspect-brk ./e2e.cjs",
"integration": "bash ./integration/cross-language/run.bash",
"integration:go:ts": "bash ./integration/cross-language/run.bash go:ts",
"integration:go:rust": "bash ./integration/cross-language/run.bash go:rust",
"integration:go:cpp": "bash ./integration/cross-language/run.bash go:cpp",
"integration:ts:rust": "bash ./integration/cross-language/run.bash ts:rust",
"integration:ts:cpp": "bash ./integration/cross-language/run.bash ts:cpp",
"integration:rust:cpp": "bash ./integration/cross-language/run.bash rust:cpp",
"lint": "bun run lint:go && bun run lint:js",
"lint:go": "bun run go:aptre -- lint",
"lint:js": "eslint ./",
"prepare": "husky && go mod vendor",
"go:aptre": "go run -mod=mod github.com/aperturerobotics/common/cmd/aptre",
"precommit": "lint-staged",
"release": "npm run release:version && npm run release:commit",
"release:minor": "npm run release:version:minor && npm run release:commit",
"release:version": "npm version patch -m \"release: v%s\" --no-git-tag-version",
"release:version:minor": "npm version minor -m \"release: v%s\" --no-git-tag-version",
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$(node -p \"require('./package.json').version\")\" && git tag v$(node -p \"require('./package.json').version\")",
"release:publish": "git push && git push --tags"
},
"preferUnplugged": true,
"lint-staged": {
"package.json": "prettier --config .prettierrc.yaml --write",
"./{srpc,echo,e2e,integration,rpcstream,cmd}/**/(*.ts|*.tsx|*.html|*.css)": "prettier --config .prettierrc.yaml --write"
},
"devDependencies": {
"@eslint/js": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"depcheck": "^1.4.6",
"esbuild": "^0.27.3",
"eslint": "^10.0.2",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^17.0.0",
"happy-dom": "^20.7.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.8.1",
"rimraf": "^6.1.3",
"tsx": "^4.20.4",
"typescript": "^5.8.2",
"@typescript/native-preview": "^7.0.0-dev.20260228.1",
"vitest": "^4.0.18"
},
"dependencies": {
"@aptre/it-ws": "^1.1.2",
"@aptre/protobuf-es-lite": "^1.0.1",
"@chainsafe/libp2p-yamux": "^7.0.1",
"@libp2p/interface": "^2.6.1",
"event-iterator": "^2.0.0",
"isomorphic-ws": "^5.0.0",
"it-first": "^3.0.6",
"it-pipe": "^3.0.1",
"it-pushable": "^3.2.3",
"it-stream-types": "^2.0.2",
"uint8arraylist": "^2.4.7",
"ws": "^8.18.1"
},
"resolutions": {
"@aptre/protobuf-es-lite": "1.0.1"
}
}