Repository navigation
Warn about two or more packages having the same npm package.json name - #1081
Merged
Merged
Conversation
evocateur
approved these changes
Oct 27, 2017
Member
|
Thanks @amfio! |
evocateur
added a commit
to mitchhentges/lerna
that referenced
this pull request
Oct 27, 2017
* master: Generate root changelog in fixed mode (lerna#1078) Republish prereleased packages during subsequent non-prerelease publish (lerna#1077) fix: fail when --hoist and --yarn are used together (lerna#1063) Improve "import" edgecases + (i18n fixes + git tweaks) (lerna#1059) Warn about two or more packages having the same npm package.json name (lerna#1081)
This was referenced Feb 2, 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a warning when you bootstrap a project where 2 or more packages share the same name.
Example:

Motivation and Context
Closes #1046
"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."
How Has This Been Tested?
Has unit tests.
Tested with 2 existing projects that utilise Lerna to ensure it doesn't warn when packages are name uniquely. Tested it with a dummy project that had packages that shared the same name and it did show the correct warning.
Tested on Mac OSX 10.12.4, node 5.8.0
Types of changes
Checklist: