Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I recently migrated a large project from yarn to pnpm and the speed difference is insane. Everything related to dependencies runs must faster during local development AND CI. T The only tricky thing is that we had some issues with some dependencies that could not work properly. But using the “—-shamefully-hoist” flag did the trick. Everything works.


You can potentially solve this more narrowly with hoist-pattern[1] so you’ll still benefit from the stricter structure overall. Or possibly even overrides[2] depending on the issue.

1: https://pnpm.io/npmrc#hoist-pattern

2: https://pnpm.io/package_json#pnpmoverrides




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: