A CLI tool and library to compile/transpile Protocol Buffer .proto files into TypeScript interfaces and schemas. Current stable version is 1.0.1. Provides a configurable build system with CLI via `p2ti`. Key differentiators include support for relative imports, config file (JS/TS), and a declarative approach. However, it is early-stage with known caveats like message ordering dependency. Not as mature as alternatives like protobuf-ts or ts-proto. Ships TypeScript definitions.
npm install proto_ts_schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs the package globally, creates a minimal config file, and runs the CLI to transpile a proto file to TypeScript.
Reorder proto definitions so that referenced messages appear earlier in the file.
Ensure a config file exists at the working directory or pass --config explicitly.
Use the CLI via shell or child_process.exec to invoke transpilation.
Reorder messages in the .proto file so that all referenced messages are defined before their first use.
No dependency data recorded yet.