diff --git a/dev/protos/update.sh b/dev/protos/update.sh index 828c22a96..a5258fcd0 100755 --- a/dev/protos/update.sh +++ b/dev/protos/update.sh @@ -80,6 +80,7 @@ popd PBJS_ARGS=( --proto_path=. \ --js_out=import_style=commonjs,binary:library \ --target=static-module \ + --path="$(npm root)/protobufjs" \ --no-create \ --no-encode \ --no-decode \ @@ -117,12 +118,14 @@ perl -pi -e 's/number\|Long/number\|string/g' firestore_v1beta1_proto_api.js "${PBJS}" --proto_path=. --target=json -o v1.json \ -r firestore_v1 \ + --path="$(npm root)/protobufjs" \ "${PROTOS_DIR}/google/firestore/v1/*.proto" \ "${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \ "${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto" "${PBJS}" --proto_path=. --target=json -o v1_admin.json \ -r firestore_admin_v1 \ + --path="$(npm root)/protobufjs" \ "${PROTOS_DIR}/google/firestore/admin/v1/*.proto" \ "${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \ "${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto" \ @@ -130,6 +133,7 @@ perl -pi -e 's/number\|Long/number\|string/g' firestore_v1beta1_proto_api.js "${PBJS}" --proto_path=. --target=json -o v1beta1.json \ -r firestore_v1beta1 \ + --path="$(npm root)/protobufjs" \ "${PROTOS_DIR}/google/firestore/v1beta1/*.proto" \ "${PROTOS_DIR}/google/protobuf/*.proto" "${PROTOS_DIR}/google/type/*.proto" \ "${PROTOS_DIR}/google/rpc/*.proto" "${PROTOS_DIR}/google/api/*.proto"