Giter Site home page Giter Site logo

Comments (5)

rochdev avatar rochdev commented on June 22, 2024 1

In my experience using it in a few large projects, it's really a must-have for monorepos. Using scripts is possible, but it becomes very cumbersome very quickly, and in the end you end up pretty much rewriting Lerna but as a less feature complete, more difficult to use, and with more bugs implementation since it's not an external project that can be contributed to easily.

I'd say this is a general rule for using scripts in general. For example why use npm or yarn at all? They are just downloading files and resolving dependencies using semver which can be done with scripts.

To be honest, I would even go as far as to say not using Lerna might end up preventing a lot of users from contributing due to how complex the project will become. This is especially true for instrumentation repos where many different library versions have to be tested at the same time.

Let's focus on our domain (telemetry) and not on managing monorepos.

from opentelemetry-js.

draffensperger avatar draffensperger commented on June 22, 2024

I'm definitely open to Lerna, but in my limited experience with it for OpenCensus Web, it often felt like onre more dependency to have to manage (upgrade for security fixes, etc.) and that a lot of its functionality might be able to be replaced using simple scripts or tricks as explained in the gist above.

from opentelemetry-js.

rochdev avatar rochdev commented on June 22, 2024

Most of the downsides mentioned in the articles are also mitigated by combining Lerna with TypeScript and Yarn.

from opentelemetry-js.

draffensperger avatar draffensperger commented on June 22, 2024

I'm fine with use of Lerna, just wanted to make sure including it is worth the extra weight of an extra dependency, sounds like in this case it is worth it!

from opentelemetry-js.

mayurkale22 avatar mayurkale22 commented on June 22, 2024

All agreed to use Lerna in today's meeting.

  • It has its shortcomings (extra dependency) but it’s worth using it.
  • OpenCensus uses it and worked well.
  • It doesn't have the overhead on end users.

from opentelemetry-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.