You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run a script that uses Lerna's detectProjects() function in the root of the monorepo, it somehow leaves a socket open, preventing the script from naturally exiting once it's finished running.
Expected Behavior
I expect detectProjects() to run as normal and then allow the script to exit naturally.
Run this script and the script will never exit. The commented out wtfnode parts are useful for seeing that a socket remains open once the script finishes running. wtfnode ouputs:
Current Behavior
If you run a script that uses Lerna's detectProjects() function in the root of the monorepo, it somehow leaves a socket open, preventing the script from naturally exiting once it's finished running.
Expected Behavior
I expect detectProjects() to run as normal and then allow the script to exit naturally.
Steps to Reproduce
Add this script to a lerna monorepo:
Run this script and the script will never exit. The commented out wtfnode parts are useful for seeing that a socket remains open once the script finishes running. wtfnode ouputs:
I was unable to reproduce this issue on https://github.com/lerna/repro, but I was able to reproduce using the "getting started" sample. Here's a PR with the changes: lerna/getting-started-example#35
Just clone it,
npm i
, and then runnode test.js
.Failure Logs / Configuration
The output from wtfnode is above.
lerna.json
Environment
The text was updated successfully, but these errors were encountered: