question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lerna / nx yarn watch not run on every packages

See original GitHub issue

Current Behavior

I try to run a yarn --watch on every packages with --parallel, but only 3 packages of my 43 are actually watched, I use nx with useNx: true. This issue seems to be the same as #3198 but it is not working in my case. I use lerna 5.2.0 and nx 14.4.3 It’s working well if I deactivate nx: useNx: false

Expected Behavior

The watch command should be executed on every package

Steps to Reproduce

create watch command in every package, and run with lerna --parallel ....

Environment

Environment info:

  System:
    OS: macOS 12.4
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.19.0 - ~/.nvm/versions/node/v14.19.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v14.19.0/bin/yarn
    npm: 6.14.16 - ~/.nvm/versions/node/v14.19.0/bin/npm
  Utilities:
    Git: 2.32.1 - /usr/bin/git
  npmPackages:
    lerna: 5.2.0 => 5.2.0 

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
vincent-capicotto-payfitcommented, Aug 8, 2022

@vincent-capicotto-payfit @rileylnapier please try again with lerna 5.4.0 which I just released

Thx I will try to find some time to test it

1reaction
JamesHenrycommented, Aug 8, 2022

That was really helpful to have an open-source example, thank you @rileylnapier!

I’ve merged one part of a relevant fix already and #3283 is the final piece. I will cut a patch of lerna once it’s merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

A guide through The Wild Wild West of setting up a mono repo ...
In this part, I will explain step by step how to setup Lerna, Yarn Workspaces and Typescript in a mono repo. In the...
Read more >
Getting Started | Lerna
When running lerna init , Lerna configures the workspace to use NPM/YARN/PNPM workspaces, the built-in solution for local referencing of packages.
Read more >
Add Nx to a Lerna & Yarn workspaces monorepo - YouTube
Learn how to add Nx to any existing monorepo. In this example, Juri Strumpflohner (@juristr) walks you through adding Nx to a Lerna...
Read more >
From Lerna/Yarn to Nx: Faster Build Times and Better Dev ...
If I want to test all the projects, I can use a single command to do it. Publishing (Lerna only). I can run...
Read more >
@lerna/list | Yarn - Package Manager
0 (2022-12-13). Bug Fixes. core: more detailed error message when version cannot be found (#3424 (b729b0c); schema: add the other ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found