Skip to content

Commit 1cb4478

Browse files
committed
Use protoc_plugin's package.json version instead of hardcoding
1 parent 261daec commit 1cb4478

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

protoc_plugin/download-protoc-gen-js.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const os = require('os');
33
const path = require('path');
44
const AdmZip = require('adm-zip');
55

6-
const VERSION = '4.0.0';
6+
const pkg = require('./package.json');
7+
const VERSION = pkg.version;
78
const BIN_DIR = path.join(__dirname, 'bin');
89

910
function getZipFilename(currentSystem) {

protoc_plugin/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)