[Feature] Adds --include-filtered-dependencies flag for bootstrap command#390
Conversation
|
Closes #388 |
|
Question: Should this warn if using the |
874c8b7 to
773aea3
Compare
|
The second Anyone have any idea why that might be? It says it's a permission error when trying to rename a file and to re-run it as an admin. EDIT: Ran a clean branch with no issues in appveyor -> no problem Appveyor seems to be a little flakey with npm 0.12 |
773aea3 to
940c41a
Compare
|
Playing with this a bit more locally, I'm wondering if this should also include dev dependencies? At the moment I just manually bootstrap those using the Anyone have any opinions on this? Happy to add it. |
|
I will definitely add the devDependencies at some point, its bitten me a few times using it locally now :P |
|
I think it's a good idea to add devDependencies to --include-deps. That way it works as users expect it to work. |
--include-deps flag for bootstrap command--include-deps flag for bootstrap command
|
Hmm, |
|
@thejameskyle It's not for filtered deps though, it's for transitive deps.
|
|
lol maybe |
|
|
|
So the original idea of |
|
Happy to go with Super simple fix, just need to change the |
940c41a to
688ef45
Compare
16cf9d1 to
47d99a5
Compare
|
@lukebatchelor Please rebase this when you get a chance now that #386 has landed in master. |
|
Super weird, I |
…strap, exec, run, clean and ls commands
…clean and bootstrap commands
47d99a5 to
886deb7
Compare
|
Oops, sorry. Got pulled away yesterday, should be good to go @gigabo |
|
Another thought on this topic (hopefully not derailing the PR too much in the process): I think this would be really valuable for all tasks to have, much like your filtering changes. Use case: |
|
@gigabo Could I get some eyes on this when you've got time? 👍 |
|
Hi @lukebatchelor yep, just getting back from the holidays. Will take a look! 👀 |
|
Quick question: would it make sense to change this to --include-dependencies'? I envision that at some point we might want a --include-dependents flag and "deps" could be either. Use case for --include-dependents would be to quickly install and run tests for any package that uses a package you're modifying. |
|
@spudly it was changed to |
--include-deps flag for bootstrap command--include-filtered-deps flag for bootstrap command
|
I'm with @spudly on this: better to be entirely explicit, since it doesn't save many keystrokes that often anyway (so: |
|
@lukebatchelor & @seansfkelley, Yes, I do still think we need to explicitly call it My vote is for |
|
This looks good to me. As for Thanks for your patience @lukebatchelor, and for the nice clean change set. 👍 |
|
Sweet, well I'm happy with either as well. Personally I prefer deps because I spell dependency wrong approximately 100% of the time XD. I'll leave the call up to you @gigabo / @seansfkelley ? |
|
Everyone seems to be ambivalent, so I would err on the side of being explicit and just make it wordier. Reasonable? |
|
Sorry for the delay! Just managed to get some time to do this. Will rename this morning. |
|
@gigabo When you're ready 👌 |
|
Thanks @lukebatchelor! |
--include-filtered-deps flag for bootstrap command--include-filtered-dependencies flag for bootstrap command
Fixes typo introduced in lerna#390.
Fixes typo introduced in #390.
|
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. |
This adds a flag to the bootstrap command that ensures that all dependencies of any bootstrapped packages are also bootstrapped.
The use case for this is needing to "set up" a single package in a clean repository and not wanting to have to prepublish every single package.
This has been a major pain point for us in a repository with only 61 packages.
Some quick numbers from using in our repo:
Total: 9:45.04 (bootstraps 61 packages)
Total: 2:22.19 (bootstraps 6 packages, 5 direct dependencies and 1 transitive dependency)