diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 0d668879..a3842ba4 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -13,7 +13,7 @@ "resolveJsonModule": true, "target": "ES2019", "strict": true, - "allowJs": true, + "allowJs": false, "forceConsistentCasingInFileNames": true, "baseUrl": "./", "paths": { diff --git a/scripts/generate_protos.sh b/scripts/generate_protos.sh index f6d17a35..93a4abe2 100755 --- a/scripts/generate_protos.sh +++ b/scripts/generate_protos.sh @@ -26,6 +26,6 @@ cd "${frontend_base}" rm -f "${typescript_out}/"* mkdir -p "${typescript_out}" cat requirements-proto.txt | xargs npm install --no-save -npx pbjs -t static-module -w commonjs -o "${typescript_out}/proto.js" "../${proto_in}/*.proto" +npx pbjs -t static-module -w es6 --keep-case -o "${typescript_out}/proto.js" "../${proto_in}/*.proto" npx pbts -o ${typescript_out}/proto.d.ts ${typescript_out}/proto.js cd ..