-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathturbo.json
More file actions
103 lines (103 loc) · 2.9 KB
/
Copy pathturbo.json
File metadata and controls
103 lines (103 loc) · 2.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"//#fmt": {
"cache": false
},
"build": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tsconfig.json",
"tsup.config.ts",
"package.json"
],
"outputs": ["dist/**"],
"env": ["FAST_BUILD", "SKIP_NAPI_BUILD", "SKIP_WASM_BUILD"]
},
"build:engine": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tsconfig.json",
"package.json"
],
"outputs": ["dist/**"],
"env": ["BASE_URL", "VITE_APP_*", "VITE_FEATURE_FLAGS"]
},
"build:inspector": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"vite.inspector.config.ts",
"tsconfig.json",
"package.json"
],
"outputs": ["dist/**"],
"env": ["VITE_APP_*", "VITE_DEPLOYMENT_TYPE"]
},
"build:inspector-ui": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"apps/inspector-ui/**",
"scripts/**",
"vite.inspector-ui.config.ts",
"tsconfig.json",
"package.json"
],
"outputs": ["dist/inspector-ui/**", "dist/inspector-tab/**"]
},
// Second native build pass for rivetkit-napi / rivetkit-wasm. Their
// build.rs embeds frontend/dist/inspector-ui via include_dir!, but the
// inspector UI is built downstream of these packages, so the first
// `build` pass embeds an empty bundle. This pass re-runs the native build
// after build:inspector-ui has produced the real assets. It is terminal
// (nothing depends on it), so it does not create a cycle. Scoped to the two
// embedding packages so it is not scheduled for the rest of the workspace.
// CAVEAT: running `build` for these packages WITHOUT build:embed (a partial
// build, --filter, downstream rebuild) relinks the binary with an empty
// inspector bundle -> /inspector/ui/* 404s with ui_asset_not_found. Always
// build via `pnpm -w build`, or re-run `... build:force` after a partial
// build. See .claude/reference/build-troubleshooting.md.
"@rivetkit/rivetkit-napi#build:embed": {
"dependsOn": ["build", "@rivetkit/engine-frontend#build:inspector-ui"],
"cache": false,
"env": ["FAST_BUILD", "SKIP_NAPI_BUILD"]
},
"@rivetkit/rivetkit-wasm#build:embed": {
"dependsOn": ["build", "@rivetkit/engine-frontend#build:inspector-ui"],
"cache": false,
"env": ["SKIP_WASM_BUILD"]
},
"build:ladle": {
"dependsOn": ["^build"],
"inputs": [
"src/**",
"tsconfig.json",
"package.json"
],
"outputs": ["build/**"]
},
"check-types": {
"inputs": [
"src/**",
"tests/**",
"tsconfig.json",
"tsup.config.ts",
"package.json"
],
"dependsOn": ["^build"]
},
"dev": {
// Both builds & checks types for this repo and all dependencies
//
// Build after checking types since check types will return errors faster
"dependsOn": ["^check-types", "check-types", "build"]
},
"test": {
"inputs": ["src/**", "tests/**", "package.json"],
"dependsOn": ["^build", "check-types"]
}
}
}