-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Move to pnpm #872
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
Move to pnpm #872
Conversation
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"lerna": "^3.20.2", |
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.
Does this mean Lerna isn't needed at all any more? If so, want to remove lerna.json
as well?
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.
Oops yep!
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.
Wow that's a huge speed boost, thanks Sam! Left a couple of comments, but overall LGTM
Co-authored-by: Jeff <jhuleatt@google.com>
This makes the samples significantly smaller and makes our CI run faster.
Size differences
Here are the sizes after running the bootstrap script:
lerna
: 4.5GBpnpm
:functions-samples
~/.pnpm-store
Speed differences
Overall
With lerna our CI tests take ~7m, with ~4m in the bootstrap phase (link):
With pnpm with no concurrency our CI tests take ~4m with ~0.5m in the bootstrap phase (link):
With pnpm with concurrency set to 8 (same as Lerna) our CI tests take 3.5m (link):
With pnpm with concurrency set to 4 our CI tests take 4.25m (link):