tezvyn:

Kent C. Dodds Fixes Accidental Monorepo with Workspaces

Source: Kent C. Dodds Blogintermediate

Kent C. Dodds consolidated four deployable apps into a proper npm workspace, deleting three nested lockfiles and adding minimal Nx caching. The migration exposed hardcoded paths and invalid package aliases that broke production once Node enforced package…

Kent C. Dodds migrated kentcdodds.com from an accidental monorepo with four separate package.json files and lockfiles into a proper npm workspace with everything runnable under services/*. The root package.json became a thin orchestration layer running Nx 22.5.4 with inferred caching for build, lint, typecheck, and test targets. The structural change immediately broke two things: import aliases pointing outside package boundaries and a hardcoded content path that took production down.

Read the original → Kent C. Dodds Blog

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Kent C. Dodds Fixes Accidental Monorepo with Workspaces · Tezvyn