Discourse core is switching to pnpm for JS package management

The speed improvements are most noticeable from a ‘cold start’. e.g. in our GitHub actions CI, yarn would take 90s+, while pnpm completes in about 15s.

That might be because we haven’t bumped the base image since making this change. So, on stable, the yarn dependencies are already installed. Wheras for tests-passed, the yarn dependencies have to be thrown away before doing a pnpm install from scratch.

So, the situation will improve for tests-passed after the next base image bump.

6 Likes

We’re not using Docker… :grimacing:

So this is a problem in our custom environment.
I’m going to dig into this and see what goes wrong.

4 Likes