loglevel silent does not remove lerna output
See original GitHub issueExpected 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay, thanks for the advice. However, it doesn’t change anything about the issue that lerna unnecessarily duplicates the output.
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.