$ recombobulate _
home / tips / ask-claude-to-scaffold-a-pnpm-workspace-monorepo
0

Ask Claude to Scaffold a pnpm Workspace Monorepo

bagwaa @bagwaa · Mar 26, 2026 · Configuration
ask-claude-to-scaffold-a-pnpm-workspace-monorepo

Setting up a pnpm monorepo from scratch means juggling pnpm-workspace.yaml, per-package package.json files, shared tsconfig.json paths, and build order. Claude can generate the whole scaffold from a description.

Set up a pnpm workspace monorepo with three packages:
- apps/web (Next.js 14 app)
- packages/ui (shared React component library, TypeScript)
- packages/utils (shared TypeScript utilities, no framework)

Include a root tsconfig.json with path aliases for each package.
Add a shared ESLint config in packages/eslint-config.

Claude will generate the pnpm-workspace.yaml, each package.json with correct workspace protocol references ("@myapp/ui": "workspace:*"), and the tsconfig path aliases so imports like @myapp/ui/Button resolve correctly.

For build orchestration, ask Claude to add Turborepo:

Add Turborepo to the monorepo above.
Create a turbo.json with a build pipeline that compiles packages/utils 
and packages/ui before apps/web.
Add a root build:all script and a dev script that runs all apps in parallel.

Claude understands Turborepo's task dependency model and will configure dependsOn and outputs correctly so caching works.

Monorepo setup in minutes — describe your packages and let Claude wire it together.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Switch to the Stable Update Channel with autoUpdatesChannel

The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.

bagwaa @bagwaa · 2 hours ago
0
Set Claude's Response Language with the language Setting

The language setting makes Claude respond in your preferred language by default, across every session and project.

bagwaa @bagwaa · 2 hours ago
0
Customize or Remove Claude's Git Attribution with the attribution Setting

The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.

bagwaa @bagwaa · 2 hours ago