pnpm workspaces in a monorepo: the setup that survived CI on Railway and the problems the docs don't warn you about (opens in new tab)
pnpm workspaces in a monorepo: the setup that survived CI on Railway and the problems the docs don't warn you about The correct fix for speeding up installs in a TypeScript monorepo is adding more constraints to package resolution. I know that sounds backwards — intuition says "if something's broken, loosen the config." But with pnpm workspaces, loosening hoisting is exactly what turns a stable CI into one that fails in a different way every single time. My thesis: pnpm workspaces is the best...
Read the original article