Skip to content

Warn about two or more packages having the same npm package.json name - #1081

Merged
evocateur merged 1 commit into
lerna:masterfrom
amfio:duplicate-package-names
Oct 27, 2017
Merged

evocateur merged 1 commit into
lerna:masterfrom
amfio:duplicate-package-names

Conversation

@amfio

@amfio amfio commented Oct 18, 2017 •

Copy link
Copy Markdown
Contributor

Description

Adds a warning when you bootstrap a project where 2 or more packages share the same name.

Example:
screen shot 2017-10-18 at 18 40 04

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@evocateur
evocateur merged commit a2d1e8a into lerna:master Oct 27, 2017
@evocateur

Copy link
Copy Markdown
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)
@lock

lock Bot commented Dec 27, 2018

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn about two or more packages having the same npm package.json name

2 participants