diff --git a/src/commands/plugins/install.ts b/src/commands/plugins/install.ts index 7bd9908a..67a5f132 100644 --- a/src/commands/plugins/install.ts +++ b/src/commands/plugins/install.ts @@ -165,7 +165,7 @@ e.g. If you have a core plugin that has a 'hello' command, installing a user-ins YarnMessagesCache.getInstance().flush(plugin) - ux.log(chalk.green(`\nSuccessfully installed ${plugin.name} v${plugin.version}`)) + this.log(chalk.green(`\nSuccessfully installed ${plugin.name} v${plugin.version}`)) } } } diff --git a/src/util.ts b/src/util.ts index 34d8dca2..fec5e969 100644 --- a/src/util.ts +++ b/src/util.ts @@ -131,10 +131,10 @@ export class YarnMessagesCache { } if (plugin) { - ux.log(`\nThese warnings can only be addressed by the owner(s) of ${plugin.name}.`) + ux.logToStderr(`\nThese warnings can only be addressed by the owner(s) of ${plugin.name}.`) if (plugin.pjson.bugs || plugin.pjson.repository) { - ux.log( + ux.logToStderr( `We suggest that you create an issue at ${ plugin.pjson.bugs ?? plugin.pjson.repository } and ask the plugin owners to address them.\n`, @@ -143,7 +143,7 @@ export class YarnMessagesCache { } if (YarnMessagesCache.errors.size === 0) return - ux.log('\nThe following errors occurred:') + ux.logToStderr('\nThe following errors occurred:') for (const err of YarnMessagesCache.errors) { ux.error(err, {exit: false}) }