-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathturbo.json
More file actions
73 lines (73 loc) · 2.4 KB
/
Copy pathturbo.json
File metadata and controls
73 lines (73 loc) · 2.4 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
73
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"env": ["STASH_POSTHOG_KEY"]
},
"release": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"]
},
"dev": {
"cache": false,
"persistent": true
},
"test": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"cache": false
},
// `packages/bench`'s "build" is `tsc --noEmit` — a typecheck, not a bundle —
// so it emits nothing and the repo-wide `dist/**` would warn on every run.
"@cipherstash/bench#build": {
"dependsOn": ["^build"],
"outputs": []
},
// These two builds `cpSync('../../skills', 'dist/skills')` — they consume a
// directory OUTSIDE their own package, which `$TURBO_DEFAULT$` does not
// cover. Without naming it here a skills-only edit does not invalidate the
// build, and since `build` now declares `outputs: ["dist/**"]`, the cache
// hit actively RESTORES the previous `dist/skills`. `skills/` ships inside
// the `stash` and `@cipherstash/wizard` tarballs and is copied into
// customer repos by `stash init`, so that silently publishes stale guidance.
"stash#build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/skills/**", ".env*"],
"env": ["STASH_POSTHOG_KEY"]
},
"@cipherstash/wizard#build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/skills/**", ".env*"],
"env": ["STASH_POSTHOG_KEY"]
},
// Typechecks `packages/stack/dist-types` against the BUILT declarations, so
// it must run after `build` — unlike `test:types`, which reads source.
"test:types:dist": {
"dependsOn": ["build"],
"inputs": ["$TURBO_DEFAULT$"]
},
"typecheck": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$"]
},
"typecheck:scaffold": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$"]
},
"test:e2e": {
"dependsOn": ["^build", "build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"cache": false
},
"test:integration": {
"dependsOn": ["^build", "build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"cache": false
}
}
}