Skip to content

Commit 217abd5

Browse files
committed
Print the protoc version when building protobufs
1 parent b22378f commit 217abd5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tool/utils.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,17 @@ function fetchRepo(options: {
307307
// Builds the embedded proto at `repoPath` into a pbjs with TS declaration file.
308308
function buildEmbeddedProtocol(repoPath: string): void {
309309
const proto = p.join(repoPath, 'embedded_sass.proto');
310-
console.log(`Building pbjs and TS declaration file from ${proto}.`);
311310
const protocPath =
312311
process.platform === 'win32'
313312
? '%CD%/node_modules/protoc/protoc/bin/protoc.exe'
314313
: 'node_modules/protoc/protoc/bin/protoc';
314+
const version = shell
315+
.exec(`${protocPath} --version`, {silent: true})
316+
.stdout.trim();
317+
console.log(
318+
`Building pbjs and TS declaration file from ${proto} with ${version}.`
319+
);
320+
315321
const pluginPath =
316322
process.platform === 'win32'
317323
? '%CD%/node_modules/.bin/protoc-gen-ts.cmd'

0 commit comments

Comments
 (0)