-
Notifications
You must be signed in to change notification settings - Fork 795
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
chore: remove examples from lerna packages #470
chore: remove examples from lerna packages #470
Conversation
Examples fail to run if they are installed with the regular boostrap process. Removing them from packages allows the user to `npm install` them regularly.
Codecov Report
@@ Coverage Diff @@
## master #470 +/- ##
==========================================
- Coverage 95.26% 95.14% -0.12%
==========================================
Files 137 136 -1
Lines 6840 6715 -125
Branches 597 591 -6
==========================================
- Hits 6516 6389 -127
- Misses 324 326 +2
|
One advantage of keeping |
We just need to find a way to exclude it from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I am ok to remove examples/*
from Lerna. Would like to hear more from others.
This would also solve this issue #384 (comment) |
I think the additional burden of periodically updating dependencies in the examples is outweighed by the confusions new users will have when they can't load the examples using the instructions provided. |
Here is my attempt to explain why this is broken and suggest an alternative fix. In the
none of these directories are One alternative fix would be to install all plugin packages as dev dependencies in the root of the project, which is a parent of both directories. |
Also once we will install greenkeeper tool (or other), it will check that for us |
We are using lerna to allow package inter-dependencies during development. I saw the problem with the plugin loader - so this seems just not to work with lerna - and this is a valid point but I'm not sure if we should ditch the benefits for that. If we go down that route, we should at least document a reliable way to solve this during development. |
Co-authored-by: Valentin Marchaud <[email protected]>
Which problem is this PR solving?
lerna bootstrap
due to a symlink module resolution issue require can't find module by name if it's a symlink anymore nodejs/help#1212Short description of the changes
Examples fail to run if they are installed with the regular boostrap process.
Removing them from packages allows the user to
npm install
themregularly.
If someone knows a reason to keep
examples/*
in the lerna packages please let me know so we can find a different workaround