{
  "$schema": "https://turbo.build/schema.json",
  "globalDependencies": [
    "bun.lock",
    "package.json",
    "tsconfig.base.json",
    "tsconfig.json"
  ],
  "tasks": {
    "build": {
      "dependsOn": ["^build"],
      "inputs": ["$TURBO_DEFAULT$", ".env*"],
      "outputs": ["dist/**", "build/**"],
      "env": ["NODE_ENV", "VITE_*"]
    },
    "check": {
      "dependsOn": ["^build"],
      "outputs": []
    },
    "test:unit": {
      "dependsOn": ["^build"],
      "outputs": [],
      "env": [
        "AGENT_CONFIG_TOKEN",
        "DASHBOARD_MIGRATIONS_DIR",
        "DATABASE_URL",
        "DISABLE_LIVE_DATASOURCES",
        "PROMETHEUS_BASE_URL"
      ]
    },
    "build-storybook": {
      "dependsOn": ["^build"],
      "inputs": ["$TURBO_DEFAULT$", ".env*"],
      "outputs": ["storybook-static/**"],
      "env": ["NODE_ENV", "STORYBOOK_*", "VITE_*"]
    },
    "test:e2e": {
      "dependsOn": [
        "build",
        "^build",
        "@dimensionlab/ui#build-storybook"
      ],
      "outputs": ["test-results/**", "playwright-report/**"],
      "env": [
        "AGENT_CONFIG_TOKEN",
        "CI",
        "DASHBOARD_MIGRATIONS_DIR",
        "DATABASE_URL",
        "DISABLE_LIVE_DATASOURCES",
        "PLAYWRIGHT_DATABASE_URL",
        "PLAYWRIGHT_PORT",
        "PLAYWRIGHT_STORYBOOK_PORT",
        "PROMETHEUS_BASE_URL",
        "STORYBOOK_STATIC_PORT"
      ]
    },
    "db:generate": {
      "cache": false
    },
    "db:check": {
      "outputs": [],
      "env": ["DATABASE_URL"]
    },
    "dev": {
      "dependsOn": ["^build"],
      "cache": false,
      "persistent": true,
      "env": [
        "AGENT_CONFIG_TOKEN",
        "DASHBOARD_DEV_API_HOST",
        "DASHBOARD_DEV_API_PORT",
        "DASHBOARD_DEV_API_TARGET",
        "DASHBOARD_MIGRATIONS_DIR",
        "DATABASE_URL",
        "HOST",
        "PORT",
        "PROMETHEUS_BASE_URL"
      ]
    },
    "preview": {
      "cache": false,
      "persistent": true,
      "env": [
        "AGENT_CONFIG_TOKEN",
        "DASHBOARD_MIGRATIONS_DIR",
        "DATABASE_URL",
        "HOST",
        "PORT",
        "PROMETHEUS_BASE_URL"
      ]
    },
    "storybook": {
      "cache": false,
      "persistent": true,
      "env": ["HOST", "PORT", "STORYBOOK_*", "VITE_*"]
    }
  }
}
