Console output utility with npmlog integration for clean progress display in Lerna operations
npx @tessl/cli install tessl/npm-lerna--output@6.4.0@lerna/output is an internal Lerna utility that provides console output functionality with npmlog integration. It ensures clean console output during Lerna operations by temporarily clearing progress indicators, logging content, and then restoring progress display.
npm install @lerna/outputconst { output } = require("@lerna/output");Alternative import pattern:
const output = require("@lerna/output").output;const { output } = require("@lerna/output");
// Simple console output with progress clearing
output("Hello, world!");
// Multiple arguments (like console.log)
output("Processing", 42, "files", { status: "complete" });
// Use in Lerna operations where progress bars are active
output("✅ Build completed successfully");
output("📦 Publishing packages...");Provides clean console output that doesn't interfere with npmlog progress indicators.
/**
* Outputs arguments to console with npmlog progress management
* @param {...any} args - Arguments to log (same as console.log)
* @returns {undefined}
*/
function output(...args): undefined;The output function:
log.clearProgress() to temporarily hide progress indicatorsconsole.log(...args)log.showProgress() to restore progress displaymodule.exports.output = output)