turborepo
d20b7f43 - Add worktrees.json configuration to .cursor directory (#10986)

Commit
68 days ago
Add worktrees.json configuration to .cursor directory (#10986) This PR adds a `worktrees.json` configuration file to the `.cursor` directory to specify the setup commands that should be run when creating a new worktree. ## Changes Added `.cursor/worktrees.json` with the following configuration: ```json { "setup-worktree": [ "pnpm install" ] } ``` This ensures that when developers create a new worktree, the dependencies are automatically installed using `pnpm install`, which is consistent with the repository's package manager (as specified in `package.json` with `"packageManager": "pnpm@8.14.0"`). ## Why Git worktrees allow developers to work on multiple branches simultaneously without switching between them. However, each worktree needs its own `node_modules` directory with properly installed dependencies. This configuration automates the setup process, saving developers time and reducing the chance of errors when creating new worktrees. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > On .cursor, Add a worktrees.json file with these contents: > > { > "setup-worktree": [ > "pnpm install" > ] > } </details> <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/vercel/turborepo/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: anthonyshew <35677084+anthonyshew@users.noreply.github.com>
Author
Parents
Loading