-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathturbo.json
More file actions
72 lines (72 loc) · 2.21 KB
/
Copy pathturbo.json
File metadata and controls
72 lines (72 loc) · 2.21 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
63
64
65
66
67
68
69
70
71
72
{
"$schema": "https://turborepo.com/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"tsdown.config.ts",
"$TURBO_ROOT$/packages/tsconfig/base.json"
],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tests/**",
// The coverage check reads the e2e suite, so a change there
// must invalidate the unit run that enforces it.
"e2e/**",
"fixtures/**",
"package.json",
"tsconfig.json",
"tsdown.config.ts",
"vitest.config.ts",
"$TURBO_ROOT$/packages/tsconfig/base.json"
]
},
// The grammar completeness check: every family command mounted,
// every mounted command family-owned, every path spelled as
// expected. It runs in the test suite too, but it also runs on its
// own before anything is published, so a release cannot ship a tree
// that has lost a command. Never cached: a green cache entry would
// let a publish skip the one check standing between it and a
// half-assembled CLI.
"check:grammar": {
"dependsOn": ["^build"],
"cache": false
},
"test:e2e": {
// The package's OWN build, not just its dependencies': these
// tests run dist/cli.js, so a stale dist would test the last
// build instead of this change.
"dependsOn": ["build"],
"cache": false
},
"conformance": {
// Packs and installs the real tarballs, so never cached; the
// package's own build is a dependency because the entry reads
// dist/ before packing rebuilds it.
"dependsOn": ["build"],
"cache": false,
// turbo passes only declared variables to a task, and the
// dev-build check answers differently per channel. Undeclared, it
// would silently read `release` in every run.
"env": ["PUBLISH_CHANNEL"]
},
"typecheck": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tests/**",
"e2e/**",
"package.json",
"tsconfig.json",
"$TURBO_ROOT$/packages/tsconfig/base.json"
]
}
}
}