Skip to content

Commit 19277c0

Browse files
authored
Limit the cache inputs for the docs rss and schema tasks (vercel#4640)
1 parent 9270ef6 commit 19277c0

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

docs/turbo.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@
1414
"dependsOn": ["^build", "rss", "schema"]
1515
},
1616
"dev": {
17-
"dependsOn": ["schema"]
17+
"dependsOn": ["schema"],
18+
"persistent": true,
19+
"cache": false
1820
},
1921
"schema": {
22+
"inputs": [], // None of the files in this workspace matter
23+
"dependsOn": ["@turbo/types#topo"],
2024
"outputs": ["public/schema.json"]
2125
},
2226
"rss": {
27+
"inputs": ["pages/blog/**", "scripts/generate-rss.js"],
2328
"outputs": ["public/feed.xml"]
2429
}
2530
}

packages/turbo-types/turbo.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ["//"],
3+
"pipeline": {
4+
// This task exists so the docs workspace
5+
// can watch this workspace for file changes.
6+
"topo": {}
7+
}
8+
}

turbo.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"check-types": {
1919
"dependsOn": ["^build"]
2020
},
21-
"dev": {
22-
"cache": false
23-
},
2421
"//#build:ts": {
2522
"outputs": ["packages/**/dist"]
2623
},

0 commit comments

Comments
 (0)