|
1 | 1 | // This file is auto-generated by `cargo test`. Do not edit manually. |
2 | 2 |
|
3 | | -export type AutoInput = { |
4 | | - /** |
5 | | - * Automatically track which files the task reads |
6 | | - */ |
7 | | - auto: boolean; |
8 | | -}; |
| 3 | +export type AutoInput = { |
| 4 | +/** |
| 5 | + * Automatically track which files the task reads |
| 6 | + */ |
| 7 | +auto: boolean, }; |
9 | 8 |
|
10 | | -export type GlobWithBase = { |
11 | | - /** |
12 | | - * The glob pattern (positive or negative starting with `!`) |
13 | | - */ |
14 | | - pattern: string; |
15 | | - /** |
16 | | - * The base directory for resolving the pattern |
17 | | - */ |
18 | | - base: InputBase; |
19 | | -}; |
| 9 | +export type GlobWithBase = { |
| 10 | +/** |
| 11 | + * The glob pattern (positive or negative starting with `!`) |
| 12 | + */ |
| 13 | +pattern: string, |
| 14 | +/** |
| 15 | + * The base directory for resolving the pattern |
| 16 | + */ |
| 17 | +base: InputBase, }; |
20 | 18 |
|
21 | | -export type InputBase = 'package' | 'workspace'; |
| 19 | +export type InputBase = "package" | "workspace"; |
22 | 20 |
|
23 | | -export type Task = { |
24 | | - /** |
25 | | - * The command to run for the task. |
26 | | - */ |
27 | | - command: string; |
28 | | - /** |
29 | | - * The working directory for the task, relative to the package root (not workspace root). |
30 | | - */ |
31 | | - cwd?: string; |
32 | | - /** |
33 | | - * Dependencies of this task. Use `package-name#task-name` to refer to tasks in other packages. |
34 | | - */ |
35 | | - dependsOn?: Array<string>; |
36 | | -} & ( |
37 | | - | { |
38 | | - /** |
39 | | - * Whether to cache the task |
40 | | - */ |
41 | | - cache?: true; |
42 | | - /** |
43 | | - * Environment variable names to be fingerprinted and passed to the task. |
44 | | - */ |
45 | | - env?: Array<string>; |
46 | | - /** |
47 | | - * Environment variable names to be passed to the task without fingerprinting. |
48 | | - */ |
49 | | - untrackedEnv?: Array<string>; |
50 | | - /** |
51 | | - * Files to include in the cache fingerprint. |
52 | | - * |
53 | | - * - Omitted: automatically tracks which files the task reads |
54 | | - * - `[]` (empty): disables file tracking entirely |
55 | | - * - Glob patterns (e.g. `"src/**"`) select specific files, relative to the package directory |
56 | | - * - `{pattern: "...", base: "workspace" | "package"}` specifies a glob with an explicit base directory |
57 | | - * - `{auto: true}` enables automatic file tracking |
58 | | - * - Negative patterns (e.g. `"!dist/**"`) exclude matched files |
59 | | - */ |
60 | | - input?: Array<string | GlobWithBase | AutoInput>; |
61 | | - } |
62 | | - | { |
63 | | - /** |
64 | | - * Whether to cache the task |
65 | | - */ |
66 | | - cache: false; |
67 | | - } |
68 | | -); |
| 21 | +export type Task = { |
| 22 | +/** |
| 23 | + * The command to run for the task. |
| 24 | + */ |
| 25 | +command: string, |
| 26 | +/** |
| 27 | + * The working directory for the task, relative to the package root (not workspace root). |
| 28 | + */ |
| 29 | +cwd?: string, |
| 30 | +/** |
| 31 | + * Dependencies of this task. Use `package-name#task-name` to refer to tasks in other packages. |
| 32 | + */ |
| 33 | +dependsOn?: Array<string>, } & ({ |
| 34 | +/** |
| 35 | + * Whether to cache the task |
| 36 | + */ |
| 37 | +cache?: true, |
| 38 | +/** |
| 39 | + * Environment variable names to be fingerprinted and passed to the task. |
| 40 | + */ |
| 41 | +env?: Array<string>, |
| 42 | +/** |
| 43 | + * Environment variable names to be passed to the task without fingerprinting. |
| 44 | + */ |
| 45 | +untrackedEnv?: Array<string>, |
| 46 | +/** |
| 47 | + * Files to include in the cache fingerprint. |
| 48 | + * |
| 49 | + * - Omitted: automatically tracks which files the task reads |
| 50 | + * - `[]` (empty): disables file tracking entirely |
| 51 | + * - Glob patterns (e.g. `"src/**"`) select specific files, relative to the package directory |
| 52 | + * - `{pattern: "...", base: "workspace" | "package"}` specifies a glob with an explicit base directory |
| 53 | + * - `{auto: true}` enables automatic file tracking |
| 54 | + * - Negative patterns (e.g. `"!dist/**"`) exclude matched files |
| 55 | + */ |
| 56 | +input?: Array<string | GlobWithBase | AutoInput>, } | { |
| 57 | +/** |
| 58 | + * Whether to cache the task |
| 59 | + */ |
| 60 | +cache: false, }); |
69 | 61 |
|
70 | 62 | export type UserGlobalCacheConfig = boolean | { |
71 | 63 | /** |
|
0 commit comments