Skip to content

Turborepo build system alignment#4486

Merged
ScriptedAlchemy merged 6 commits intocursor/build-system-turborepo-14f4from
cursor/turborepo-build-system-alignment-84cd
Mar 2, 2026
Merged

Turborepo build system alignment#4486
ScriptedAlchemy merged 6 commits intocursor/build-system-turborepo-14f4from
cursor/turborepo-build-system-alignment-84cd

Conversation

@ScriptedAlchemy
Copy link
Member

Description

This PR completes the full alignment and simplification of our monorepo's build system and CI with Turborepo best practices. The primary goal was to reduce custom logic, standardize task execution, and leverage native Turborepo features for improved efficiency and maintainability.

Key changes include:

  • Standardized Turbo Task Contract: Introduced turbo:build, turbo:test, and turbo:lint tasks in turbo.json with proper dependsOn configurations to define the package graph and orchestrate dependency-aware execution.
  • Per-Package Turbo Wrappers: Added turbo:build, turbo:test, and turbo:lint scripts to individual package.json files across all workspace packages. This establishes a clear contract for running package-local scripts versus Turbo-orchestrated, dependency-aware pipelines.
  • Root Script Alignment: Updated root package.json scripts to utilize the new turbo:* task contract, simplifying top-level commands and ensuring consistent execution.
  • Native Turbo Affected Logic: Replaced complex, custom affected detection scripts (ci-is-affected.mjs, run-affected-package-tests.mjs) with native Turborepo --affected functionality, streamlining CI checks and removing legacy Nx-era logic.
  • CI/Workflow Simplification: Refactored GitHub Actions workflows to use the new standardized scripts and native Turbo features, reducing duplication, improving readability, and making CI more robust.

This refactoring significantly simplifies the build configuration, makes the monorepo easier to understand and maintain, and fully embraces Turborepo's capabilities for task orchestration and caching.

Related Issue

N/A

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Open in Web Open in Cursor 

@cursor
Copy link

cursor bot commented Mar 1, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Mar 1, 2026

⚠️ No Changeset found

Latest commit: 6277901

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 1, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@ba99504

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@ba99504

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@ba99504

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@ba99504

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@ba99504

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@ba99504

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@ba99504

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@ba99504

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@ba99504

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@ba99504

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@ba99504

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@ba99504

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@ba99504

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@ba99504

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@ba99504

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@ba99504

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@ba99504

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@ba99504

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@ba99504

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@ba99504

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@ba99504

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@ba99504

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@ba99504

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@ba99504

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@ba99504

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@ba99504

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@ba99504

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@ba99504

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@ba99504

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@ba99504

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@ba99504

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@ba99504

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@ba99504

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@ba99504

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@ba99504

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@ba99504

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@ba99504

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@ba99504

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@ba99504

commit: ba99504

@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review March 2, 2026 19:32
@ScriptedAlchemy ScriptedAlchemy merged commit 2579937 into cursor/build-system-turborepo-14f4 Mar 2, 2026
13 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the cursor/turborepo-build-system-alignment-84cd branch March 2, 2026 20:13
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