proto-signing: Use yarn in scripts

This commit is contained in:
willclarktech 2020-08-05 13:08:39 +02:00 committed by Simon Warta
parent 7c760e8b99
commit 8f0a33382d
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ DEFINITIONS_FILE="$TMP_DIR/codecimpl.d.ts"
OUTPUT_DIR="./src/generated/"
pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE"
tsc --removeComments --outDir "$OUTPUT_DIR" --allowJs "$JS_SOURCE_FILE"
yarn pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE"
yarn tsc --removeComments --outDir "$OUTPUT_DIR" --allowJs "$JS_SOURCE_FILE"
cp "$DEFINITIONS_FILE" "$OUTPUT_DIR"
rm "$DEFINITIONS_FILE" "$JS_SOURCE_FILE"

View File

@ -9,7 +9,7 @@ TENDERMINT_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/tendermint"
GOOGLE_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/google"
mkdir -p "$GENERATED_DIR"
pbjs \
yarn pbjs \
-t static-module \
--es6 \
-w commonjs \