turbo.json1.3 KBView on GitHub
{
  "$schema": "https://turbo.build/schema.json",
  "ui": "tui",
  "envMode": "loose",
  "tasks": {
    "build": {
      "dependsOn": ["^build", "sentry:sourcemaps"],
      "inputs": ["$TURBO_DEFAULT$", ".env*"],
      "outputs": ["build/**", "!.react-router/**", "dist/**"]
    },
    "dev": {
      "persistent": true,
      "cache": false
    },
    "dev:staging": {
      "persistent": true,
      "cache": false
    },
    "dev:with-container": {
      "persistent": true,
      "cache": false
    },
    "dev:axiom": {
      "persistent": true,
      "cache": false
    },
    "start": {
      "cache": false
    },
    "lint": {
      "outputs": []
    },
    "types": {
      "dependsOn": ["^types"],
      // Server emits declarations under dist/; both packages write tsbuildinfo for incremental.
      // Turbo only restores these on a successful (exit 0) cache hit — failed typechecks never cache.
      "outputs": ["dist/**", "*.tsbuildinfo", "tsconfig.tsbuildinfo"]
    },
    "types:test": {
      // `tsc -p tsconfig.test.json` does not build project references, so mail's test project
      // reads apps/server's EMITTED declarations. `types` is what emits them.
      "dependsOn": ["^types", "types"],
      "outputs": []
    },
    "sentry:sourcemaps": {
      "cache": false
    }
  }
}