-
Notifications
You must be signed in to change notification settings - Fork 0
/
turbo.json
45 lines (45 loc) · 1.26 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
38
39
40
41
42
43
44
45
{
"$schema": "https://turbo.build/schema.json",
// I put this variable in globalEnv because frontend#build.env doesn't seem to work
// env probably doesn't work because turbo is replacing it with `VITE*` variables
// This still happens even with `--framework-inference=false` and `"env": ["SENTRY_AUTH_TOKEN", "CF_PAGES_BRANCH", "VITE_*"]`
"globalEnv": ["SENTRY_AUTH_TOKEN"],
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": ["dist/**"]
},
"frontend#build": {
"dependsOn": [
"^build"
],
"dotEnv": [".env"],
"outputs": ["dist/**"]
},
// Only backend needs the schema build, since frontend uses vite and will transpile the schema automatically
"@talkdash/backend#dev": {
"cache": false,
"persistent": true
},
"@talkdash/schema#dev": {
"cache": false,
"persistent": true
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"lint:fix": {},
"clean": {},
"db": {},
// only deploys backend
"deploy": {},
"deploy:staging": {}
// We don't want turbo to run tests for each package/app, since we're using vitest workspaces instead
// See https://vitest.dev/guide/workspace
// "test": {}
}
}