Files
web_sport/turbo.json
T

48 lines
1.2 KiB
JSON

{
"$schema": "https://turborepo.com/schema.json",
"ui": "tui",
"globalDependencies": ["pnpm-workspace.yaml", "packages/config/**"],
"globalEnv": ["NODE_ENV", "CI"],
"globalPassThroughEnv": ["DOCKER_BUILDKIT"],
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", "!**/*.test.ts", "!**/*.test.tsx", "!README.md"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"],
// Declared so a change to any of them busts the cache. NEXT_PUBLIC_* are
// inlined into the client bundle at build time, so a stale cache would
// ship the wrong API URL — this list is what prevents that.
"env": [
"NEXT_PUBLIC_API_URL",
"NEXT_PUBLIC_SITE_URL",
"NEXT_PUBLIC_APP_URL",
"API_INTERNAL_URL",
"DATABASE_URL",
],
},
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true,
},
"lint": {
"dependsOn": ["^build"],
"outputs": [],
},
"typecheck": {
"dependsOn": ["^build"],
"outputs": [],
},
"test": {
"dependsOn": ["^build"],
"outputs": ["coverage/**"],
},
"clean": {
"cache": false,
},
"db:generate": {
"cache": false,
},
},
}