{
    "$schema": "https://turbo.build/schema.json",
    "ui": "tui",
    "globalPassThroughEnv": ["NODE_OPTIONS", "RAYON_NUM_THREADS"],
    "tasks": {
        "build": {
            "dependsOn": ["^build", "typecheck"],
            "env": ["NODE_ENV"],
            "inputs": ["$TURBO_DEFAULT$", ".env*"],
            "outputs": ["dist/**"]
        },
        "build:release": {
            "dependsOn": ["typecheck:release"],
            "env": ["NODE_ENV", "VITE_*"],
            "inputs": ["$TURBO_DEFAULT$", ".env*"],
            "outputs": ["dist/**", ".release-build/**"]
        },
        "typecheck:release": {
            "dependsOn": ["@sammo-ts/infra#prisma:generate"],
            "inputs": [
                "$TURBO_DEFAULT$",
                "$TURBO_ROOT$/tsconfig*.json",
                "$TURBO_ROOT$/resources/navigation.json",
                "$TURBO_ROOT$/packages/common/src/**",
                "$TURBO_ROOT$/packages/infra/src/**",
                "$TURBO_ROOT$/packages/infra/prisma/*.prisma",
                "$TURBO_ROOT$/packages/logic/src/**",
                "$TURBO_ROOT$/app/game-engine/src/**",
                "$TURBO_ROOT$/app/game-api/src/**",
                "$TURBO_ROOT$/app/gateway-api/src/**"
            ],
            "cache": true
        },
        "typecheck": {
            "dependsOn": ["^build", "prisma:generate"],
            "cache": true
        },
        "prisma:generate": {
            "inputs": ["$TURBO_DEFAULT$"],
            "outputs": ["node_modules/.prisma/client/**", "prisma/generated/**"],
            "cache": true
        },
        "lint": {
            "cache": true
        },
        "lint:fix": {
            "cache": false
        },
        "test": {
            "cache": true
        },
        "dev": {
            "cache": false,
            "persistent": true
        }
    }
}
