Upgrade Turborepo to v2.5.8 and lock version to prevent branch inconsistencies#3627
Draft
Upgrade Turborepo to v2.5.8 and lock version to prevent branch inconsistencies#3627
Conversation
🦋 Changeset detectedLatest commit: 2499e02 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Lock turborepo to the latest version
Upgrade Turborepo to v2.5.8 and lock version to prevent branch inconsistencies
Oct 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The repository was using
"turbo": "latest"in package.json, which caused different branches to install different major versions of Turborepo. Some branches would get v1.x while others would get v2.x, leading to configuration errors because:pipelinein turbo.jsontasksin turbo.jsonThis inconsistency caused build failures when switching between branches or when different developers had different versions installed.
Solution
This PR locks Turborepo to version
^2.5.8and updates the configuration syntax to match v2:"turbo": "latest"to"turbo": "^2.5.8"in root package.jsonpipelinetotasksin turbo.json to match Turborepo v2 formatTesting
yarn lint- working correctlyyarn build- working correctlyyarn test- working correctlyMigration Notes
This upgrades the repository from Turborepo v1 to v2. The main breaking change is the configuration file syntax (
pipeline→tasks), which has been updated in this PR. All existing scripts and workflows continue to work without modification.Closes: Issue regarding turborepo version inconsistencies causing pipeline/task naming errors
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.