diff --git a/console/README.md b/console/README.md index 224a8a8756..2d958aa48c 100644 --- a/console/README.md +++ b/console/README.md @@ -95,6 +95,17 @@ pnpm run lint:fix The Console app uses **dual proto generation** managed by Turbo dependencies: +### Dependency Chain + +The Console app has the following build dependencies managed by Turbo: + +1. `@zitadel/proto#generate` - Generates modern protobuf files +2. `@zitadel/client#build` - Builds the TypeScript gRPC client library +3. `console#generate` - Generates Console-specific protobuf files +4. `console#build` - Builds the Angular application + +This ensures that the Console always has access to the latest client library and protobuf definitions. + ### Legacy v1 API (Traditional Protobuf) - Uses local `buf.gen.yaml` configuration diff --git a/console/turbo.json b/console/turbo.json index 7cbc4f9f63..320dcccaa1 100644 --- a/console/turbo.json +++ b/console/turbo.json @@ -7,11 +7,11 @@ "outputs": ["src/app/proto/generated/**"] }, "build": { - "dependsOn": ["generate"], + "dependsOn": ["generate", "@zitadel/client#build"], "outputs": ["dist/**"] }, "start": { - "dependsOn": ["generate"], + "dependsOn": ["generate", "@zitadel/client#build"], "cache": false, "persistent": true },