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.
Log in to leave a comment.
The autoUpdatesChannel setting pins Claude Code to a stable release track that skips versions with major regressions.
The language setting makes Claude respond in your preferred language by default, across every session and project.
The attribution setting lets you customize or completely remove Claude's Co-Authored-By trailer from git commits and pull requests.