@n4tzz/n4lyx 2.7.9 → 2.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,4 @@
1
- #!/bin/bash
2
- # n4lyx - WAProto static generation script
3
- # Regenerates index.js and index.d.ts from WAProto.proto
1
+ yarn pbjs -t static-module -w commonjs -o ./WAProto/index.js ./WAProto/WAProto.proto;
2
+ yarn pbts -o ./WAProto/index.d.ts ./WAProto/index.js;
4
3
 
5
- echo "Generating WAProto statics from WAProto.proto..."
6
-
7
- yarn pbjs -t static-module -w commonjs -o ./WAProto/index.js ./WAProto/WAProto.proto
8
- yarn pbts -o ./WAProto/index.d.ts ./WAProto/index.js
9
-
10
- echo "Done. WAProto/index.js and WAProto/index.d.ts regenerated."
11
-
12
- # Alternative (if using protoc):
13
- # protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto \
14
- # --ts_proto_opt=env=node,useOptionals=true,forceLong=long \
15
- # --ts_proto_out=. ./WAProto/WAProto.proto
4
+ #protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=env=node,useOptionals=true,forceLong=long --ts_proto_out=. ./src/Binary/WAMessage.proto;