Skip to content

Align turborepo configuration with best practices#44

Merged
chris-c-thomas merged 2 commits intomainfrom
build/turborepo
Mar 15, 2026
Merged

Align turborepo configuration with best practices#44
chris-c-thomas merged 2 commits intomainfrom
build/turborepo

Conversation

@chris-c-thomas
Copy link
Copy Markdown
Owner

This pull request updates the Turbo configuration and related scripts to improve task dependencies and output management across the project. The most important changes include refining Turbo task dependencies for more accurate build and linting flows, updating script commands in package.json for consistency, and adding new Turbo configuration files for specific packages.

Task dependency improvements:

  • Updated turbo.json to refine task dependencies: test now depends on parent builds, transit and lint tasks depend on transit, and build:web outputs exclude cache directories for better caching and build accuracy.
  • Added Turbo configuration to packages/cli/turbo.json specifying that test depends on both local and parent build tasks.

Script command updates:

  • Changed all Turbo-related script commands in package.json to use turbo run for consistency and compatibility with Turbo's latest CLI conventions.

Configuration additions:

  • Added a new Turbo configuration file to apps/web/turbo.json specifying typecheck task outputs for improved type checking management.

greptile-apps[bot]

This comment was marked as off-topic.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the repository’s Turborepo configuration and root scripts to better control task ordering and caching/outputs across the monorepo (including package-specific Turbo overrides for apps/web and packages/cli).

Changes:

  • Updated root turbo.json task graph (notably test dependencies, new transit task, and lint dependencies) and refined build:web outputs.
  • Added package-level Turbo configs for packages/cli (test/build ordering) and apps/web (typecheck outputs).
  • Standardized root package.json scripts to use turbo run <task>.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
turbo.json Refines task dependencies and outputs (adds transit, changes test deps, updates lint deps, adjusts Next outputs).
packages/cli/turbo.json Adds CLI-specific override so test runs after build.
apps/web/turbo.json Adds output tracking for incremental TS typecheck (tsconfig.tsbuildinfo).
package.json Updates root scripts to use turbo run consistently.

Comment thread turbo.json
Comment thread packages/cli/turbo.json
@sonarqubecloud
Copy link
Copy Markdown

@chris-c-thomas chris-c-thomas merged commit 41ec9fc into main Mar 15, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 15, 2026
@chris-c-thomas chris-c-thomas deleted the build/turborepo branch March 15, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants