Skip to content
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

Initial work on moving to pnpm from npm #2213

Closed
wants to merge 5 commits into from

Conversation

humphd
Copy link
Contributor

@humphd humphd commented Apr 23, 2021

I have been experimenting with pnpm for improving our package installation speed/size requirements, and it's really very good. I don't think we can merge this yet, since it doesn't work with Dependabot yet, though it is likely to be added at some point.

The major benefit of pnpm is that it will install a dependency only once, and if multiple packages (e.g., sub-projects like the microservices) use the same package, you only have to install it once. I've found that this is much, much faster, and also requires less disk space (~700M vs. 1.8G).

I wouldn't recommend running pnpm install in the same tree where you have already run npm install, but rather to do it in a clean fork if you want to test it. To get rid of node_modules recursively see: https://css-tricks.com/how-to-delete-all-node_modules-directories-from-your-computer/

@humphd humphd added developer experience Helping the Developer Experience dependencies Pull requests that update a dependency file labels Apr 23, 2021
@humphd
Copy link
Contributor Author

humphd commented Apr 23, 2021

I've filed a bug upstream on the pnpm GitHub Action, which is failing.

@humphd
Copy link
Contributor Author

humphd commented Apr 24, 2021

I fixed one issue (most of CI passing now), but hit a new one, where passing args to pnpm run is currently broken. There's a bug filed upstream, and I've switched to npm for that one case, which is fine for now.

@humphd
Copy link
Contributor Author

humphd commented Apr 24, 2021

I think this is working now, but the e2e tests are failing because of a random installation failure in one microservice for the mock elasticsearch client. I'm going to wait and try again tomorrow to see if it fixes itself.

@humphd
Copy link
Contributor Author

humphd commented Oct 10, 2021

I'm going to close this, and consider trying Rush instead.

@humphd humphd closed this Oct 10, 2021
@menghif menghif mentioned this pull request Nov 30, 2021
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file developer experience Helping the Developer Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant