Skip to content

Commit fa66df3

Browse files
authored
[chore] improve turbo config (#5461)
* [chore] improve turbo config * reduce outputs
1 parent 062f38e commit fa66df3

File tree

7 files changed

+33
-16
lines changed

7 files changed

+33
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"rollup": "^2.75.3",
4141
"svelte": "^3.48.0",
4242
"tiny-glob": "^0.2.9",
43-
"turbo": "^1.2.14",
43+
"turbo": "^1.3.1",
4444
"typescript": "^4.7.4"
4545
},
4646
"packageManager": "[email protected]",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.DS_Store
22
node_modules
3-
target
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/files
1+
/files

packages/adapter-netlify/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.DS_Store
22
node_modules
3-
/files
3+
/files

packages/adapter-vercel/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.DS_Store
2-
node_modules
2+
node_modules

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
"@sveltejs/kit#build": {
55
"dependsOn": ["^build"],
66
"inputs": ["src/**", "scripts/**", "types/**"],
7-
"outputs": ["dist/**", "docs/**", "assets/**"]
7+
"outputs": ["dist/**", "docs/**", "assets/**"],
8+
"outputMode": "new-only"
89
},
910
"kit.svelte.dev#build": {
1011
"dependsOn": ["^build", "$VERCEL", "$ENABLE_VC_BUILD"],
1112
"inputs": ["src/**", "../../packages/kit/docs/**", "../../documentation/**"],
12-
"outputs": [".vercel_build_output/**", ".vercel/output/**"]
13+
"outputs": [".vercel_build_output/**", ".vercel/output/**" ],
14+
"outputMode": "new-only"
1315
},
1416
"build": {
1517
"dependsOn": ["^build", "$VERCEL", "$ENABLE_VC_BUILD"],
@@ -20,7 +22,8 @@
2022
".svelte-kit/**",
2123
".vercel_build_output/**",
2224
".vercel/output/**"
23-
]
25+
],
26+
"outputMode": "new-only"
2427
},
2528
"check": {
2629
"dependsOn": ["prepare"],
@@ -31,31 +34,46 @@
3134
".custom-out-dir/types/**",
3235
".svelte-kit/tsconfig.json"
3336
],
34-
"outputs": []
37+
"outputs": [],
38+
"outputMode": "new-only"
39+
},
40+
"format": {
41+
"outputs": [
42+
"src/**",
43+
"scripts/**",
44+
"shared/**",
45+
"templates/**",
46+
"types/**"
47+
],
48+
"outputMode": "new-only"
3549
},
36-
"format": {},
3750
"prepare": {
3851
"inputs": ["src/**", "source/**"],
3952
"outputs": [
4053
".svelte-kit/types/**",
4154
".svelte-kit/tsconfig.json",
4255
".custom-out-dir/types/**",
4356
".custom-out-dir/tsconfig.json"
44-
]
57+
],
58+
"outputMode": "new-only"
4559
},
4660
"test": {
4761
"dependsOn": ["^build", "$CI", "$TURBO_CACHE_KEY"],
48-
"outputs": []
62+
"outputs": ["coverage/", "test-results/**"],
63+
"outputMode": "new-only"
4964
},
5065
"lint": {
51-
"outputs": []
66+
"outputs": [],
67+
"outputMode": "new-only"
5268
},
5369
"precommit": {
5470
"dependsOn": ["format", "lint"],
55-
"outputs": []
71+
"outputs": [],
72+
"outputMode": "new-only"
5673
},
5774
"dev": {
58-
"cache": false
75+
"cache": false,
76+
"outputMode": "new-only"
5977
}
6078
},
6179
"globalDependencies": [".eslintrc.json", ".prettierrc", "tsconfig.json"]

0 commit comments

Comments
 (0)