# /bin/sh
pbjs -t static-module -w commonjs -o protos.js *.proto
pbts -o ../assets/scripts/proto/protos.d.ts protos.js
mv protos.js ../assets/scripts/proto/protos.js
sed -i "" 's:require("protobufjs/minimal"):protobuf:g' ./../assets/scripts/proto/protos.js