question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loglevel silent does not remove lerna output

See original GitHub issue

Expected Behavior

I’m running a command with lerna that fails in a subpackage. I was hoping to supress lerna’s extra error output because the output from the packages themselves is enough. I ran

lerna run build-branch --parallel --loglevel=silent

Current Behavior

After the commands fail, I see error output like this

    at Promise.all.then.arr (/Users/bwain/dev/project/node_modules/execa/index.js:236:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
  code: 1,
  killed: false,
  stdout: 'A TON OF CONENT'
 .....

Steps to Reproduce (for bugs)

I have a monorepo with 2 packages, each with a build-branch yarn task. At the root, I have a yarn task that says lerna run build-branch --parallel --loglevel=silent

lerna.json

{
  "lerna": "2.11.0",
  "npmClient": "yarn",
  "useWorkspaces": true,
  "version": "independent"
}

Context

The output is distracting and I would like to suppress it.

Your Environment

Executable Version
lerna --version 2.11.0
npm --version 5.6.0
yarn --version 1.7.0
node --version 9.11.1
OS Version
macOS High Sierra 10.13.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jirutkacommented, Jul 13, 2018

Okay, thanks for the advice. However, it doesn’t change anything about the issue that lerna unnecessarily duplicates the output.

0reactions
lock[bot]commented, Apr 3, 2019

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@lerna/global-options - npm
On failure, all logs are written to lerna-debug. log in the current working directory.
Read more >
Lerna: Documentation
Lerna is a fast modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
Read more >
@lerna/output | Yarn - Package Manager
BREAKING CHANGES. prompt: The ambiguous 'confirm', 'select', and 'input' exports have been removed. Please use the renamed exports 'promptConfirmation', ' ...
Read more >
Top 5 lerna Code Examples - Snyk
To help you get started, we've selected a few lerna examples, based on popular ways it is used in public projects. Secure your...
Read more >
Untitled
The two primary commands in Lerna are `lerna bootstrap` and `lerna publish`. ... after `--`: ```sh $ lerna bootstrap -- --production --no-optional ```...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found