chore(build): enhance proto caching and install binary plugins for improved performance, remove reliance on BSR (#11634)

This commit is contained in:
Florian Forster
2026-02-19 08:04:17 +00:00
committed by GitHub
parent 369b468720
commit 9dd2773e80
23 changed files with 363 additions and 125 deletions
-1
View File
@@ -79,7 +79,6 @@
"jose": "^5.10.0"
},
"devDependencies": {
"@bufbuild/buf": "^1.64.0",
"@bufbuild/protocompile": "^0.0.1",
"@types/node": "^24.10.9",
"@typescript-eslint/eslint-plugin": "^8.54.0",
+4 -4
View File
@@ -2,22 +2,22 @@ version: v2
managed:
enabled: true
plugins:
- remote: buf.build/bufbuild/es:v2.11.0
- local: protoc-gen-es
out: es
include_imports: true
opt:
- target=js
- json_types=true
- import_extension=js
- remote: buf.build/bufbuild/es:v2.11.0
- local: protoc-gen-es
out: cjs
include_imports: true
opt:
- target=js
- json_types=true
- import_extension=js
- js_import_style=legacy_commonjs
- remote: buf.build/bufbuild/es:v2.11.0
- js_import_style=legacy_commonjs
- local: protoc-gen-es
out: types
include_imports: true
opt:
+2 -2
View File
@@ -76,14 +76,14 @@
},
"sideEffects": false,
"scripts": {
"generate": "buf generate ../../proto",
"generate": "pnpm exec buf generate ../../proto",
"clean": "rm -rf zitadel node_modules google protoc-gen-openapiv2 validate cjs types es"
},
"dependencies": {
"@bufbuild/protobuf": "^2.11.0"
},
"devDependencies": {
"@bufbuild/buf": "^1.64.0",
"@bufbuild/protoc-gen-es": "^2.11.0",
"glob": "^11.1.0"
}
}
+7 -1
View File
@@ -2,8 +2,14 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"targets": {
"generate": {
"executor": "nx:run-commands",
"options": {
"command": "pnpm exec buf generate ../../proto",
"cwd": "packages/zitadel-proto"
},
"inputs": [
"default",
"{projectRoot}/buf.gen.yaml",
"{projectRoot}/package.json",
"{workspaceRoot}/pnpm-lock.yaml",
"{workspaceRoot}/proto/**/*"
],