Skip to content

Commit de20f24

Browse files
authored
Remove execa (#209)
fixed #208 Signed-off-by: Jonas Helming <[email protected]>
1 parent 0595566 commit de20f24

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/app/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
********************************************************************************/
1616

17-
import type execa = require('execa');
17+
const { spawn } = require('child_process');
1818
import path = require('path');
1919
import Base = require('yeoman-generator');
2020
const request = require('request');
@@ -526,7 +526,17 @@ module.exports = class TheiaExtension extends Base {
526526
async install() {
527527
if (!(this.options as any).skipInstall) {
528528
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+
});
530540

531541
if (this.params.extensionType == ExtensionType.DiagramEditor) {
532542
command.on('close', (code:number) => {

0 commit comments

Comments
 (0)