mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
chore(build): enhance proto caching and install binary plugins for improved performance, remove reliance on BSR (#11634)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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/**/*"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user