Skip to content

Commit

Permalink
Use protobuf-ts to support unix domain sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Aug 14, 2023
1 parent f789d40 commit 32724a8
Show file tree
Hide file tree
Showing 10 changed files with 2,259 additions and 777 deletions.
24 changes: 15 additions & 9 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
version: v1
plugins:
- name: es
- name: ts
path: ./node_modules/@protobuf-ts/plugin/bin/protoc-gen-ts
out: src/proto
opt:
- target=ts
- import_extension=none
- name: connect-es
out: src/proto
opt:
- target=ts
- import_extension=none
# opt:
# - target=ts
# - import_extension=none
# - name: es
# out: src/proto
# opt:
# - target=ts
# - import_extension=none
# - name: connect-es
# out: src/proto
# opt:
# - target=ts
# - import_extension=none
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,26 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@bufbuild/connect": "^0.12.0",
"@bufbuild/connect-node": "^0.12.0",
"@bufbuild/protobuf": "^1.3.0"
"@grpc/grpc-js": "^1.9.0",
"@protobuf-ts/grpc-transport": "^2.9.1",
"@protobuf-ts/runtime": "^2.9.1",
"@protobuf-ts/runtime-rpc": "^2.9.1",
"protobufjs": "^7.2.4"
},
"devDependencies": {
"@bufbuild/connect": "^0.12.0",
"@bufbuild/connect-node": "^0.12.0",
"@bufbuild/protobuf": "^1.3.0",
"@bufbuild/protoc-gen-connect-es": "^0.12.0",
"@bufbuild/protoc-gen-es": "^1.3.0",
"@protobuf-ts/plugin": "^2.9.1",
"@tsconfig/node16": "^16.1.0",
"@types/node": "^20.5.0",
"prettier": "^3.0.1",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-pkg": "^0.18.0",
"tsup": "^7.2.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6"
},
"sideEffects": false,
Expand Down
Loading

0 comments on commit 32724a8

Please sign in to comment.