Repository navigation
Expand file tree
/
Copy pathturbo.jsonc
More file actions
66 lines (66 loc) · 1.84 KB
/
Copy pathturbo.jsonc
File metadata and controls
66 lines (66 loc) · 1.84 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
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"turbo.jsonc",
"tsconfig.json",
"tsconfig.cjs.json",
"tsconfig.es.json",
"tsconfig.types.json",
"scripts/compilation/**",
],
"tasks": {
"prebuild": {},
"build": {
"dependsOn": ["prebuild", "^build"],
"inputs": ["src/**/*", "package.json"],
"outputs": ["dist-types/**", "dist-cjs/**", "dist-es/**", "dist"],
},
"build:cjs": {
"outputs": ["dist-cjs/**"],
"dependsOn": ["build:es"],
},
"build:es": {
// ^build:types is critical: without upstream .d.ts files, tsc cannot
// distinguish type-only re-exports from values, causing undefined exports.
"outputs": ["dist-es/**"],
"dependsOn": ["prebuild", "^build:types"],
},
"build:es:cjs": {
"outputs": ["dist-cjs/**", "dist-es/**"],
},
"build:types": {
"outputs": ["dist-types/**"],
"dependsOn": ["prebuild", "^build:types"],
},
"build:types:downlevel": {
"outputs": ["dist-types/ts3.4/**"],
// Depends on "build", not "build:types": "build" runs "build:types"
// internally (via concurrently), so depending on "build:types" here puts
// two independent producers of dist-types in the graph with no ordering
// between them. "build:types" starts with "premove dist-types", so it can
// wipe the directory just as downlevel-dts starts reading it.
"dependsOn": ["build"],
},
"test": {
"dependsOn": ["build", "^build"],
"cache": false,
},
"test:integration": {
"dependsOn": ["build", "^build"],
"cache": false,
},
"lint": {
"outputs": [],
},
"format": {
"outputs": [],
},
"clean": {
"cache": false,
},
"extract:docs": {
"dependsOn": ["build"],
"cache": false,
},
},
}