From ac472370f1638bd4c060613c5e1e1d8cb2d8dce4 Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Fri, 5 Apr 2019 17:33:19 -0500 Subject: [PATCH] Ship a protoc-gen-ts_proto. --- package.json | 5 +++++ protoc-gen-ts_proto | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 protoc-gen-ts_proto diff --git a/package.json b/package.json index c34b9c8a0..ceeae6cb6 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,12 @@ "version": "1.0.5", "description": "", "main": "build/plugin.js", + "bin": { + "protoc-gen-ts_proto": "./protoc-gen-ts_proto" + }, "scripts": { + "prepare": "yarn build && yarn test", + "build": "yarn tsc", "setup": "./pbjs.sh && mkdir -p build/integration && ./update_proto_bins.sh && yarn codegen", "codegen": "mkdir -p build/integration && yarn ts-node integration/setup.ts", "test": "yarn jest -c jest.config.js" diff --git a/protoc-gen-ts_proto b/protoc-gen-ts_proto new file mode 100755 index 000000000..e06bc820f --- /dev/null +++ b/protoc-gen-ts_proto @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('./build/plugin')