-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathturbo.json
More file actions
60 lines (60 loc) · 2.28 KB
/
Copy pathturbo.json
File metadata and controls
60 lines (60 loc) · 2.28 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
{
"$schema": "https://turbo.build/schema.json",
"daemon": true,
// Bound how many packages turbo runs at once; the default is 10, so `pnpm test` (`turbo run
// test`) started up to 10 vitest pools on one machine (#8119). Each pool is itself capped at 2
// forks locally by the app's `vitest.config.ts`, so `pnpm test` now holds at most 8 workers.
// `concurrency` is a GLOBAL key — turbo's schema has no per-task one (turbo 2.10.3
// `node_modules/turbo/schema.json`: only `properties.concurrency` and
// `definitions.GlobalConfig.properties.concurrency`), so it bounds every task, not just `test`.
// The floor is set by `pnpm dev`: turbo refuses to start when persistent tasks are not fewer
// than the concurrency, and `turbo run dev dev:worker` has three (tuval#dev, web#dev,
// web#dev:worker). A fourth persistent task in the repo has to raise this number with it.
"concurrency": "4",
// 25 package tsconfigs `extends` the root one, but turbo hashes it into no package and
// the changed-package selection behind `pnpm typecheck:affected` — what `.fabrika.jsonc` declares
// for `build check --surface code`, and what the pre-push hook runs — then selects `//` alone and
// plans 0 typecheck tasks on a root-tsconfig-only change (#8275). Listing it here makes every
// package changed for that selection and part of every task's hash.
"globalDependencies": ["tsconfig.json"],
"tasks": {
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true
},
"dev:worker": {
"cache": false,
"persistent": true
},
"deploy": {
"dependsOn": ["^build"],
"cache": false
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist", "*.tsbuildinfo", "build"],
"cache": true
},
"typecheck": {
"dependsOn": ["^build"],
"cache": true
},
"test": {
"dependsOn": ["^build"],
"cache": true,
// CI-secret roster: these three are a subset (no BETTER_AUTH_SECRET — tests
// don't sign sessions) of the four CI secrets enumerated canonically in
// infra/ci-credentials/github.ts (the provisioner); keep in sync (#1432).
"passThroughEnv": ["CLOUDFLARE_API_TOKEN", "CLOUDFLARE_ACCOUNT_ID", "ALCHEMY_PASSWORD"]
},
"lint": {
"dependsOn": ["^build"],
"cache": true
},
"start": {
"dependsOn": ["build"],
"cache": false
}
}
}