Skip to content

feat(bootstrap): Add --strict option to enable throwing when --hoist warns#2140

Merged
evocateur merged 2 commits intolerna:masterfrom
jnielson94:feat/strict-hoist
Jul 18, 2019
Merged

feat(bootstrap): Add --strict option to enable throwing when --hoist warns#2140
evocateur merged 2 commits intolerna:masterfrom
jnielson94:feat/strict-hoist

Conversation

@jnielson94
Copy link
Contributor

@jnielson94 jnielson94 commented Jun 17, 2019

Description

Add an option that will throw an error after printing out the hoist warnings (if there were any) to allow the bootstrap process to stop if there are version conflicts.

Motivation and Context

Fixes #2139 (and #667 although that was closed long ago).

How Has This Been Tested?

I added a unit test, and tried it out in our project (after spending a decent chunk of time dealing with trying to get linking working...), seemed to work just great.

Types of changes

  • New feature (non-breaking change which adds functionality)

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.

Please let me know if I did something that I shouldn't have or things to adjust :)

@jnielson94 jnielson94 changed the title Feat/strict hoist Feat(bootstrap): strict hoist Jun 24, 2019
@jnielson94
Copy link
Contributor Author

@evocateur - When you have a minute to review this, we'd appreciate it :) We have a hacky work around right now, but it would be nice to have an official option.

@evocateur evocateur changed the title Feat(bootstrap): strict hoist feat(bootstrap): Add --strict option to enable throwing when --hoist warns Jul 18, 2019
Copy link
Member

@evocateur evocateur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@evocateur evocateur merged commit 91437b5 into lerna:master Jul 18, 2019
@evocateur
Copy link
Member

(Apologies for the delay, thank you for your patience)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to turn hoist warnings into errors

2 participants