diff options
author | 2016-08-11 15:36:20 -0700 | |
---|---|---|
committer | 2016-08-11 15:36:20 -0700 | |
commit | c05df4f309f05f29da4628f932b09de818fbefab (patch) | |
tree | df6c19c5f6fa66b6ca1d2b113bdec97b952d4af3 /src/node | |
parent | 9fd2143fe8f03ba4e00266f92d453d3de5c517a8 (diff) | |
parent | 80db7f8c6e927527ce9d3bf8c79cf1175845ad90 (diff) |
Merge pull request #7681 from murgatroid99/node_tools_integrate_plugin
Make Node grpc-tools protoc automatically call the plugin
Diffstat (limited to 'src/node')
-rwxr-xr-x | src/node/tools/bin/protoc.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node/tools/bin/protoc.js b/src/node/tools/bin/protoc.js index 53fc5dc428..7f8356867a 100755 --- a/src/node/tools/bin/protoc.js +++ b/src/node/tools/bin/protoc.js @@ -47,7 +47,11 @@ var exe_ext = process.platform === 'win32' ? '.exe' : ''; var protoc = path.resolve(__dirname, 'protoc' + exe_ext); -var child_process = execFile(protoc, process.argv.slice(2), function(error, stdout, stderr) { +var plugin = path.resolve(__dirname, 'grpc_node_plugin' + exe_ext); + +var args = ['--plugin=protoc-gen-grpc=' + plugin].concat(process.argv.slice(2)); + +var child_process = execFile(protoc, args, function(error, stdout, stderr) { if (error) { throw error; } |