Skip to content

disable progress-estimator logging (for lerna run --stream build or CI) #689

@langpavel

Description

@langpavel

In CI environment or with lerna run --stream build it is desired to not clean line. This is caused by fancy logger (from progress-estimator)

Current Behavior

Fancy progress estimator appear in console on tsdx build.
This is not as cool as it should be in some cases,
it may overwrites output of different process run in parallel i.e. with lerna --stream

Desired Behavior

Possibility to turn on no line-destructive logger

Suggested Solution

Replace fancy progress-estimator with primitive console.log if:

  • CI environment is detected process.env.CI
  • new flag --no-estimate is set
  • (non std-out output detected)

Who does this impact? Who is this for?

  • CI environments (possibly automatically on)
  • People using lerna --stream

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: featureNew feature or requestscope: integrationRelated to an integration, not necessarily to core (but could influence core)topic: monorepoRelated to Lerna monorepos

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions