version: v2

# Generates the TypeScript Protobuf-ES + Connect-ES service descriptors
# from the gateway's authenticated edge .proto files into the SvelteKit
# frontend's source tree. The plugin runs locally from
# `frontend/node_modules/.bin/protoc-gen-es` (added as a devDependency
# in `frontend/package.json`) — no network call to buf.build BSR.
plugins:
  - local: frontend/node_modules/.bin/protoc-gen-es
    out: frontend/src/proto
    opt:
      - target=ts
