File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -307,11 +307,17 @@ function fetchRepo(options: {
307
307
// Builds the embedded proto at `repoPath` into a pbjs with TS declaration file.
308
308
function buildEmbeddedProtocol ( repoPath : string ) : void {
309
309
const proto = p . join ( repoPath , 'embedded_sass.proto' ) ;
310
- console . log ( `Building pbjs and TS declaration file from ${ proto } .` ) ;
311
310
const protocPath =
312
311
process . platform === 'win32'
313
312
? '%CD%/node_modules/protoc/protoc/bin/protoc.exe'
314
313
: '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
+
315
321
const pluginPath =
316
322
process . platform === 'win32'
317
323
? '%CD%/node_modules/.bin/protoc-gen-ts.cmd'
You can’t perform that action at this time.
0 commit comments