Files
mlugg 0a889b2ab1 Update @actions/cache to 4.0.2
Version 3 of `@actions/cache` is now deprecated, and can cause runs to
fail; see https://github.com/actions/toolkit/blob/main/packages/cache/README.md.

I have no fucking clue why this was considered a major release; it's
explicitly documented as being entirely backwards-compatible. SemVer be
damned, amirite?
2025-03-10 17:01:15 +00:00

1.0 KiB

@protobuf-ts/plugin

The protocol buffer compiler plugin for TypeScript: protobuf-ts

Installation:

# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin

This will install the plugin as a development dependency.

Basic usage:

npx protoc --ts_out . --proto_path protos protos/my.proto 

With some options:

npx protoc \ 
  --ts_out . \
  --ts_opt long_type_string \
  --ts_opt optimize_code_size \
  --proto_path protos \
  protos/my.proto 

protoc is the protocol buffer compiler. protobuf-ts installs it automatically.

Plugin parameters are documented in the MANUAL.
For a quick overview of protobuf-ts, check the repository README.