Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fail when --hoist and --yarn are used together #1063

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

marionebl
Copy link
Contributor

Description

  • add a plausibility check for cases where typeof options.hoist === 'string' and options.npmClient === 'yarn'
  • Fail for this case printing a detailed error message pointing to the yarn + lerna guide

Motivation and Context

How Has This Been Tested?

  • Added a test case for this in test/BootstrapCommand.js
  • Test case performs operation on prepared fixture test/fixtures/BootstrapCommand/yarn-hoist
  • No additional effects on rest of code base expected

Types of changes

Debateable, my guess:

  • 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 cd8e007 into lerna:master Oct 27, 2017
@evocateur
Copy link
Member

Thanks @marionebl, apologies for the delay!

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

Many thanks @marionebl :-)

@lock
Copy link

lock bot commented Dec 27, 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.

@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.

None yet

3 participants