Repository navigation
Conversation
|
Big +1 for progressing with this patch, |
TODO: [ ] Pending new lerna version with root-dev patch. (lerna/lerna#357) [ ] Pending new name for apollo-server to be chosen. (apollographql#163) [ ] Need to Create GitHub labels and modify lerna.json according it. [ ] Add Different README.md for each package ?? [ ] Make sure tests/coverage are working
TODO: [ ] Pending new lerna version with root-dev patch. (lerna/lerna#357) [ ] Pending new name for apollo-server to be chosen. (apollographql#163) [ ] Need to Create GitHub labels and modify lerna.json according it. [ ] Add Different README.md for each package ?? [ ] Make sure tests/coverage are working
TODO: [ ] Pending new lerna version with root-dev patch. (lerna/lerna#357) [ ] Pending new name for apollo-server to be chosen. (apollographql#163) [ ] Need to Create GitHub labels and modify lerna.json according it. [ ] Add Different README.md for each package ?? [ ] Make sure tests/coverage are working
TODO: [ ] Pending new lerna version with root-dev patch. (lerna/lerna#357) [ ] Pending new name for apollo-server to be chosen. (apollographql#163) [ ] Need to Create GitHub labels and modify lerna.json according it. [ ] Add Different README.md for each package ?? [ ] Make sure tests/coverage are working
|
@hzoo @thejameskyle any chance it will be merged for beta.31? |
|
I don't understand the need to do this. If you have dev scripts that you don't want to put in the top level package, why would you want the |
|
I have 2 examples that im using:
This patch gives the power to define global tools/packages i dont see why its bad.. |
|
@thejameskyle I guess one argument would be least surprise like I mentioned in the issue - specifically symmetry with In terms of concrete use cases, consider a monorepo that is less homogenous than Babel - it may have groups of packages built in a few different ways (in my case: some generate code from Protobuf definitions, others from pegjs grammars, and others are JS/Babel). I find it natural to want to do |
|
this is not progressing :( is there anything i can do to help progress with that? |
|
I really don't want to add features like this unless there's a really good reason to do so. If we do stuff like this too often, Lerna starts to become magic. |
|
So what do you suggest is the correct way of acheiving this behavior?
|
|
If you want to reference a single thing in each one why not just reference something higher up in the file system? |
|
Also if something is being applied to every package, just do it at the top level. |
|
And finally, it's not that big of a deal to just install the same dependency into every single package. You would have done that anyways by having a bunch of separate repos. |
|
it is much harder to keep dependencies updated once it is duplicated like you are suggesting. thanks. |
We cannot do this. When developing locally on windows we'll have to write "..\..\" which will fail for people using linux. |
|
@motiz88 @olegskl last night we merged a change that hoists common dependencies to the monorepo root. I suspect that this fulfills your usecase. It accomplishes much the same thing (having a core set of dependencies that are installed only once while being available to every package) while giving some other guarantees that I think are an improvement. One of the things that is really important for Lerna projects is that they operate independently as if they were well formed npm packages. This is important to make onboarding for new developers easier, since if they are already familiar with yarn or npm, they can develop on a single module in a lerna repo using the tools they are used to. This also makes it possible to import and export modules from a lerna repo, since each module is well-formed on its own. By symlinking devDependencies listed at the root to leaf modules, you're creating a module that can't be If there's something I'm missing here, let me know, but I believe that we can decline this pr as redundant to #507. |
|
Thanks @doug-wade ! |
|
@DxCx I have good news for you -- its out! https://twitter.com/left_pad/status/826857968930992128 |
|
yeah i know @doug-wade was watching the repo for it :) thanks! |
|
great news! |
|
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. |
Consider this a strawman for how #355 would work. I'd love to receive feedback on anything from the idea to the approach to the execution.