lerna watch compiles endlessly. #3621
Replies: 2 comments
-
You're missing the scope which is probably why it loops endlessly, you need to scope to target which package to build. You can see that in their Lerna Watching docs lerna watch -- lerna run build --scope=\$LERNA_PACKAGE_NAME Note that there's 2 sections in lerna watch, which is separated by Also if you want to build not just that single package but also its dependents, then you can use (which is also displayed in the docs) lerna watch -- lerna run build --scope=\$LERNA_PACKAGE_NAME --include-dependents I haven't tried Lerna Watch itself, but I'm using this same approach with Lerna-Lite Watch and it works totally fine |
Beta Was this translation helpful? Give feedback.
-
Hi @john-twigg-ck , you could run into this issue if the command you are running (in this case, |
Beta Was this translation helpful? Give feedback.
-
I'm running
And it keeps looping. Something in the output is re-triggering the build. But I'm finding no way to diagnose the issue.
Does anyone have any experience with this? What ARE the inputs to
lerna watch
because its not clear.PS: I don't have this problem with
nodemon
Example:
I have 7 projects, and the
nodemon
watch eventually settles down and doesn't loop.Beta Was this translation helpful? Give feedback.
All reactions