|
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 | | - |
25 | 1 | export type Task = { |
26 | 2 | /** |
27 | 3 | * The command to run for the task. |
@@ -60,6 +36,30 @@ export type Task = { |
60 | 36 | } |
61 | 37 | ); |
62 | 38 |
|
| 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 | + |
63 | 63 | export type RunConfig = { |
64 | 64 | /** |
65 | 65 | * Root-level cache configuration. |
|
0 commit comments