Repository navigation
Only install missing external dependencies during bootstrap - #199
Conversation
| import assertStubbedCalls from "./_assertStubbedCalls"; | ||
|
|
||
| describe("BootstrapCommand", () => { | ||
| let testDir; |
There was a problem hiding this comment.
The diff is cluttered here due to indentation changes (added a nested describe layer).
I've left the original test unchanged, and added three additional tests.
There was a problem hiding this comment.
Beautiful. Thank you.
|
Looks like the tests aren't stubbing out npm completely which is causing it to fail in CI |
|
Yeah, that's strange. It's stubbing Not able to repro locally. 😕 |
|
I can take a look later. It might help if travis did |
This makes bootstrap in a repo that has been bootstrapped previously much faster. This addresses lerna#125.
|
That whole test was actually invalid. It was intended to test that dependency linking doesn't happen on warm bootstrap, but this patch actually didn't wind up addressing that (no real need -- it's cheap). It was only incidentally passing locally because I had a premature call to The remaining two new tests exercise the functionality that is actually provided by this patch. |
|
This, plus #204, takes our bootstrap on a warm repo from ~8 minutes to a half second. 🚀 |
|
Happy to merge this as is. But should there be a flag to force it to reinstall things? |
|
Actually no, I'll wait for someone to request that. |
This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199
* Upgrade lerna-2.0.0-beta.18 This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199 * Use `lerna clean` for `npm run nuke`
* Upgrade lerna-2.0.0-beta.18 This picks up some patches that will help us out: - lerna/lerna#181 - lerna/lerna#196 - lerna/lerna#198 - lerna/lerna#199 * Use `lerna clean` for `npm run nuke`
|
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 makes bootstrap in a repo that has been bootstrapped previously much faster.
This addresses #125.