-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
turbo.json
37 lines (37 loc) · 1.25 KB
/
turbo.json
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
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["lib/**", "server/**"]
},
"test:unit": {
// Sometimes in unit tests of SDK we refer to the "types" package of the integration
// so this means the dependencies of the packages need to be built
"dependsOn": ["^build"],
"inputs": ["src/**/*.ts", "__tests__/unit/**/*.ts"],
"outputs": ["coverage/**"]
},
"test:integration": {
// Similarly to unit tests, people just freely import stuff from subdeps :(
"dependsOn": ["^build"],
"inputs": ["src/**/*.ts", "__tests__/integration/**/*.ts"],
"outputs": ["coverage/**"],
"env": ["TEST_*"]
},
"lint": {
// ESLint fails the 'is this import statement resolveable?' rule if the
// dependencies of some package aren't built
"dependsOn": ["^build"]
},
"sync-changelog": {
// Changelog is just a text file, just make sure to call npx changesets:version beforehand
"dependsOn": []
},
"sync-api": {
// api-extractor expects a ./lib/api-extractor-data.d.ts file to exist
// so the each package needs to be built before api extraction
"dependsOn": ["build"]
}
}
}