We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584887f commit 81b072eCopy full SHA for 81b072e
src/app/index.ts
@@ -533,11 +533,21 @@ module.exports = class TheiaExtension extends Base {
533
const command = spawn('yarn', []);
534
535
command.stdout.on('data', (data: Buffer) => {
536
- console.log(`stdout: ${data}`);
+ const output = data.toString().trim();
537
+ if (output) {
538
+ console.log(output);
539
+ }
540
});
541
+
542
command.stderr.on('data', (data: Buffer) => {
- console.warn(`stderr: ${data}`);
543
544
+ if (output.includes('warning')) {
545
+ console.warn(output);
546
+ } else if (output) {
547
+ console.error(output);
548
549
550
551
command.on('close', (code: number) => {
552
console.log(`yarn process exited with code ${code}`);
553
0 commit comments