TS alternative to option go_package = "dir/dir/stubs/v1"
Author: dzintarsCreated Aug 31, 2020Updated Jun 19, 2026
Hi all.
Is there similar way to define output directory like it is in case of Go packages?
Instead of providing output directory in protoc CLI:
--grpc-web_out=import_style=typescript,mode=grpcwebtext:dir/dir/stubs/v1 \ i would like to write:
option ts_package = "dir/dir/stubs/v1" (just as an example) directly in the *.proto file and plugin should take care of my output dir based on this option.
Source: grpc/grpc-web