Skip to content

Commit

Permalink
Fix CI (#201)
Browse files Browse the repository at this point in the history
* fix: 🐛 tsconfig

* fix: 🐛 google api proto path

* fix: 🐛 version condition

* fix: 🐛 version condition
  • Loading branch information
hcfw007 authored Jul 27, 2023
1 parent 1099c01 commit f1ecd6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/install-protoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@ function check_protoc_version () {
majorVer=$(echo $protocVersion | cut -d. -f 1)
minorVer=$(echo $protocVersion | cut -d. -f 2)

(($majorVer == 3)) || {
echo "protoc major version must >= 3 (the installed version is $protocVersion)"
exit 1
}

# https://github.com/wechaty/grpc/issues/109
(($minorVer >= 17)) || {
echo "protoc minor version must >= 17 (the installed version is $protocVersion)"

((($majorVer == 3 && $minorVer >= 17) || $majorVer > 3)) || {
echo "protoc version must >= 3.17 (the installed version is $protocVersion)"
exit 1
}

Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"extends": "@chatie/tsconfig",
"compilerOptions": {
"outDir": "dist/esm",
"verbatimModuleSyntax": false,
// See: https://github.com/wechaty/wechaty/issues/2551
"ignoreDeprecations": "5.0"
},
"exclude": [
"node_modules/",
Expand Down

0 comments on commit f1ecd6c

Please sign in to comment.