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
{{ message }}
Repository navigation
Warn about two or more packages having the same npm package.json name #1046
I struggled with the fact that the node_modules of one of my projects was empty and the other one was full of things. Then I realized I made them both the same name in package.json, Could I've been warned?
Expected Behavior
Warn or error if two or more packages have the same name.
Current Behavior
Lerna does some weird things if there are multiple packages with the same name, like leaving one directory empty and the other one full of things, while creating symlinks correctly.
Steps to Reproduce (for bugs)
Create two packages with the same package.json name
Run lerna bootstrap on the root directory
Watch weird things happen if you have some dependencies, while scratching your head thinking why is this happening
Context
Sometimes you forget you named two packages with the same package.json name because they are linked to the same project (like backend and frontend in my case), but the folders are still named properly. It happened mostly because of a merge from separated repos to a bigger lerna managed monorepo.
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Activity
evocateur commentedon Oct 5, 2017
Yeah, that does sound like something worth erroring about.
lock commentedon Dec 28, 2018
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.