-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathturbo.json
More file actions
62 lines (62 loc) · 1.87 KB
/
Copy pathturbo.json
File metadata and controls
62 lines (62 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"$schema": "https://v2-9-12.turborepo.dev/schema.json",
"envMode": "loose",
// Local cache eviction is opt-in until Turborepo 3.0, so without these the
// filesystem cache grows forever. In CI each cache dir is a Blacksmith sticky
// disk that is mounted many times a day, so it never goes idle long enough for
// Blacksmith's own 7-day inactivity purge to fire, and one cache-missing app
// build writes a ~400 MB artifact: the build cache reached 206 GB in 43 days.
//
// Size is the real bound and age is hygiene. A hit only happens when a task's
// input hash is unchanged — a re-run, or a commit touching only unrelated
// workspaces — which recurs within hours, so nothing older than a day or two
// can ever be read again. Measured hit rate on the app build is ~17%, worth
// ~7 minutes each, so the cache earns its keep; it just needs a ceiling.
// 40 GB is ~100 app-sized artifacts against ~4.8 GB/day of real accumulation.
//
// Neither key participates in the task hash, so changing them does not
// invalidate the cache.
"cacheMaxAge": "7d",
"cacheMaxSize": "40GB",
"tasks": {
"transit": {
"dependsOn": ["^transit"],
"outputs": []
},
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"dev": {
"persistent": true,
"cache": false
},
"start": {
"cache": false
},
"test": {
"dependsOn": ["^build"],
"env": ["SIM_TEST_SHARD"],
"outputs": []
},
"lint": {
"dependsOn": ["transit"],
"outputs": []
},
"format": {
"outputs": []
},
"format:check": {
"outputs": []
},
"lint:check": {
"dependsOn": ["transit"],
"outputs": []
},
"type-check": {
"dependsOn": ["transit"],
"outputs": []
}
}
}