From bf84b8a03c008edf15c5b3a0d021f10ef8de8d5b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 21 May 2026 10:27:32 +0000 Subject: [PATCH] refactor(plan): remove unused ExecutionItemDisplay::and_item_index field The `and_item_index` field on `ExecutionItemDisplay` was only ever written, never read by any reporter or execution code. Remove it and regenerate the plan snapshots. The distinct `and_item_index` on `ExecutionCacheKey::UserTask` is part of the cache key and is unaffected. https://claude.ai/code/session_01LXLpjxLchyX5FyD8Fzmxqp --- crates/vite_task/src/session/reporter/mod.rs | 1 - crates/vite_task_plan/src/lib.rs | 4 ---- crates/vite_task_plan/src/plan.rs | 2 -- .../snapshots/query_tool_synthetic_task_in_user_task.jsonc | 1 - ...query___cache_does_not_override_per_task_cache_false.jsonc | 1 - .../snapshots/query___cache_enables_script_caching.jsonc | 1 - ..._enables_task_caching_even_when_cache_tasks_is_false.jsonc | 1 - ...che_on_task_with_per_task_cache_true_enables_caching.jsonc | 1 - .../snapshots/query___no_cache_disables_task_caching.jsonc | 1 - .../query___no_cache_overrides_per_task_cache_true.jsonc | 1 - ...aseline___tasks_not_cached_when_cache_tasks_is_false.jsonc | 1 - .../snapshots/query_echo_and_lint_with_extra_args.jsonc | 2 -- .../snapshots/query_lint_and_echo_with_extra_args.jsonc | 2 -- .../snapshots/query_normal_task_with_extra_args.jsonc | 1 - .../snapshots/query_synthetic_task_in_user_task.jsonc | 1 - .../query_synthetic_task_in_user_task_with_cwd.jsonc | 1 - .../query_synthetic_task_with_extra_args_in_user_task.jsonc | 1 - .../snapshots/query_script_not_cached_by_default.jsonc | 1 - .../snapshots/query_another_task_cached_by_default.jsonc | 1 - .../snapshots/query_script_not_cached_by_default.jsonc | 1 - .../snapshots/query_task_cached_by_default.jsonc | 1 - .../snapshots/query_cache_clean_in_script.jsonc | 1 - ..._task_cache_true_still_disabled_by_cache_tasks_false.jsonc | 1 - .../snapshots/query_script_not_cached.jsonc | 1 - .../query_task_not_cached_when_cache_tasks_is_false.jsonc | 1 - .../query_script_cached_when_global_cache_true.jsonc | 1 - .../snapshots/query_task_cached_when_global_cache_true.jsonc | 1 - ...ith_cache_false_not_cached_despite_global_cache_true.jsonc | 1 - ...d_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc | 1 - ...cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc | 2 -- .../query_extra_args_only_reach_requested_task.jsonc | 2 -- .../query_nested___cache_enables_inner_task_caching.jsonc | 2 -- .../query_nested___no_cache_disables_inner_task_caching.jsonc | 2 -- ...query_nested_run_without_flags_inherits_parent_cache.jsonc | 2 -- ...outer___cache_propagates_to_nested_run_without_flags.jsonc | 2 -- ...er___no_cache_does_not_propagate_into_nested___cache.jsonc | 2 -- ...er___no_cache_propagates_to_nested_run_without_flags.jsonc | 2 -- .../snapshots/query_cli_flag_overrides_env_var.jsonc | 3 --- .../query_concurrency_limit_with_explicit_value.jsonc | 3 --- .../snapshots/query_env_var_sets_concurrency.jsonc | 3 --- .../query_nested_with_explicit_concurrency_limit.jsonc | 4 ---- .../snapshots/query_parallel_with_concurrency_limit.jsonc | 3 --- .../snapshots/query_parallel_without_concurrency_limit.jsonc | 3 --- .../snapshots/query_build_runs_with_pre_hook_only.jsonc | 2 -- .../snapshots/query_extra_args_not_passed_to_hooks.jsonc | 3 --- ...ectly_expands_prepretest_but_not_when_called_as_hook.jsonc | 2 -- .../snapshots/query_test_runs_with_pre_and_post_hooks.jsonc | 3 --- .../query_test_runs_without_hooks_when_disabled.jsonc | 1 - ...tInHook_runs_when_scriptInHook_is_called_from_a_hook.jsonc | 4 ---- .../query_task_config_test_does_not_expand_pretest_hook.jsonc | 1 - .../snapshots/query_shell_fallback_for_pipe_command.jsonc | 1 - ...ent_cache_false_does_not_affect_expanded_query_tasks.jsonc | 2 -- ...cache_false_does_not_affect_expanded_synthetic_cache.jsonc | 2 -- ...ry_script_without_cache_scripts_defaults_to_no_cache.jsonc | 1 - .../query_task_untrackedEnv_inherited_by_synthetic.jsonc | 1 - ...query_task_with_cache_false_disables_synthetic_cache.jsonc | 1 - .../query_task_with_cache_true_enables_synthetic_cache.jsonc | 1 - .../snapshots/query_synthetic_in_subpackage.jsonc | 2 -- .../snapshots/query_dev_filter_from_root.jsonc | 1 - .../snapshots/query_dev_in_subpackage.jsonc | 1 - 60 files changed, 99 deletions(-) diff --git a/crates/vite_task/src/session/reporter/mod.rs b/crates/vite_task/src/session/reporter/mod.rs index d8ca219ac..8f7bc37b4 100644 --- a/crates/vite_task/src/session/reporter/mod.rs +++ b/crates/vite_task/src/session/reporter/mod.rs @@ -465,7 +465,6 @@ pub mod test_fixtures { ExecutionItemDisplay { task_display: test_task_display(name), command: name.into(), - and_item_index: None, cwd: test_path(), } } diff --git a/crates/vite_task_plan/src/lib.rs b/crates/vite_task_plan/src/lib.rs index 9fb00e8a8..49420ff9f 100644 --- a/crates/vite_task_plan/src/lib.rs +++ b/crates/vite_task_plan/src/lib.rs @@ -103,10 +103,6 @@ pub struct ExecutionItemDisplay { /// `SpawnExecution` contains the actual args for execution. pub command: Str, - /// The index of this execution item among all items in the task's command split by `&&`. - /// If the task's command doesn't have `&&`, this will be `None`. - pub and_item_index: Option, - /// The cwd when this execution item is planned. /// This is for displaying purpose only. /// diff --git a/crates/vite_task_plan/src/plan.rs b/crates/vite_task_plan/src/plan.rs index 89e892b48..c88846330 100644 --- a/crates/vite_task_plan/src/plan.rs +++ b/crates/vite_task_plan/src/plan.rs @@ -175,7 +175,6 @@ async fn plan_task_as_execution_node( } command }, - and_item_index: if and_item_count > 1 { Some(index) } else { None }, cwd: Arc::clone(&cwd), task_display: task_node.task_display.clone(), }; @@ -345,7 +344,6 @@ async fn plan_task_as_execution_node( let execution_item_display = ExecutionItemDisplay { command: command_str.into(), - and_item_index: None, cwd, task_display: task_node.task_display.clone(), }; diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc index 463724f0c..ffd56ab48 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "TEST_VAR=hello_world vt tool print-env TEST_VAR", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_does_not_override_per_task_cache_false.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_does_not_override_per_task_cache_false.jsonc index 07dd66eb5..bb9d9671d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_does_not_override_per_task_cache_false.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_does_not_override_per_task_cache_false.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file vite-task.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc index a5691b143..9d5653b82 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc index 30c866edb..a074d3e67 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc index 47e5b0324..dcaf06aef 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_disables_task_caching.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_disables_task_caching.jsonc index da3b00626..37297bd90 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_disables_task_caching.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_disables_task_caching.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_overrides_per_task_cache_true.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_overrides_per_task_cache_true.jsonc index 9c3872d57..6dbf1d3bc 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_overrides_per_task_cache_true.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___no_cache_overrides_per_task_cache_true.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query_baseline___tasks_not_cached_when_cache_tasks_is_false.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query_baseline___tasks_not_cached_when_cache_tasks_is_false.jsonc index 1516c9e6c..7d81e6372 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query_baseline___tasks_not_cached_when_cache_tasks_is_false.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query_baseline___tasks_not_cached_when_cache_tasks_is_false.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc index 48ad4b955..9a0bdf81d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo Linting", - "and_item_index": 0, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vt tool print lint --fix", - "and_item_index": 1, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc index 4ba219e17..2c3cf57c1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": 0, "cwd": "/" }, "kind": { @@ -89,7 +88,6 @@ "package_path": "/" }, "command": "echo 'Linting complete'", - "and_item_index": 1, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc index c838f9435..09d886a16 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file a.txt", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc index 4a8e20b3b..486ba4059 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc index 4a8e20b3b..486ba4059 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc index def52132d..c55f58cb4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint --fix", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/query_script_not_cached_by_default.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/query_script_not_cached_by_default.jsonc index e46b2615e..360075817 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/query_script_not_cached_by_default.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/query_script_not_cached_by_default.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc index ae61543a1..7290adb92 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_script_not_cached_by_default.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_script_not_cached_by_default.jsonc index 076a50b53..5bb293a90 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_script_not_cached_by_default.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_script_not_cached_by_default.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc index fd3f1f354..2c6b4fac5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/query_cache_clean_in_script.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/query_cache_clean_in_script.jsonc index d5aba2131..811d12fa6 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/query_cache_clean_in_script.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/query_cache_clean_in_script.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt cache clean", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_per_task_cache_true_still_disabled_by_cache_tasks_false.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_per_task_cache_true_still_disabled_by_cache_tasks_false.jsonc index 221ec75d6..9bbf68d92 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_per_task_cache_true_still_disabled_by_cache_tasks_false.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_per_task_cache_true_still_disabled_by_cache_tasks_false.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_script_not_cached.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_script_not_cached.jsonc index 80dd9519d..b5964a047 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_script_not_cached.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_script_not_cached.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_task_not_cached_when_cache_tasks_is_false.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_task_not_cached_when_cache_tasks_is_false.jsonc index 977c00581..bfa7d5d60 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_task_not_cached_when_cache_tasks_is_false.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/query_task_not_cached_when_cache_tasks_is_false.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc index 0e38dd63c..b30a9353f 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc index 88f1e516f..9bedda875 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_with_cache_false_not_cached_despite_global_cache_true.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_with_cache_false_not_cached_despite_global_cache_true.jsonc index d7fda6930..70e3c6fb2 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_with_cache_false_not_cached_despite_global_cache_true.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_with_cache_false_not_cached_despite_global_cache_true.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc index 93e467496..c520ea59e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": 1, "cwd": "/src" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc index 838e481e0..be8da5ff1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run build", - "and_item_index": 1, "cwd": "/src" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc index 65177af19..bd30bc241 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print build", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -105,7 +104,6 @@ "package_path": "/" }, "command": "vt tool print test some-filter", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc index 9b2bd1fc8..86f84738a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run --cache inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___no_cache_disables_inner_task_caching.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___no_cache_disables_inner_task_caching.jsonc index c6406c293..410704fce 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___no_cache_disables_inner_task_caching.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___no_cache_disables_inner_task_caching.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run --no-cache inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested_run_without_flags_inherits_parent_cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested_run_without_flags_inherits_parent_cache.jsonc index 0dbc26926..0c4251cb7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested_run_without_flags_inherits_parent_cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested_run_without_flags_inherits_parent_cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc index c069f63c4..67b355427 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc index 8d6f1a58a..b33ee27d7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run --cache inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_propagates_to_nested_run_without_flags.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_propagates_to_nested_run_without_flags.jsonc index f2df25d20..7a45f6f5e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_propagates_to_nested_run_without_flags.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_propagates_to_nested_run_without_flags.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run inner", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vtt print-file package.json", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_cli_flag_overrides_env_var.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_cli_flag_overrides_env_var.jsonc index 15ec91aff..f28f29041 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_cli_flag_overrides_env_var.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_cli_flag_overrides_env_var.jsonc @@ -36,7 +36,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -84,7 +83,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -132,7 +130,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_concurrency_limit_with_explicit_value.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_concurrency_limit_with_explicit_value.jsonc index d4cde4cb8..55ab25a34 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_concurrency_limit_with_explicit_value.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_concurrency_limit_with_explicit_value.jsonc @@ -36,7 +36,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -84,7 +83,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -132,7 +130,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_env_var_sets_concurrency.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_env_var_sets_concurrency.jsonc index 461648de4..6811d5025 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_env_var_sets_concurrency.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_env_var_sets_concurrency.jsonc @@ -36,7 +36,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -84,7 +83,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -132,7 +130,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_nested_with_explicit_concurrency_limit.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_nested_with_explicit_concurrency_limit.jsonc index f87679755..485cea7e9 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_nested_with_explicit_concurrency_limit.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_nested_with_explicit_concurrency_limit.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run -r --concurrency-limit 5 build", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -62,7 +61,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -110,7 +108,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -158,7 +155,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_with_concurrency_limit.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_with_concurrency_limit.jsonc index 59edd6ea2..db17c91a2 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_with_concurrency_limit.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_with_concurrency_limit.jsonc @@ -36,7 +36,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -79,7 +78,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -122,7 +120,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_without_concurrency_limit.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_without_concurrency_limit.jsonc index e5f3d2712..7835755a9 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_without_concurrency_limit.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/query_parallel_without_concurrency_limit.jsonc @@ -36,7 +36,6 @@ "package_path": "/packages/a" }, "command": "echo building a", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { @@ -79,7 +78,6 @@ "package_path": "/packages/b" }, "command": "echo building b", - "and_item_index": null, "cwd": "/packages/b" }, "kind": { @@ -122,7 +120,6 @@ "package_path": "/packages/c" }, "command": "echo building c", - "and_item_index": null, "cwd": "/packages/c" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_build_runs_with_pre_hook_only.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_build_runs_with_pre_hook_only.jsonc index fbd1810b2..be152e8c3 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_build_runs_with_pre_hook_only.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_build_runs_with_pre_hook_only.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo prebuild", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "echo build", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_extra_args_not_passed_to_hooks.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_extra_args_not_passed_to_hooks.jsonc index e36faefb0..f086d0ee1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_extra_args_not_passed_to_hooks.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_extra_args_not_passed_to_hooks.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo pretest", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "echo test --coverage", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -74,7 +72,6 @@ "package_path": "/" }, "command": "echo posttest", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_pretest_directly_expands_prepretest_but_not_when_called_as_hook.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_pretest_directly_expands_prepretest_but_not_when_called_as_hook.jsonc index 289d95d11..ee1c3279b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_pretest_directly_expands_prepretest_but_not_when_called_as_hook.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_pretest_directly_expands_prepretest_but_not_when_called_as_hook.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo prepretest", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "echo pretest", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_test_runs_with_pre_and_post_hooks.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_test_runs_with_pre_and_post_hooks.jsonc index 79d4daddd..c41cf8842 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_test_runs_with_pre_and_post_hooks.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/query_test_runs_with_pre_and_post_hooks.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo pretest", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "echo test", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -73,7 +71,6 @@ "package_path": "/" }, "command": "echo posttest", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/query_test_runs_without_hooks_when_disabled.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/query_test_runs_without_hooks_when_disabled.jsonc index 0e523757a..f5d883081 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/query_test_runs_without_hooks_when_disabled.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/query_test_runs_without_hooks_when_disabled.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo test", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/query_prescriptInHook_runs_when_scriptInHook_is_called_from_a_hook.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/query_prescriptInHook_runs_when_scriptInHook_is_called_from_a_hook.jsonc index f4da57c8b..a1355b785 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/query_prescriptInHook_runs_when_scriptInHook_is_called_from_a_hook.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/query_prescriptInHook_runs_when_scriptInHook_is_called_from_a_hook.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run scriptInHook", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "echo prescriptInHook", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -73,7 +71,6 @@ "package_path": "/" }, "command": "echo scriptInHook", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -108,7 +105,6 @@ "package_path": "/" }, "command": "echo test", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/query_task_config_test_does_not_expand_pretest_hook.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/query_task_config_test_does_not_expand_pretest_hook.jsonc index 4bbabc55c..e10b65ba7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/query_task_config_test_does_not_expand_pretest_hook.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/query_task_config_test_does_not_expand_pretest_hook.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo test-task", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc index 37f7a9b0f..18d471a58 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "echo hello | node -e \"process.stdin.pipe(process.stdout)\"", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc index e5fab7d13..aeecf7dfc 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run build", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc index 847792c4d..9faff6db5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run build", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_without_cache_scripts_defaults_to_no_cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_without_cache_scripts_defaults_to_no_cache.jsonc index c976fc3bc..bb69df1e4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_without_cache_scripts_defaults_to_no_cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_without_cache_scripts_defaults_to_no_cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc index 24c7eb377..b40c6ef5b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_false_disables_synthetic_cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_false_disables_synthetic_cache.jsonc index 851b5c945..f764e83eb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_false_disables_synthetic_cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_false_disables_synthetic_cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc index a96337e79..25f889c6e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc index 5e47fdc2c..e98570929 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc @@ -21,7 +21,6 @@ "package_path": "/" }, "command": "vt run a#lint", - "and_item_index": null, "cwd": "/" }, "kind": { @@ -47,7 +46,6 @@ "package_path": "/packages/a" }, "command": "vt tool print lint", - "and_item_index": null, "cwd": "/packages/a" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc index 175ac4e20..8f303b9fb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc @@ -21,7 +21,6 @@ "package_path": "/packages/foo" }, "command": "vite --port 3000", - "and_item_index": null, "cwd": "/packages/foo" }, "kind": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc b/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc index 2ce0827c1..5f23fd36c 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc @@ -21,7 +21,6 @@ "package_path": "/packages/foo" }, "command": "vite --port 3000", - "and_item_index": null, "cwd": "/packages/foo" }, "kind": {