Skip to content

Commit f5e0680

Browse files
branchseerclaude
andcommitted
Fix rustdoc HTML tags and regenerate run-config.ts
- Fix rustdoc: escape <dir>, <prefix>, <count>, <code> in vtt barrier doc comment to prevent "unclosed HTML tag" errors (rustdoc treats these as HTML tags with -D warnings) - Regenerate run-config.ts in raw ts-rs format to match generate_ts_definition() output after oxfmt was removed in 6fdff86 (removing oxfmt changed the format but the file wasn't updated to match) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent dce84cf commit f5e0680

File tree

2 files changed

+61
-69
lines changed

2 files changed

+61
-69
lines changed

crates/vite_task_bin/src/vtt.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ fn main() {
4444
}
4545
}
4646

47-
/// barrier <dir> <prefix> <count> [--exit=<code>] [--hang] [--daemonize]
47+
/// barrier `<dir>` `<prefix>` `<count>` \[--exit=`<code>`\] \[--hang\] \[--daemonize\]
4848
///
4949
/// Cross-platform concurrency barrier for testing.
50-
/// Creates <dir>/<prefix>_<pid>, then polls until <count> files matching
51-
/// <prefix>_* exist in <dir>.
50+
/// Creates `<dir>/<prefix>_<pid>`, then polls until `<count>` files matching
51+
/// `<prefix>_*` exist in `<dir>`.
5252
///
5353
/// Options:
54-
/// --exit=<code> Exit with the given code after the barrier is met.
55-
/// --hang Keep process alive after the barrier (for kill tests).
56-
/// --daemonize Close stdout/stderr but keep process alive (for daemon kill tests).
54+
/// - `--exit=<code>`: Exit with the given code after the barrier is met.
55+
/// - `--hang`: Keep process alive after the barrier (for kill tests).
56+
/// - `--daemonize`: Close stdout/stderr but keep process alive (for daemon kill tests).
5757
fn cmd_barrier(args: &[String]) -> Result<(), Box<dyn std::error::Error>> {
5858
let mut positional: Vec<&str> = Vec::new();
5959
let mut exit_code: i32 = 0;

crates/vite_task_graph/run-config.ts

Lines changed: 55 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,63 @@
11
// This file is auto-generated by `cargo test`. Do not edit manually.
22

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, };
98

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, };
2018

21-
export type InputBase = 'package' | 'workspace';
19+
export type InputBase = "package" | "workspace";
2220

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, });
6961

7062
export type UserGlobalCacheConfig = boolean | {
7163
/**

0 commit comments

Comments
 (0)