Skip to content

Commit d9b1bd9

Browse files
committed
feat: add auto-generated header to run-config.ts
https://claude.ai/code/session_01VQvSgXNnYL8tNWydvtbCvg
1 parent b0f2f4b commit d9b1bd9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

crates/vite_task_graph/run-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This file is auto-generated by `cargo test`. Do not edit manually.
2+
13
export type Task = {
24
/**
35
* The command to run for the task.

crates/vite_task_graph/src/config/user.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,20 @@ impl UserRunConfig {
236236
Self::visit_dependencies(&mut collector);
237237

238238
// Sort declarations for deterministic output order
239-
collector.0.sort();
239+
collector.decls.sort();
240+
241+
// Header
242+
let mut types: String =
243+
"// This file is auto-generated by `cargo test`. Do not edit manually.\n\n".into();
240244

241245
// Export all types
242-
let mut types: String = collector
246+
let dep_types: String = collector
243247
.decls
244248
.iter()
245249
.map(|decl| vite_str::format!("export {decl}"))
246250
.collect::<Vec<_>>()
247251
.join("\n\n");
252+
types.push_str(&dep_types);
248253

249254
// Export the main type
250255
types.push_str("\n\nexport ");

0 commit comments

Comments
 (0)