lerna / lerna

:dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
https://lerna.js.org
MIT License
35.68k stars 2.25k forks source link

Show progress for lerna exec #3483

Open farfromrefug opened 1 year ago

farfromrefug commented 1 year ago

Description

To prevent the need to define scripts in all packages i am looking at switching from lerna run to run lerna exec It works fine but it does not show progress like lerna run does. I am not sure yet on how errors are reported. Like for example right now i have in all my packages a script "build":"tsc -d" That i call with lerna run build and i am thinking of switching to lerna exec --parallel --no-private -- tsc -d which remove the need for the script in all packages. If i do so i would like progress and also error (tsc errors in this case) reported like it is with lerna run

Motivation

Easier understanding of what s happening

Suggested Implementation

Alternate Implementations

ghiscoding commented 1 year ago

with lerna run, we have the stream option to show execution and lerna exec also has a stream, so perhaps that is what you're missing? Note that I'm rarely using lerna exec, so I could be totally wrong but giving a try won't hurt. ;)