Skip to content

Upgrade Turborepo to v2.5.8 and lock version to prevent branch inconsistencies#3627

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/upgrade-turborepo-version
Draft

Upgrade Turborepo to v2.5.8 and lock version to prevent branch inconsistencies#3627
Copilot wants to merge 3 commits intomainfrom
copilot/upgrade-turborepo-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 11, 2025

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:

  • Turborepo v1 uses pipeline in turbo.json
  • Turborepo v2 uses tasks in turbo.json

This 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.8 and updates the configuration syntax to match v2:

  1. Locked Turborepo version: Changed "turbo": "latest" to "turbo": "^2.5.8" in root package.json
  2. Updated configuration syntax: Changed pipeline to tasks in turbo.json to match Turborepo v2 format
  3. Updated yarn.lock: All turbo-related dependencies are now locked to version 2.5.8

Testing

  • ✅ Verified turbo version is now 2.5.8
  • ✅ Tested yarn lint - working correctly
  • ✅ Tested yarn build - working correctly
  • ✅ Tested yarn test - working correctly

Migration Notes

This upgrades the repository from Turborepo v1 to v2. The main breaking change is the configuration file syntax (pipelinetasks), 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

upgrade to latest turborepo - we currently seem to not have it locked causing some of my branches to use newest some older - causing errors in turborepos turbo.json with pipeline/task naming. so if we just lock it to newest that would save a lot of trouble


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 11, 2025

🦋 Changeset detected

Latest commit: 2499e02

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tokens-studio/figma-plugin Patch

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

Copilot AI and others added 2 commits October 11, 2025 07:53
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
Copilot AI requested a review from six7 October 11, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants