Skip to content

Commit 7d9d18a

Browse files
committed
fix: regenerate TypeScript type definitions after cache config refactor
The cache configuration refactor in #191 added UserGlobalCacheConfig but didn't regenerate run-config.ts, causing the typescript_generation test to fail in CI. https://claude.ai/code/session_014eMPQ1Mw6EQpPkjkk1onsQ
1 parent 9ce14cf commit 7d9d18a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

crates/vite_task_graph/run-config.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
export type UserGlobalCacheConfig =
2-
| boolean
3-
| {
4-
/**
5-
* Enable caching for package.json scripts not defined in the `tasks` map.
6-
*
7-
* When `false`, package.json scripts will not be cached.
8-
* When `true`, package.json scripts will be cached with default settings.
9-
*
10-
* Default: `false`
11-
*/
12-
scripts?: boolean;
13-
/**
14-
* Global cache kill switch for task entries.
15-
*
16-
* When `false`, overrides all tasks to disable caching, even tasks with `cache: true`.
17-
* When `true`, respects each task's individual `cache` setting
18-
* (each task's `cache` defaults to `true` if omitted).
19-
*
20-
* Default: `true`
21-
*/
22-
tasks?: boolean;
23-
};
24-
251
export type Task = {
262
/**
273
* The command to run for the task.
@@ -60,6 +36,30 @@ export type Task = {
6036
}
6137
);
6238

39+
export type UserGlobalCacheConfig =
40+
| boolean
41+
| {
42+
/**
43+
* Enable caching for package.json scripts not defined in the `tasks` map.
44+
*
45+
* When `false`, package.json scripts will not be cached.
46+
* When `true`, package.json scripts will be cached with default settings.
47+
*
48+
* Default: `false`
49+
*/
50+
scripts?: boolean;
51+
/**
52+
* Global cache kill switch for task entries.
53+
*
54+
* When `false`, overrides all tasks to disable caching, even tasks with `cache: true`.
55+
* When `true`, respects each task's individual `cache` setting
56+
* (each task's `cache` defaults to `true` if omitted).
57+
*
58+
* Default: `true`
59+
*/
60+
tasks?: boolean;
61+
};
62+
6363
export type RunConfig = {
6464
/**
6565
* Root-level cache configuration.

0 commit comments

Comments
 (0)