- Add globalDependencies: .env, .env.*, tsconfig.json - Add env array with NEXT_PUBLIC_* for build task - Expand outputs to include build/** - Add outputs for lint/typecheck/test tasks Fixes: Cache poisoning issue (stale code deployment) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
794 B
JSON
46 lines
794 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalDependencies": [
|
|
".env",
|
|
".env.*",
|
|
".env.*local",
|
|
"tsconfig.json",
|
|
"tsconfig.*.json"
|
|
],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"env": [
|
|
"NEXT_PUBLIC_API_URL",
|
|
"NEXT_PUBLIC_*",
|
|
"NODE_ENV"
|
|
],
|
|
"outputs": [
|
|
".next/**",
|
|
"!.next/cache/**",
|
|
"dist/**",
|
|
"build/**"
|
|
]
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": []
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": []
|
|
},
|
|
"test": {
|
|
"dependsOn": ["build"],
|
|
"outputs": ["coverage/**"]
|
|
},
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|