ts-proto-build

1.0.2 • Public • Published

Typescript Protobuf Build Tool

This project implements an NPM CLI wrapper tool for ts-proto to recursively generate TypeScript code for Protobuf definitions using NPM run scripts.

Usage

$ ts-proto-build

Options:
      --version  Show version number                                   [boolean]
  -d, --dir      Source directory                            [string] [required]
  -o, --out      Output directory                            [string] [required]
  -e, --ext      Proto file extensions             [array] [default: [".proto"]]
      --ignore   Ignore files matching JS RegExp           [array] [default: []]
      --interop  Compile with 'esModuleInterop' flag  [boolean] [default: false]
  -h, --help     Show help                                             [boolean]

Requirements

Please make sure that the protoc binary is installed.

Features

  • Pure NodeJS wrapper script (works on all platforms supporting NodeJS and protoc)
  • Searches source directory recursively for proto files
  • Generates TypeScript code from Protobuf definitions

Use case

This script is intended to be used in NPM run scripts.

Package Sidebar

Install

npm i ts-proto-build

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

5.43 kB

Total Files

8

Last publish

Collaborators

  • legalsoftware