Skip to main content
Module

x/pbkit/scripts/generate.sh

Protobuf toolkit for modern web development
Go to Latest
File
alias pb="deno run --unstable --allow-env --allow-read --allow-write cli/pb/entrypoint.ts"
OUT_DIR=generatedRUNTIME_DIR=../core/runtimePROTO_FILE=google/protobuf/descriptor.proto
if [ "$(ls -A $PB_VENDOR_DIR)" ]; then rm -rf $OUT_DIR pb gen ts -o $OUT_DIR --runtime-dir $RUNTIME_DIR $PROTO_FILEelse echo "please run \`pb vendor install\` first"fi