1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

ts-protos

This commit is contained in:
Roman Khafizianov 2024-07-04 14:34:38 +02:00
parent 5881b79d1c
commit 1b33214149
No known key found for this signature in database
GPG key ID: F07A7D55A2684852
2 changed files with 5 additions and 3 deletions

View file

@ -18,7 +18,8 @@ ifndef $(GOROOT)
endif
DEPS_PATH := $(shell pwd)/deps
export PATH := $(DEPS_PATH):$(PATH)
NPM_PATH := $(shell pwd)/node_modules/.bin
export PATH := $(DEPS_PATH):$(NPM_PATH):$(PATH)
$(shell git config core.hooksPath .githooks)
@ -266,8 +267,8 @@ protos-swift-local: protos-swift
protos-js:
@echo 'Generating protobuf packages (JS)...'
@protoc -I ./ --js_out=import_style=commonjs,binary:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
@protoc -I ./ --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
@protoc -I ./ --ts_out=./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
@protoc -I ./ --grpc-web_out=import_style=typescript,mode=grpcwebtext:./dist/js/pb pb/protos/service/*.proto pb/protos/*.proto pkg/lib/pb/model/protos/*.proto
protos-java:
@echo 'Generating protobuf packages (Java)...'

View file

@ -7,6 +7,7 @@
"build:protos": "webpack -o ./build/web/commands-web.js ./build/web/pb/protos/service/service_grpc_web_pb.js"
},
"dependencies": {
"@protobuf-ts/plugin": "^2.9.4",
"google-protobuf": "~3.19.4",
"grpc-web": "~1.3.1",
"protobufjs": "~6.11.2"