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')