File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 14
14
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
********************************************************************************/
16
16
17
- import type execa = require( 'execa ' ) ;
17
+ const { spawn } = require ( 'child_process ' ) ;
18
18
import path = require( 'path' ) ;
19
19
import Base = require( 'yeoman-generator' ) ;
20
20
const request = require ( 'request' ) ;
@@ -526,7 +526,17 @@ module.exports = class TheiaExtension extends Base {
526
526
async install ( ) {
527
527
if ( ! ( this . options as any ) . skipInstall ) {
528
528
this . log ( 'Installing dependencies' ) ;
529
- const command : execa . ExecaChildProcess = this . spawnCommand ( 'yarn' , [ ] ) ;
529
+ const command = spawn ( 'yarn' , [ ] ) ;
530
+
531
+ command . stdout . on ( 'data' , ( data : Buffer ) => {
532
+ console . log ( `stdout: ${ data } ` ) ;
533
+ } ) ;
534
+ command . stderr . on ( 'data' , ( data : Buffer ) => {
535
+ console . warn ( `stderr: ${ data } ` ) ;
536
+ } ) ;
537
+ command . on ( 'close' , ( code : number ) => {
538
+ console . log ( `yarn process exited with code ${ code } ` ) ;
539
+ } ) ;
530
540
531
541
if ( this . params . extensionType == ExtensionType . DiagramEditor ) {
532
542
command . on ( 'close' , ( code :number ) => {
You can’t perform that action at this time.
0 commit comments