Skip to content

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

Merged
evocateur merged 1 commit into
lerna:masterfrom
marionebl:fix-warn-about-yarn-hoisting
Oct 27, 2017
Merged

evocateur merged 1 commit into
lerna:masterfrom
marionebl:fix-warn-about-yarn-hoisting

Conversation

@marionebl

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

Many thanks @marionebl :-)

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

3 participants