pnpm just saved my day
Phew😅, I've finally found a way to create a react app or installing large packages on nodejs while...
Tag archive
Phew😅, I've finally found a way to create a react app or installing large packages on nodejs while...
Practical Claude Code patterns for Turborepo, pnpm, Nx, and Bun workspaces — per-package CLAUDE.md, scoped edits, parallel agent runs, cost-per-package.
Adding an npm dependency isn't just installing code — it's taking on its maintenance, its attack surface, and its transitive deps. Here's the checklist I run before adding any package to a serious TypeScript project.
Sumar una dependencia npm no es solo instalar código: es asumir su mantenimiento, su superficie de ataque y sus deps transitivas. Acá está la checklist que uso antes de agregar cualquier paquete a un proyecto TypeScript serio.
pnpm workspaces is the best option for TypeScript monorepos in 2026. But the happy path in the docs hides three traps that only show up in CI with real deployments: phantom dependencies, broken hoisting on Railway, and script filtering that doesn't filter what you think it does.
pnpm workspaces es la mejor opción para monorepos TypeScript en 2026. Pero el path de felicidad de los docs esconde tres trampas que solo aparecen en CI con deployment real: phantom dependencies, hoisting roto en Railway y script filtering que no filtra lo que creés.

Learn how to structure your frontend projects using a monorepo with pnpm workspaces and Turborepo for efficient dependency management and faster builds.
The CI was green. The cache wasn't working. Forty minutes per build run because pnpm couldn't find the store in GitHub Actions. Here are the logs, the before/after YAML, and the exact configuration that brought it down to 8 minutes.
El CI funcionaba. El caché no. Cuarenta minutos de build por run porque pnpm no encontraba el store en GitHub Actions. Acá están los logs, el YAML antes y después, y la configuración exacta que lo bajó a 8 minutos.
I ran all three package managers on the same Next.js 16 + strict TypeScript monorepo with Shadcn/ui and Radix UI. pnpm wins on disk and CI — but there's a real compatibility cost the migration guides never tell you about.
El benchmark de install time que publiqué antes no capturó el verdadero costo de pnpm workspaces en CI: cache invalidation silenciosa, hoisting de dependencias que rompe en App Router, y un edge case específico que puede tirar tu pipeline en Railway. Acá está lo que faltó medir.
The install-time benchmark I published earlier didn't capture the real cost of pnpm workspaces in CI: silent cache invalidation, dependency hoisting that breaks in App Router, and a specific edge case that can take down your Railway pipeline. Here's what I failed to measure.