Git Product home page Git Product logo

Comments (2)

NiGhTTraX avatar NiGhTTraX commented on May 9, 2024 1

The --since argument for lerna seems promising.

# Made a commit to packages/foo on a new branch from master.npx lerna ls --since master
lerna notice cli v4.0.0
lerna info versioning independent
lerna notice filter changed since "master"
lerna info Looking for changed packages since master
@nighttrax/bar
@nighttrax/components
@nighttrax/foo

It doesn't seem to cover the second workspace in examples/*, so maybe I'm missing something, but looks like a good start.

from ts-monorepo.

NiGhTTraX avatar NiGhTTraX commented on May 9, 2024

Turns out ls filters private packages (which the ones in examples/* are) so you need to use la instead :)

❯ npx lerna la --since master                                            
lerna notice cli v4.0.0
lerna info versioning independent
lerna notice filter changed since "master"
lerna info Looking for changed packages since master
@nighttrax/cra-example    v1.0.0 examples/cra        (PRIVATE)
@nighttrax/nextjs-example v1.0.0 examples/nextjs     (PRIVATE)
@nighttrax/components     v1.0.0 packages/components
lerna success found 3 packages

The --since filter is also applicable to the run command, so you can use that to e.g. run the tests for the changed packages. Hope this helps!

from ts-monorepo.

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.