Skip to content

Commit 913fb85

Browse files
committed
Update ts-proto options
Output enums as literals
1 parent feafe5c commit 913fb85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci-typescript.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
run: |
2828
cd protobuf_definitions
2929
mkdir -p ./out/ &&
30-
protoc *.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./out --ts_proto_opt=outputIndex=true
30+
protoc *.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./out \
31+
--ts_proto_opt=outputIndex=true --ts_proto_opt=enumsAsLiterals=true
3132
3233
- name: Publish compiled proto definitions
3334
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)