From a86241c8df722e82b6e810259bdd4d5b51358873 Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 12 Mar 2026 10:57:22 +0800 Subject: [PATCH 1/4] refactor: rename binary `vp` to `vt` and make program name configurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename binary from `vp` to `vt` in Cargo.toml - Support both `vp` and `vt` (and `vpr` shorthand) in nested scripts for backward compatibility - Rename `SessionCallbacks` → `SessionConfig` with a `program_name: Str` field, making all libraries agnostic about the program name - Add `program_name` to `LabeledReporterBuilder`/`LabeledGraphReporter` and thread it through to `format_compact_summary` so summary output shows the correct binary name - Rename `OwnedSessionCallbacks` → `OwnedSessionConfig` and `as_callbacks()` → `as_config()` - Update all test fixtures, snapshots, and CLAUDE.md to use `vt` --- CLAUDE.md | 20 ++--- crates/vite_task/src/lib.rs | 2 +- crates/vite_task/src/session/mod.rs | 21 +++-- .../vite_task/src/session/reporter/labeled.rs | 10 ++- .../vite_task/src/session/reporter/summary.rs | 10 ++- crates/vite_task_bin/Cargo.toml | 2 +- crates/vite_task_bin/src/lib.rs | 19 +++-- crates/vite_task_bin/src/main.rs | 6 +- .../associate-existing-cache/snapshots.toml | 6 +- .../snapshots/associate existing cache.snap | 8 +- .../builtin-different-cwd/package.json | 2 +- .../builtin-different-cwd/snapshots.toml | 8 +- .../snapshots/builtin different cwd.snap | 20 ++--- .../builtin-non-zero-exit/package.json | 2 +- .../builtin-non-zero-exit/snapshots.toml | 4 +- ... exit does not show cache not updated.snap | 8 +- .../fixtures/cache-disabled/snapshots.toml | 8 +- .../snapshots/task with cache disabled.snap | 4 +- .../snapshots/task with cache enabled.snap | 6 +- .../cache-miss-command-change/snapshots.toml | 6 +- .../snapshots/cache miss command change.snap | 12 +-- .../cache-miss-reasons/snapshots.toml | 44 +++++----- .../snapshots/cwd changed.snap | 4 +- .../snapshots/env added.snap | 4 +- .../snapshots/env removed.snap | 4 +- .../snapshots/env value changed.snap | 4 +- .../snapshots/glob input changes.snap | 8 +- .../snapshots/inferred input changes.snap | 8 +- .../snapshots/input config changed.snap | 4 +- .../snapshots/untracked env added.snap | 4 +- .../snapshots/untracked env removed.snap | 4 +- .../fixtures/cache-subcommand/snapshots.toml | 8 +- .../snapshots/cache clean.snap | 10 +-- .../fixtures/colon-in-name/snapshots.toml | 4 +- .../read file with colon in name.snap | 6 +- .../fixtures/e2e-env-test/package.json | 2 +- .../fixtures/e2e-env-test/snapshots.toml | 6 +- ...est prints value from additional_envs.snap | 4 +- .../env-test with different values.snap | 8 +- .../fixtures/e2e-lint-cache/package.json | 2 +- .../fixtures/e2e-lint-cache/snapshots.toml | 4 +- .../e2e-lint-cache/snapshots/direct lint.snap | 8 +- .../error_cycle_dependency/snapshots.toml | 2 +- .../snapshots/cycle dependency error.snap | 2 +- .../fixtures/exec-api/package.json | 2 +- .../fixtures/exec-api/snapshots.toml | 8 +- .../exec-api/snapshots/exec caching.snap | 6 +- .../exec not triggered from script.snap | 4 +- .../fixtures/exit-codes/snapshots.toml | 4 +- ...ple task failures returns exit code 1.snap | 4 +- ...e task failure returns task exit code.snap | 2 +- .../fixtures/filter-unmatched/snapshots.toml | 12 +-- ...e unmatched filters warn individually.snap | 2 +- ...tial match warns for unmatched filter.snap | 2 +- .../unmatched directory filter warns.snap | 2 +- ...atched exclusion filter does not warn.snap | 2 +- .../unmatched glob filter warns.snap | 2 +- ...plit filter warns for unmatched token.snap | 2 +- .../fixtures/glob-base-test/snapshots.toml | 32 ++++---- .../root glob - matches src files.snap | 4 +- ...ckage path unmatched by relative glob.snap | 6 +- .../root glob - unmatched directory.snap | 6 +- ...wd - glob relative to package not cwd.snap | 4 +- ...bpackage glob - matches own src files.snap | 4 +- ... root path unmatched by relative glob.snap | 6 +- ...b - unmatched directory in subpackage.snap | 6 +- ...wd - glob relative to package not cwd.snap | 4 +- .../snapshots.toml | 8 +- .../individual cache for extra args.snap | 12 +-- .../individual-cache-for-env/snapshots.toml | 8 +- .../snapshots/individual cache for env.snap | 12 +-- .../fixtures/input-cache-test/snapshots.toml | 82 +++++++++---------- ...nly - hit on non-inferred file change.snap | 6 +- ...o only - miss on inferred file change.snap | 4 +- ...ative - hit on excluded inferred file.snap | 6 +- ... - miss on non-excluded inferred file.snap | 4 +- ...mpty input - hit despite file changes.snap | 6 +- .../empty input - miss on command change.snap | 4 +- ...pite file changes and folder deletion.snap | 10 +-- ...input - hit on file outside directory.snap | 6 +- ...iss on direct and nested file changes.snap | 8 +- ... not set when auto inference disabled.snap | 2 +- ...env - set when auto inference enabled.snap | 2 +- ... auto negative - hit on excluded file.snap | 6 +- ...negative - miss on explicit glob file.snap | 4 +- ...auto negative - miss on inferred file.snap | 4 +- ...lobs - hit on read but unmatched file.snap | 6 +- ... globs only - cache hit on second run.snap | 6 +- ...s only - hit on unmatched file change.snap | 6 +- ...bs only - miss on matched file change.snap | 4 +- ...negative globs - hit on excluded file.snap | 6 +- ...ive globs - miss on non-excluded file.snap | 4 +- .../input-glob-meta-in-path/snapshots.toml | 6 +- .../cache hit then miss on file change.snap | 8 +- .../snapshots.toml | 32 ++++---- ...hit on excluded sibling inferred file.snap | 6 +- ...on non-excluded sibling inferred file.snap | 4 +- ...e glob - hit on unmatched file change.snap | 6 +- ...ve glob - miss on sibling file change.snap | 4 +- ...gative - hit on excluded sibling file.snap | 6 +- ...e - miss on non-excluded sibling file.snap | 4 +- ...ative - hit on excluded inferred file.snap | 6 +- ... - miss on non-excluded inferred file.snap | 4 +- .../fixtures/lint-dot-git/package.json | 2 +- .../fixtures/lint-dot-git/snapshots.toml | 4 +- .../lint-dot-git/snapshots/lint dot git.snap | 10 +-- .../snapshots.toml | 6 +- .../replay logs chronological order.snap | 10 +-- .../shared-caching-input/snapshots.toml | 8 +- .../snapshots/shared caching input.snap | 12 +-- .../fixtures/signal-exit/snapshots.toml | 2 +- ...nated task returns non-zero exit code.snap | 2 +- .../fixtures/stdin-inheritance/snapshots.toml | 6 +- .../multiple tasks get null stdin.snap | 4 +- .../single task no cache inherits stdin.snap | 2 +- ...ingle task with cache gets null stdin.snap | 2 +- .../fixtures/stdio-detection/snapshots.toml | 16 ++-- .../multiple tasks, cache disabled.snap | 4 +- .../snapshots/multiple tasks, cache hit.snap | 8 +- .../snapshots/multiple tasks, cache miss.snap | 4 +- .../single task, cache disabled.snap | 2 +- .../snapshots/single task, cache hit.snap | 6 +- .../snapshots/single task, cache miss.snap | 2 +- .../packages/other/vite-task.json | 2 +- .../stdio-graph-criteria/snapshots.toml | 4 +- ...es piped for nested single-node graph.snap | 4 +- ...it even with multi-node sibling graph.snap | 4 +- .../stdio-graph-criteria/vite-task.json | 4 +- .../fixtures/summary-output/snapshots.toml | 30 +++---- ...er multi task run shows saved summary.snap | 6 +- ...details after run shows saved summary.snap | 4 +- ...ails with no previous run shows error.snap | 2 +- ... all cache miss shows compact summary.snap | 4 +- ...multi task verbose shows full summary.snap | 2 +- ...se with cache hits shows full summary.snap | 6 +- ...with cache hits shows compact summary.snap | 8 +- ... task cache hit shows compact summary.snap | 6 +- ...ngle task cache miss shows no summary.snap | 2 +- ...ingle task verbose shows full summary.snap | 2 +- .../fixtures/task-list/snapshots.toml | 8 +- .../list tasks from package dir.snap | 4 +- .../list tasks from workspace root.snap | 4 +- ...n in script.snap => vt run in script.snap} | 8 +- .../fixtures/task-list/vite-task.json | 2 +- .../task-no-trailing-newline/snapshots.toml | 2 +- .../snapshots/no trailing newline.snap | 4 +- .../task-select-truncate/snapshots.toml | 2 +- .../interactive long command truncated.snap | 2 +- .../fixtures/task-select/snapshots.toml | 42 +++++----- ...ve enter with no results does nothing.snap | 2 +- .../interactive escape clears query.snap | 2 +- .../interactive scroll long list.snap | 2 +- ...interactive search other package task.snap | 2 +- ...earch preserves rating within package.snap | 4 +- .../interactive search then select.snap | 2 +- ...active search with hash skips reorder.snap | 2 +- ...interactive select from other package.snap | 2 +- .../interactive select task from lib.snap | 2 +- .../snapshots/interactive select task.snap | 2 +- .../interactive select with typo.snap | 2 +- .../non-interactive did you mean.snap | 2 +- .../non-interactive list tasks from lib.snap | 4 +- .../snapshots/non-interactive list tasks.snap | 4 +- .../non-interactive no suggestions.snap | 2 +- ...non-interactive recursive typo errors.snap | 2 +- .../recursive without task errors.snap | 2 +- .../snapshots/transitive typo errors.snap | 2 +- ...ypo in task script fails without list.snap | 4 +- .../verbose with typo enters selector.snap | 2 +- .../verbose without task errors.snap | 2 +- .../fixtures/task-select/vite-task.json | 2 +- .../snapshots.toml | 6 +- ...d runs dependencies before dependents.snap | 4 +- ... build from app runs all dependencies.snap | 4 +- ...d from lib runs only its dependencies.snap | 4 +- .../fixtures/vite-task-smoke/snapshots.toml | 4 +- .../cache hit after file modification.snap | 8 +- .../package.json | 2 +- .../snapshots.toml | 14 ++-- ...oot prunes root from nested expansion.snap | 4 +- ...rsive build skips root self-reference.snap | 4 +- .../vite_task_bin/tests/e2e_snapshots/main.rs | 34 ++++---- .../fixtures/additional-env/package.json | 2 +- ... env-test synthetic task in user task.snap | 2 +- .../additional-env/snapshots/task graph.snap | 2 +- ...ery - --cache and --no-cache conflict.snap | 2 +- .../fixtures/cache-keys/package.json | 6 +- .../fixtures/cache-keys/snapshots.toml | 4 +- ...query - echo and lint with extra args.snap | 2 +- ...query - lint and echo with extra args.snap | 2 +- ... synthetic task in user task with cwd.snap | 2 +- .../query - synthetic task in user task.snap | 2 +- ...tic task with extra args in user task.snap | 2 +- .../cache-keys/snapshots/task graph.snap | 6 +- .../cache-subcommand/node_modules/.bin/vp | 2 - .../cache-subcommand/node_modules/.bin/vp.cmd | 2 - .../fixtures/cache-subcommand/package.json | 2 +- .../query - cache clean in script.snap | 4 +- .../snapshots/task graph.snap | 2 +- .../fixtures/cd-in-scripts/package.json | 4 +- .../fixtures/cd-in-scripts/snapshots.toml | 6 +- ... should put synthetic task under cwd.snap} | 2 +- ... should not affect expanded task cwd.snap} | 2 +- .../cd-in-scripts/snapshots/task graph.snap | 4 +- .../packages/app/package.json | 2 +- .../fixtures/filter-workspace/snapshots.toml | 4 +- ... nested vt run with filter in script.snap} | 0 .../snapshots/task graph.snap | 2 +- .../nested-cache-override/package.json | 6 +- .../nested-cache-override/snapshots.toml | 8 +- ...ed --cache enables inner task caching.snap | 2 +- ...-no-cache disables inner task caching.snap | 2 +- ...n without flags inherits parent cache.snap | 2 +- ...ropagates to nested run without flags.snap | 2 +- ...oes not propagate into nested --cache.snap | 2 +- ...ropagates to nested run without flags.snap | 2 +- .../snapshots/task graph.snap | 6 +- .../fixtures/nested-tasks/package.json | 2 +- .../fixtures/nested-tasks/snapshots.toml | 4 +- ...vp run.snap => query - nested vt run.snap} | 0 .../nested-tasks/snapshots/task graph.snap | 2 +- .../synthetic-cache-disabled/package.json | 4 +- ... does not affect expanded query tasks.snap | 4 +- ...s not affect expanded synthetic cache.snap | 4 +- ...ut cache.scripts defaults to no cache.snap | 2 +- ...k untrackedEnv inherited by synthetic.snap | 2 +- ... cache false disables synthetic cache.snap | 2 +- ...th cache true enables synthetic cache.snap | 2 +- .../snapshots/task graph.snap | 14 ++-- .../synthetic-cache-disabled/vite-task.json | 10 +-- .../synthetic-in-subpackage/package.json | 2 +- .../packages/a/package.json | 2 +- .../query - synthetic-in-subpackage.snap | 4 +- .../snapshots/task graph.snap | 4 +- .../fixtures/vpr-shorthand/snapshots.toml | 2 +- ...nap => query - vpr expands to vt run.snap} | 0 .../workspace-root-cd-no-skip/package.json | 2 +- .../workspace-root-cd-no-skip/snapshots.toml | 4 +- .../snapshots/task graph.snap | 2 +- .../snapshots.toml | 2 +- .../snapshots/task graph.snap | 2 +- .../vite-task.json | 2 +- .../workspace-root-multi-command/package.json | 2 +- .../snapshots.toml | 4 +- .../snapshots/task graph.snap | 2 +- .../package.json | 4 +- .../snapshots.toml | 2 +- .../query - mutual recursion error.snap | 2 +- .../snapshots/task graph.snap | 4 +- .../package.json | 2 +- .../snapshots.toml | 10 +-- .../snapshots/task graph.snap | 2 +- .../tests/plan_snapshots/main.rs | 8 +- 253 files changed, 716 insertions(+), 706 deletions(-) rename crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/{vp run in script.snap => vt run in script.snap} (83%) delete mode 100755 crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp delete mode 100644 crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp.cmd rename crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/{query - cd before vp lint should put synthetic task under cwd.snap => query - cd before vt lint should put synthetic task under cwd.snap} (98%) rename crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/{query - cd before vp run should not affect expanded task cwd.snap => query - cd before vt run should not affect expanded task cwd.snap} (99%) rename crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/{query - nested vp run with filter in script.snap => query - nested vt run with filter in script.snap} (100%) rename crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/{query - nested vp run.snap => query - nested vt run.snap} (100%) rename crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/{query - vpr expands to vp run.snap => query - vpr expands to vt run.snap} (100%) diff --git a/CLAUDE.md b/CLAUDE.md index 37d6bb06..caa85995 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -74,19 +74,19 @@ Test fixtures and snapshots: ```bash # Run a task defined in vite-task.json -vp run # run task in current package -vp run # # run task in specific package -vp run -r # run task in all packages (recursive) -vp run -t # run task in current package + transitive deps -vp run -- --extra --args # pass extra args to the task command -vp run # interactive task selector (fuzzy search) +vt run # run task in current package +vt run # # run task in specific package +vt run -r # run task in all packages (recursive) +vt run -t # run task in current package + transitive deps +vt run -- --extra --args # pass extra args to the task command +vt run # interactive task selector (fuzzy search) # Built-in commands (run tools from node_modules/.bin) -vp test [args...] # run vitest -vp lint [args...] # run oxlint +vt test [args...] # run vitest +vt lint [args...] # run oxlint # Cache management -vp cache clean # remove the cache database +vt cache clean # remove the cache database # Package selection flags -r, --recursive # select all packages in the workspace @@ -113,7 +113,7 @@ vp cache clean # remove the cache database ## Key Architecture - **vite_task** - Main task runner with caching and session management -- **vite_task_bin** - CLI binary (`vp` command) and task synthesizer +- **vite_task_bin** - CLI binary (`vt` command) and task synthesizer - **vite_task_graph** - Task dependency graph construction and config loading - **vite_task_plan** - Execution planning (resolves env vars, working dirs, commands) - **vite_workspace** - Workspace detection and package dependency graph diff --git a/crates/vite_task/src/lib.rs b/crates/vite_task/src/lib.rs index 41e7c04b..a20687c3 100644 --- a/crates/vite_task/src/lib.rs +++ b/crates/vite_task/src/lib.rs @@ -5,7 +5,7 @@ pub mod session; // Public exports for vite_task_bin pub use cli::{CacheSubcommand, Command, RunCommand, RunFlags}; -pub use session::{CommandHandler, ExitStatus, HandledCommand, Session, SessionCallbacks}; +pub use session::{CommandHandler, ExitStatus, HandledCommand, Session, SessionConfig}; pub use vite_task_graph::{ config::{ self, diff --git a/crates/vite_task/src/session/mod.rs b/crates/vite_task/src/session/mod.rs index 9b3f3a05..275efac2 100644 --- a/crates/vite_task/src/session/mod.rs +++ b/crates/vite_task/src/session/mod.rs @@ -79,9 +79,10 @@ impl TaskGraphLoader for LazyTaskGraph<'_> { } } -pub struct SessionCallbacks<'a> { +pub struct SessionConfig<'a> { pub command_handler: &'a mut (dyn CommandHandler + 'a), pub user_config_loader: &'a mut (dyn UserConfigLoader + 'a), + pub program_name: Str, } /// The result of a [`CommandHandler::handle_command`] call. @@ -162,8 +163,10 @@ pub struct Session<'a> { plan_request_parser: PlanRequestParser<'a>, + program_name: Str, + /// Cache is lazily initialized to avoid `SQLite` race conditions when multiple - /// processes (e.g., parallel `vp lib` commands) start simultaneously. + /// processes (e.g., parallel `vt lib` commands) start simultaneously. cache: OnceCell, cache_path: AbsolutePathBuf, } @@ -185,11 +188,11 @@ impl<'a> Session<'a> { /// Returns an error if the current directory cannot be determined or /// if workspace initialization fails. #[tracing::instrument(level = "debug", skip_all)] - pub fn init(callbacks: SessionCallbacks<'a>) -> anyhow::Result { + pub fn init(config: SessionConfig<'a>) -> anyhow::Result { let envs = std::env::vars_os() .map(|(k, v)| (Arc::::from(k.as_os_str()), Arc::::from(v.as_os_str()))) .collect(); - Self::init_with(envs, vite_path::current_dir()?.into(), callbacks) + Self::init_with(envs, vite_path::current_dir()?.into(), config) } /// Ensures the task graph is loaded, loading it if necessary. @@ -221,7 +224,7 @@ impl<'a> Session<'a> { pub fn init_with( mut envs: FxHashMap, Arc>, cwd: Arc, - callbacks: SessionCallbacks<'a>, + config: SessionConfig<'a>, ) -> anyhow::Result { let (workspace_root, _) = find_workspace_root(&cwd)?; let cache_path = get_cache_path_of_workspace(&workspace_root.path); @@ -235,11 +238,12 @@ impl<'a> Session<'a> { workspace_path: Arc::clone(&workspace_root.path), lazy_task_graph: LazyTaskGraph::Uninitialized { workspace_root, - config_loader: callbacks.user_config_loader, + config_loader: config.user_config_loader, }, envs: Arc::new(envs), cwd, - plan_request_parser: PlanRequestParser { command_handler: callbacks.command_handler }, + plan_request_parser: PlanRequestParser { command_handler: config.command_handler }, + program_name: config.program_name, cache: OnceCell::new(), cache_path, }) @@ -317,6 +321,7 @@ impl<'a> Session<'a> { Box::new(tokio::io::stdout()), run_command.flags.verbose, Some(self.make_summary_writer()), + self.program_name.clone(), ); self.execute_graph(graph, Box::new(builder)).await.map_err(SessionError::EarlyExit) } @@ -688,7 +693,7 @@ impl<'a> Session<'a> { Err(error) => { return Err(vite_task_plan::Error::ParsePlanRequest { error: error.into(), - program: Str::from("vp"), + program: self.program_name.clone(), args: Arc::default(), cwd: Arc::clone(&cwd), }); diff --git a/crates/vite_task/src/session/reporter/labeled.rs b/crates/vite_task/src/session/reporter/labeled.rs index bbd5dae5..15e95b24 100644 --- a/crates/vite_task/src/session/reporter/labeled.rs +++ b/crates/vite_task/src/session/reporter/labeled.rs @@ -59,6 +59,7 @@ pub struct LabeledReporterBuilder { /// Callback to persist the summary (e.g., write `last-summary.json`). /// `None` when persistence is not needed (e.g., nested script execution, tests). write_summary: Option, + program_name: Str, } impl LabeledReporterBuilder { @@ -68,13 +69,15 @@ impl LabeledReporterBuilder { /// - `writer`: Async writer for reporter display output. /// - `show_details`: Whether to render the full detailed summary. /// - `write_summary`: Callback to persist the summary, or `None` to skip. + /// - `program_name`: The CLI binary name (e.g. `"vt"`) used in summary output. pub fn new( workspace_path: Arc, writer: Box, show_details: bool, write_summary: Option, + program_name: Str, ) -> Self { - Self { workspace_path, writer, show_details, write_summary } + Self { workspace_path, writer, show_details, write_summary, program_name } } } @@ -87,6 +90,7 @@ impl GraphExecutionReporterBuilder for LabeledReporterBuilder { workspace_path: self.workspace_path, show_details: self.show_details, write_summary: self.write_summary, + program_name: self.program_name, }) } } @@ -101,6 +105,7 @@ pub struct LabeledGraphReporter { workspace_path: Arc, show_details: bool, write_summary: Option, + program_name: Str, } #[async_trait::async_trait(?Send)] @@ -177,7 +182,7 @@ impl GraphExecutionReporter for LabeledGraphReporter { let summary_buf = if self.show_details { format_full_summary(&summary) } else { - format_compact_summary(&summary) + format_compact_summary(&summary, &self.program_name) }; // Persist summary via callback (best-effort, callback handles errors). @@ -331,6 +336,7 @@ mod tests { Box::new(tokio::io::sink()), false, None, + Str::from("vt"), )); let mut reporter = builder.build(); reporter.new_leaf_execution(display, leaf_kind, all_ancestors_single_node) diff --git a/crates/vite_task/src/session/reporter/summary.rs b/crates/vite_task/src/session/reporter/summary.rs index 855ddb3a..05e82130 100644 --- a/crates/vite_task/src/session/reporter/summary.rs +++ b/crates/vite_task/src/session/reporter/summary.rs @@ -666,7 +666,7 @@ pub fn format_full_summary(summary: &LastRunSummary) -> Vec { /// - Single task + cache hit → thin line + "vp run: cache hit, {duration} saved." /// - Multi-task → thin line + "vp run: {hits}/{total} cache hit ({rate}%), {duration} saved." /// with optional failure count and `--verbose` hint. -pub fn format_compact_summary(summary: &LastRunSummary) -> Vec { +pub fn format_compact_summary(summary: &LastRunSummary, program_name: &str) -> Vec { let stats = SummaryStats::compute(&summary.tasks); let is_single_task = summary.tasks.len() == 1; @@ -681,13 +681,14 @@ pub fn format_compact_summary(summary: &LastRunSummary) -> Vec { // Thin line separator let _ = writeln!(buf, "{}", "---".style(Style::new().bright_black())); + let run_label = vite_str::format!("{program_name} run:"); if is_single_task { // Single task cache hit let formatted_total_saved = format_summary_duration(stats.total_saved); let _ = writeln!( buf, "{} cache hit, {} saved.", - "vp run:".style(Style::new().blue().bold()), + run_label.as_str().style(Style::new().blue().bold()), formatted_total_saved.style(Style::new().green().bold()), ); } else { @@ -709,7 +710,7 @@ pub fn format_compact_summary(summary: &LastRunSummary) -> Vec { let _ = write!( buf, "{} {hits}/{total} cache hit ({rate}%)", - "vp run:".style(Style::new().blue().bold()), + run_label.as_str().style(Style::new().blue().bold()), ); if stats.total_saved > Duration::ZERO { @@ -726,8 +727,9 @@ pub fn format_compact_summary(summary: &LastRunSummary) -> Vec { let _ = write!(buf, ", {} failed", n.style(Style::new().red())); } + let last_details_cmd = vite_str::format!("`{program_name} run --last-details`"); let _ = write!(buf, ". {}", "(Run ".style(Style::new().bright_black())); - let _ = write!(buf, "{}", "`vp run --last-details`".style(COMMAND_STYLE)); + let _ = write!(buf, "{}", last_details_cmd.as_str().style(COMMAND_STYLE)); let _ = write!(buf, "{}", " for full details)".style(Style::new().bright_black())); let _ = writeln!(buf); } diff --git a/crates/vite_task_bin/Cargo.toml b/crates/vite_task_bin/Cargo.toml index f98cc7cc..4477d37d 100644 --- a/crates/vite_task_bin/Cargo.toml +++ b/crates/vite_task_bin/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true rust-version.workspace = true [[bin]] -name = "vp" +name = "vt" path = "src/main.rs" [dependencies] diff --git a/crates/vite_task_bin/src/lib.rs b/crates/vite_task_bin/src/lib.rs index c3c266d7..16404b46 100644 --- a/crates/vite_task_bin/src/lib.rs +++ b/crates/vite_task_bin/src/lib.rs @@ -10,7 +10,7 @@ use rustc_hash::FxHashMap; use vite_path::AbsolutePath; use vite_str::Str; use vite_task::{ - Command, EnabledCacheConfig, HandledCommand, ScriptCommand, SessionCallbacks, UserCacheConfig, + Command, EnabledCacheConfig, HandledCommand, ScriptCommand, SessionConfig, UserCacheConfig, get_path_env, plan_request::SyntheticPlanRequest, }; @@ -71,7 +71,7 @@ fn synthesize_node_modules_bin_task( } #[derive(Debug, Parser)] -#[command(name = "vp", version)] +#[command(name = "vt", version)] pub enum Args { Lint { #[clap(trailing_var_arg = true, allow_hyphen_values = true)] @@ -96,10 +96,10 @@ impl vite_task::CommandHandler for CommandHandler { command: &mut ScriptCommand, ) -> anyhow::Result { match command.program.as_str() { - "vp" => {} - // `vpr ` is shorthand for `vp run ` + "vt" | "vp" => {} + // `vpr ` is shorthand for `vt run ` "vpr" => { - command.program = Str::from("vp"); + command.program = Str::from("vt"); command.args = iter::once(Str::from("run")).chain(command.args.iter().cloned()).collect(); } @@ -171,16 +171,17 @@ impl vite_task::loader::UserConfigLoader for JsonUserConfigLoader { } #[derive(Default)] -pub struct OwnedSessionCallbacks { +pub struct OwnedSessionConfig { command_handler: CommandHandler, user_config_loader: JsonUserConfigLoader, } -impl OwnedSessionCallbacks { - pub fn as_callbacks(&mut self) -> SessionCallbacks<'_> { - SessionCallbacks { +impl OwnedSessionConfig { + pub fn as_config(&mut self) -> SessionConfig<'_> { + SessionConfig { command_handler: &mut self.command_handler, user_config_loader: &mut self.user_config_loader, + program_name: Str::from("vt"), } } } diff --git a/crates/vite_task_bin/src/main.rs b/crates/vite_task_bin/src/main.rs index 54e5a8eb..f20215a7 100644 --- a/crates/vite_task_bin/src/main.rs +++ b/crates/vite_task_bin/src/main.rs @@ -6,7 +6,7 @@ use vite_task::{ EnabledCacheConfig, ExitStatus, Session, UserCacheConfig, get_path_env, plan_request::SyntheticPlanRequest, }; -use vite_task_bin::{Args, OwnedSessionCallbacks, find_executable}; +use vite_task_bin::{Args, OwnedSessionConfig, find_executable}; #[tokio::main] async fn main() -> anyhow::Result { @@ -18,8 +18,8 @@ async fn main() -> anyhow::Result { #[expect(clippy::future_not_send, reason = "Session contains !Send types; single-threaded runtime")] async fn run() -> anyhow::Result { let args = Args::parse(); - let mut owned_callbacks = OwnedSessionCallbacks::default(); - let session = Session::init(owned_callbacks.as_callbacks())?; + let mut owned_config = OwnedSessionConfig::default(); + let session = Session::init(owned_config.as_config())?; match args { Args::Task(parsed) => session.main(parsed).await, args => { diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots.toml index a7e54885..a4ae9549 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots.toml @@ -3,8 +3,8 @@ [[e2e]] name = "associate existing cache" steps = [ - "vp run script1 # cache miss", - "vp run script2 # cache hit, same command as script1", + "vt run script1 # cache miss", + "vt run script2 # cache hit, same command as script1", "json-edit package.json '_.scripts.script2 = \"print world\"' # change script2", - "vp run script2 # cache miss", + "vt run script2 # cache miss", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots/associate existing cache.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots/associate existing cache.snap index d04c70d7..fae8ec64 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots/associate existing cache.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/associate-existing-cache/snapshots/associate existing cache.snap @@ -2,17 +2,17 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run script1 # cache miss +> vt run script1 # cache miss $ print hello hello -> vp run script2 # cache hit, same command as script1 +> vt run script2 # cache hit, same command as script1 $ print hello ✓ cache hit, replaying hello --- -vp run: cache hit, saved. +vt run: cache hit, saved. > json-edit package.json '_.scripts.script2 = "print world"' # change script2 -> vp run script2 # cache miss +> vt run script2 # cache miss $ print world ✗ cache miss: args changed, executing world diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/package.json index 168c0101..6c5372ed 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/package.json @@ -1,5 +1,5 @@ { "scripts": { - "lint": "vp lint" + "lint": "vt lint" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots.toml index 44289fd4..ad55636d 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots.toml @@ -3,9 +3,9 @@ [[e2e]] name = "builtin different cwd" steps = [ - "cd folder1 && vp run lint # cache miss in folder1", - "cd folder2 && vp run lint # cache miss in folder2", + "cd folder1 && vt run lint # cache miss in folder1", + "cd folder2 && vt run lint # cache miss in folder2", "echo 'console.log(1);' > folder2/a.js # modify folder2", - "cd folder1 && vp run lint # cache hit", - "cd folder2 && vp run lint # cache miss", + "cd folder1 && vt run lint # cache hit", + "cd folder2 && vt run lint # cache miss", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots/builtin different cwd.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots/builtin different cwd.snap index 80c23594..89b1c514 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots/builtin different cwd.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-different-cwd/snapshots/builtin different cwd.snap @@ -2,8 +2,8 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> cd folder1 && vp run lint # cache miss in folder1 -$ vp lint +> cd folder1 && vt run lint # cache miss in folder1 +$ vt lint ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[folder1/a.js:1:1] @@ -21,8 +21,8 @@ $ vp lint Found 2 warnings and 0 errors. Finished in on 2 files with 90 rules using threads. -> cd folder2 && vp run lint # cache miss in folder2 -$ vp lint ✓ cache hit, replaying +> cd folder2 && vt run lint # cache miss in folder2 +$ vt lint ✓ cache hit, replaying ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[folder1/a.js:1:1] @@ -42,11 +42,11 @@ Found 2 warnings and 0 errors. Finished in on 2 files with 90 rules using threads. --- -vp run: cache hit, saved. +vt run: cache hit, saved. > echo 'console.log(1);' > folder2/a.js # modify folder2 -> cd folder1 && vp run lint # cache hit -$ vp lint ✗ cache miss: 'folder2/a.js' modified, executing +> cd folder1 && vt run lint # cache hit +$ vt lint ✗ cache miss: 'folder2/a.js' modified, executing ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[folder1/a.js:1:1] @@ -57,8 +57,8 @@ $ vp lint ✗ cache miss: 'folder2/a.js' modified, executing Found 1 warning and 0 errors. Finished in on 2 files with 90 rules using threads. -> cd folder2 && vp run lint # cache miss -$ vp lint ✓ cache hit, replaying +> cd folder2 && vt run lint # cache miss +$ vt lint ✓ cache hit, replaying ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[folder1/a.js:1:1] @@ -71,4 +71,4 @@ Found 1 warning and 0 errors. Finished in on 2 files with 90 rules using threads. --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/package.json index f0e0f9f8..41cc41a8 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/package.json @@ -1,6 +1,6 @@ { "name": "builtin-non-zero-exit-test", "scripts": { - "lint": "vp lint" + "lint": "vt lint" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots.toml index 821b270b..feac86b6 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots.toml @@ -1,6 +1,6 @@ [[e2e]] name = "builtin command with non-zero exit does not show cache not updated" steps = [ - "vp run lint -- -D no-debugger", - "vp run lint -- -D no-debugger", + "vt run lint -- -D no-debugger", + "vt run lint -- -D no-debugger", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots/builtin command with non-zero exit does not show cache not updated.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots/builtin command with non-zero exit does not show cache not updated.snap index b28e1c11..71a5760e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots/builtin command with non-zero exit does not show cache not updated.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/builtin-non-zero-exit/snapshots/builtin command with non-zero exit does not show cache not updated.snap @@ -2,8 +2,8 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> vp run lint -- -D no-debugger -$ vp lint -D no-debugger +[1]> vt run lint -- -D no-debugger +$ vt lint -D no-debugger x eslint(no-debugger): `debugger` statement is not allowed ,-[bad.js:1:1] @@ -14,8 +14,8 @@ $ vp lint -D no-debugger Found 0 warnings and 1 error. Finished in on 1 file with 90 rules using threads. -[1]> vp run lint -- -D no-debugger -$ vp lint -D no-debugger +[1]> vt run lint -- -D no-debugger +$ vt lint -D no-debugger x eslint(no-debugger): `debugger` statement is not allowed ,-[bad.js:1:1] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots.toml index b79bd5cb..c610122f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots.toml @@ -3,13 +3,13 @@ [[e2e]] name = "task with cache disabled" steps = [ - "vp run no-cache-task # cache miss", - "vp run no-cache-task # cache disabled, runs again", + "vt run no-cache-task # cache miss", + "vt run no-cache-task # cache disabled, runs again", ] [[e2e]] name = "task with cache enabled" steps = [ - "vp run cached-task # cache miss", - "vp run cached-task # cache hit", + "vt run cached-task # cache miss", + "vt run cached-task # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache disabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache disabled.snap index 0dcf4d0a..d77347ca 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache disabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache disabled.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run no-cache-task # cache miss +> vt run no-cache-task # cache miss $ print-file test.txt ⊘ cache disabled test content -> vp run no-cache-task # cache disabled, runs again +> vt run no-cache-task # cache disabled, runs again $ print-file test.txt ⊘ cache disabled test content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache enabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache enabled.snap index 5d46d1eb..3ab3df18 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache enabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-disabled/snapshots/task with cache enabled.snap @@ -2,12 +2,12 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run cached-task # cache miss +> vt run cached-task # cache miss $ print-file test.txt test content -> vp run cached-task # cache hit +> vt run cached-task # cache hit $ print-file test.txt ✓ cache hit, replaying test content --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots.toml index a70a462b..36c09e7b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots.toml @@ -3,9 +3,9 @@ [[e2e]] name = "cache miss command change" steps = [ - "vp run task # cache miss", + "vt run task # cache miss", "json-edit package.json '_.scripts.task = \"print baz && print bar\"' # change first subtask", - "vp run task # first: cache miss, second: cache hit", + "vt run task # first: cache miss, second: cache hit", "json-edit package.json '_.scripts.task = \"print bar\"' # remove first subtask", - "vp run task # cache hit", + "vt run task # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots/cache miss command change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots/cache miss command change.snap index ccb29ff4..db69230b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots/cache miss command change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-command-change/snapshots/cache miss command change.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run task # cache miss +> vt run task # cache miss $ print foo foo @@ -10,10 +10,10 @@ $ print bar bar --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) > json-edit package.json '_.scripts.task = "print baz && print bar"' # change first subtask -> vp run task # first: cache miss, second: cache hit +> vt run task # first: cache miss, second: cache hit $ print baz ✗ cache miss: args changed, executing baz @@ -21,12 +21,12 @@ $ print bar ✓ cache hit, replaying bar --- -vp run: 1/2 cache hit (50%), saved. (Run `vp run --last-details` for full details) +vt run: 1/2 cache hit (50%), saved. (Run `vt run --last-details` for full details) > json-edit package.json '_.scripts.task = "print bar"' # remove first subtask -> vp run task # cache hit +> vt run task # cache hit $ print bar ✓ cache hit, replaying bar --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml index 7fada3cf..95aa7e8b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots.toml @@ -3,79 +3,79 @@ [[e2e]] name = "env value changed" steps = [ - "cross-env MY_ENV=1 vp run test # cache miss", - "cross-env MY_ENV=2 vp run test # cache miss: env value changed", + "cross-env MY_ENV=1 vt run test # cache miss", + "cross-env MY_ENV=2 vt run test # cache miss: env value changed", ] [[e2e]] name = "env added" steps = [ - "vp run test # cache miss", - "cross-env MY_ENV=1 vp run test # cache miss: env added", + "vt run test # cache miss", + "cross-env MY_ENV=1 vt run test # cache miss: env added", ] [[e2e]] name = "env removed" steps = [ - "cross-env MY_ENV=1 vp run test # cache miss", - "vp run test # cache miss: env removed", + "cross-env MY_ENV=1 vt run test # cache miss", + "vt run test # cache miss: env removed", ] [[e2e]] name = "untracked env added" steps = [ - "vp run test # cache miss", + "vt run test # cache miss", "json-edit vite-task.json \"_.tasks.test.untrackedEnv = ['MY_UNTRACKED']\" # add untracked env", - "vp run test # cache miss: untracked env added", + "vt run test # cache miss: untracked env added", ] [[e2e]] name = "untracked env removed" steps = [ "json-edit vite-task.json \"_.tasks.test.untrackedEnv = ['MY_UNTRACKED']\" # setup", - "vp run test # cache miss", + "vt run test # cache miss", "json-edit vite-task.json \"delete _.tasks.test.untrackedEnv\" # remove untracked env", - "vp run test # cache miss: untracked env removed", + "vt run test # cache miss: untracked env removed", ] [[e2e]] name = "cwd changed" steps = [ - "vp run test # cache miss", + "vt run test # cache miss", "mkdir -p subfolder", "cp test.txt subfolder/test.txt", "json-edit vite-task.json \"_.tasks.test.cwd = 'subfolder'\" # change cwd", - "vp run test # cache miss: cwd changed", + "vt run test # cache miss: cwd changed", ] [[e2e]] name = "inferred input changes" steps = [ - "vp run test # cache miss", + "vt run test # cache miss", "replace-file-content test.txt initial modified # modify input", - "vp run test # cache miss: input modified", + "vt run test # cache miss: input modified", "rm test.txt # remove tracked input", - "vp run test # cache miss: input removed", + "vt run test # cache miss: input removed", "echo new content > test.txt # recreate previously removed file", - "vp run test # cache miss: input added", + "vt run test # cache miss: input added", ] [[e2e]] name = "input config changed" steps = [ - "vp run test # cache miss", + "vt run test # cache miss", "json-edit vite-task.json \"_.tasks.test.input = ['test.txt']\" # change input config", - "vp run test # cache miss: configuration changed", + "vt run test # cache miss: configuration changed", ] [[e2e]] name = "glob input changes" steps = [ - "vp run glob-test # cache miss", + "vt run glob-test # cache miss", "replace-file-content test.txt initial modified # modify glob input", - "vp run glob-test # cache miss: input modified", + "vt run glob-test # cache miss: input modified", "echo new content > new.txt # add a new .txt file", - "vp run glob-test # cache miss: input added", + "vt run glob-test # cache miss: input added", "rm extra.txt # remove a .txt file", - "vp run glob-test # cache miss: input removed", + "vt run glob-test # cache miss: input removed", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/cwd changed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/cwd changed.snap index 992d75fd..bad9c631 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/cwd changed.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/cwd changed.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content > mkdir -p subfolder @@ -11,6 +11,6 @@ initial content > json-edit vite-task.json "_.tasks.test.cwd = 'subfolder'" # change cwd -> vp run test # cache miss: cwd changed +> vt run test # cache miss: cwd changed ~/subfolder$ print-file test.txt ✗ cache miss: working directory changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env added.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env added.snap index eb641e41..d6bef807 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env added.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env added.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content -> cross-env MY_ENV=1 vp run test # cache miss: env added +> cross-env MY_ENV=1 vt run test # cache miss: env added $ print-file test.txt ✗ cache miss: envs changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env removed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env removed.snap index 661a63c0..7d023b23 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env removed.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env removed.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> cross-env MY_ENV=1 vp run test # cache miss +> cross-env MY_ENV=1 vt run test # cache miss $ print-file test.txt initial content -> vp run test # cache miss: env removed +> vt run test # cache miss: env removed $ print-file test.txt ✗ cache miss: envs changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env value changed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env value changed.snap index f55ba1f4..2f6900ad 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env value changed.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/env value changed.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> cross-env MY_ENV=1 vp run test # cache miss +> cross-env MY_ENV=1 vt run test # cache miss $ print-file test.txt initial content -> cross-env MY_ENV=2 vp run test # cache miss: env value changed +> cross-env MY_ENV=2 vt run test # cache miss: env value changed $ print-file test.txt ✗ cache miss: envs changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/glob input changes.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/glob input changes.snap index 1bd64b3f..2f0f72df 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/glob input changes.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/glob input changes.snap @@ -2,21 +2,21 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run glob-test # cache miss +> vt run glob-test # cache miss $ print glob-test glob-test > replace-file-content test.txt initial modified # modify glob input -> vp run glob-test # cache miss: input modified +> vt run glob-test # cache miss: input modified $ print glob-test ✗ cache miss: 'test.txt' modified, executing glob-test > echo new content > new.txt # add a new .txt file -> vp run glob-test # cache miss: input added +> vt run glob-test # cache miss: input added $ print glob-test ✗ cache miss: 'new.txt' added in workspace root, executing glob-test > rm extra.txt # remove a .txt file -> vp run glob-test # cache miss: input removed +> vt run glob-test # cache miss: input removed $ print glob-test ✗ cache miss: 'extra.txt' removed from workspace root, executing glob-test diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inferred input changes.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inferred input changes.snap index 0278d04d..065fded4 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inferred input changes.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/inferred input changes.snap @@ -2,21 +2,21 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content > replace-file-content test.txt initial modified # modify input -> vp run test # cache miss: input modified +> vt run test # cache miss: input modified $ print-file test.txt ✗ cache miss: 'test.txt' modified, executing modified content > rm test.txt # remove tracked input -> vp run test # cache miss: input removed +> vt run test # cache miss: input removed $ print-file test.txt ✗ cache miss: 'test.txt' removed from workspace root, executing test.txt: not found > echo new content > test.txt # recreate previously removed file -> vp run test # cache miss: input added +> vt run test # cache miss: input added $ print-file test.txt ✗ cache miss: 'test.txt' added in workspace root, executing new content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/input config changed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/input config changed.snap index 0d56195b..d6725357 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/input config changed.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/input config changed.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content > json-edit vite-task.json "_.tasks.test.input = ['test.txt']" # change input config -> vp run test # cache miss: configuration changed +> vt run test # cache miss: configuration changed $ print-file test.txt ✗ cache miss: input configuration changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap index 83506558..93fc5a1f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env added.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content > json-edit vite-task.json "_.tasks.test.untrackedEnv = ['MY_UNTRACKED']" # add untracked env -> vp run test # cache miss: untracked env added +> vt run test # cache miss: untracked env added $ print-file test.txt ✗ cache miss: untracked env config changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap index b29e22f2..8e1e4109 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-miss-reasons/snapshots/untracked env removed.snap @@ -4,11 +4,11 @@ expression: e2e_outputs --- > json-edit vite-task.json "_.tasks.test.untrackedEnv = ['MY_UNTRACKED']" # setup -> vp run test # cache miss +> vt run test # cache miss $ print-file test.txt initial content > json-edit vite-task.json "delete _.tasks.test.untrackedEnv" # remove untracked env -> vp run test # cache miss: untracked env removed +> vt run test # cache miss: untracked env removed $ print-file test.txt ✗ cache miss: untracked env config changed, executing initial content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots.toml index 348802e4..556af7e5 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots.toml @@ -1,8 +1,8 @@ [[e2e]] name = "cache clean" steps = [ - "vp run cached-task # cache miss", - "vp run cached-task # cache hit", - "vp cache clean", - "vp run cached-task # cache miss after clean", + "vt run cached-task # cache miss", + "vt run cached-task # cache hit", + "vt cache clean", + "vt run cached-task # cache miss after clean", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots/cache clean.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots/cache clean.snap index 6045ba8a..813fb99b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots/cache clean.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/cache-subcommand/snapshots/cache clean.snap @@ -2,17 +2,17 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run cached-task # cache miss +> vt run cached-task # cache miss $ print-file test.txt test content -> vp run cached-task # cache hit +> vt run cached-task # cache hit $ print-file test.txt ✓ cache hit, replaying test content --- -vp run: cache hit, saved. -> vp cache clean +vt run: cache hit, saved. +> vt cache clean -> vp run cached-task # cache miss after clean +> vt run cached-task # cache miss after clean $ print-file test.txt test content diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots.toml index 48173624..6893b271 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots.toml @@ -3,6 +3,6 @@ [[e2e]] name = "read file with colon in name" steps = [ - "vp run read_colon_in_name # cache miss", - "vp run read_colon_in_name # cache hit", + "vt run read_colon_in_name # cache miss", + "vt run read_colon_in_name # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots/read file with colon in name.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots/read file with colon in name.snap index 4705812a..90da9aa4 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots/read file with colon in name.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/colon-in-name/snapshots/read file with colon in name.snap @@ -2,10 +2,10 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run read_colon_in_name # cache miss +> vt run read_colon_in_name # cache miss $ node read_node_fs.js -> vp run read_colon_in_name # cache hit +> vt run read_colon_in_name # cache hit $ node read_node_fs.js ✓ cache hit, replaying --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/package.json index eaa57399..4cf89ed9 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/package.json @@ -2,6 +2,6 @@ "name": "e2e-env-test", "private": true, "scripts": { - "env-test": "vp env-test" + "env-test": "vt env-test" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots.toml index 5471be96..ce10d749 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots.toml @@ -3,12 +3,12 @@ [[e2e]] name = "env-test prints value from additional_envs" steps = [ - "vp run env-test -- SYNTHETIC_ENV_VAR test_value_from_synthesizer # prints env value", + "vt run env-test -- SYNTHETIC_ENV_VAR test_value_from_synthesizer # prints env value", ] [[e2e]] name = "env-test with different values" steps = [ - "vp run env-test -- FOO bar # sets FOO=bar", - "vp run env-test -- BAZ qux # sets BAZ=qux", + "vt run env-test -- FOO bar # sets FOO=bar", + "vt run env-test -- BAZ qux # sets BAZ=qux", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test prints value from additional_envs.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test prints value from additional_envs.snap index 7c284657..953cca78 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test prints value from additional_envs.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test prints value from additional_envs.snap @@ -2,6 +2,6 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run env-test -- SYNTHETIC_ENV_VAR test_value_from_synthesizer # prints env value -$ vp env-test SYNTHETIC_ENV_VAR test_value_from_synthesizer +> vt run env-test -- SYNTHETIC_ENV_VAR test_value_from_synthesizer # prints env value +$ vt env-test SYNTHETIC_ENV_VAR test_value_from_synthesizer test_value_from_synthesizer diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test with different values.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test with different values.snap index 75140305..7b5c67fc 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test with different values.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-env-test/snapshots/env-test with different values.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run env-test -- FOO bar # sets FOO=bar -$ vp env-test FOO bar +> vt run env-test -- FOO bar # sets FOO=bar +$ vt env-test FOO bar bar -> vp run env-test -- BAZ qux # sets BAZ=qux -$ vp env-test BAZ qux +> vt run env-test -- BAZ qux # sets BAZ=qux +$ vt env-test BAZ qux qux diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/package.json index c123c1ea..3868e3ce 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/package.json @@ -2,6 +2,6 @@ "name": "e2e-lint-cache", "private": true, "scripts": { - "lint": "vp lint" + "lint": "vt lint" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots.toml index 1117a3f1..adf57ba2 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots.toml @@ -3,7 +3,7 @@ [[e2e]] name = "direct lint" steps = [ - "vp run lint # cache miss", + "vt run lint # cache miss", "echo debugger > main.js # add lint error", - "vp run lint # cache miss, lint fails", + "vt run lint # cache miss, lint fails", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots/direct lint.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots/direct lint.snap index aab38150..90890b0f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots/direct lint.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/e2e-lint-cache/snapshots/direct lint.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run lint # cache miss -$ vp lint +> vt run lint # cache miss +$ vt lint Found 0 warnings and 0 errors. Finished in on 0 files with 90 rules using threads. > echo debugger > main.js # add lint error -> vp run lint # cache miss, lint fails -$ vp lint ✗ cache miss: 'main.js' added in workspace root, executing +> vt run lint # cache miss, lint fails +$ vt lint ✗ cache miss: 'main.js' added in workspace root, executing ! eslint(no-debugger): `debugger` statement is not allowed ,-[main.js:1:1] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots.toml index d602c11a..e3718dc8 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots.toml @@ -3,5 +3,5 @@ [[e2e]] name = "cycle dependency error" steps = [ - "vp run task-a # task-a -> task-b -> task-a cycle", + "vt run task-a # task-a -> task-b -> task-a cycle", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots/cycle dependency error.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots/cycle dependency error.snap index b9256d25..94bfc0dd 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots/cycle dependency error.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/error_cycle_dependency/snapshots/cycle dependency error.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> vp run task-a # task-a -> task-b -> task-a cycle +[1]> vt run task-a # task-a -> task-b -> task-a cycle Error: Cycle dependency detected: error-cycle-dependency-test#task-a -> error-cycle-dependency-test#task-b -> error-cycle-dependency-test#task-a diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/package.json index d1a39b9b..694ad26c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/package.json @@ -1,6 +1,6 @@ { "name": "@test/exec-api", "scripts": { - "lint-task": "vp lint" + "lint-task": "vt lint" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots.toml index 19a91a8b..204b12be 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots.toml @@ -1,13 +1,13 @@ [[e2e]] name = "exec not triggered from script" steps = [ - "FOO=bar vp run lint-task # no print-env FOO output", + "FOO=bar vt run lint-task # no print-env FOO output", ] [[e2e]] name = "exec caching" steps = [ - "FOO=bar vp lint # cache miss", - "FOO=bar vp lint # cache hit, silent", - "FOO=baz vp lint # env changed, cache miss", + "FOO=bar vt lint # cache miss", + "FOO=bar vt lint # cache hit, silent", + "FOO=baz vt lint # env changed, cache miss", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec caching.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec caching.snap index bd664917..95f964f3 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec caching.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec caching.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> FOO=bar vp lint # cache miss +> FOO=bar vt lint # cache miss bar Lint { args: [] } -> FOO=bar vp lint # cache hit, silent +> FOO=bar vt lint # cache hit, silent Lint { args: [] } -> FOO=baz vp lint # env changed, cache miss +> FOO=baz vt lint # env changed, cache miss baz Lint { args: [] } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec not triggered from script.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec not triggered from script.snap index e72e9ea7..7aa251f3 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec not triggered from script.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exec-api/snapshots/exec not triggered from script.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> FOO=bar vp run lint-task # no print-env FOO output -$ vp lint +> FOO=bar vt run lint-task # no print-env FOO output +$ vt lint Found 0 warnings and 0 errors. Finished in on 0 files with 90 rules using threads. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots.toml index 5e7b5ccc..7364a489 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots.toml @@ -3,11 +3,11 @@ [[e2e]] name = "single task failure returns task exit code" steps = [ - "vp run pkg-a#fail # exits with code 42", + "vt run pkg-a#fail # exits with code 42", ] [[e2e]] name = "multiple task failures returns exit code 1" steps = [ - "vp run -r fail # multiple failures -> exit code 1", + "vt run -r fail # multiple failures -> exit code 1", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/multiple task failures returns exit code 1.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/multiple task failures returns exit code 1.snap index 7bf20e22..9aa35d37 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/multiple task failures returns exit code 1.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/multiple task failures returns exit code 1.snap @@ -2,10 +2,10 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> vp run -r fail # multiple failures -> exit code 1 +[1]> vt run -r fail # multiple failures -> exit code 1 ~/packages/pkg-a$ node -e "process.exit(42)" ~/packages/pkg-b$ node -e "process.exit(7)" --- -vp run: 0/2 cache hit (0%), 2 failed. (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%), 2 failed. (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/single task failure returns task exit code.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/single task failure returns task exit code.snap index 4f59078e..a8e9d7fb 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/single task failure returns task exit code.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/exit-codes/snapshots/single task failure returns task exit code.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[42]> vp run pkg-a#fail # exits with code 42 +[42]> vt run pkg-a#fail # exits with code 42 ~/packages/pkg-a$ node -e "process.exit(42)" diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots.toml index 94554265..ff62e9d2 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots.toml @@ -4,40 +4,40 @@ [[e2e]] name = "partial match warns for unmatched filter" steps = [ - "vp run --filter @test/app --filter nonexistent build", + "vt run --filter @test/app --filter nonexistent build", ] # Multiple unmatched alongside a match → one warning per unmatched filter [[e2e]] name = "multiple unmatched filters warn individually" steps = [ - "vp run --filter @test/app --filter nope1 --filter nope2 build", + "vt run --filter @test/app --filter nope1 --filter nope2 build", ] # Whitespace-split filter with one unmatched token [[e2e]] name = "whitespace split filter warns for unmatched token" steps = [ - "vp run --filter '@test/app nope' build", + "vt run --filter '@test/app nope' build", ] # Exclusion filter that matches nothing does NOT warn (only inclusions warn) [[e2e]] name = "unmatched exclusion filter does not warn" steps = [ - "vp run --filter @test/app --filter '!nonexistent' build", + "vt run --filter @test/app --filter '!nonexistent' build", ] # Glob filter that matches nothing alongside a match [[e2e]] name = "unmatched glob filter warns" steps = [ - "vp run --filter @test/app --filter @nope/* build", + "vt run --filter @test/app --filter @nope/* build", ] # Directory filter that matches nothing [[e2e]] name = "unmatched directory filter warns" steps = [ - "vp run --filter @test/app --filter ./packages/nope build", + "vt run --filter @test/app --filter ./packages/nope build", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/multiple unmatched filters warn individually.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/multiple unmatched filters warn individually.snap index 2689f8c9..d5caa0a0 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/multiple unmatched filters warn individually.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/multiple unmatched filters warn individually.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter @test/app --filter nope1 --filter nope2 build +> vt run --filter @test/app --filter nope1 --filter nope2 build No packages matched the filter: nope1 No packages matched the filter: nope2 ~/packages/app$ print built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/partial match warns for unmatched filter.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/partial match warns for unmatched filter.snap index b56377e0..716fa210 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/partial match warns for unmatched filter.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/partial match warns for unmatched filter.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter @test/app --filter nonexistent build +> vt run --filter @test/app --filter nonexistent build No packages matched the filter: nonexistent ~/packages/app$ print built-app built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched directory filter warns.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched directory filter warns.snap index af55332e..5c4f5ff5 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched directory filter warns.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched directory filter warns.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter @test/app --filter ./packages/nope build +> vt run --filter @test/app --filter ./packages/nope build No packages matched the filter: ./packages/nope ~/packages/app$ print built-app built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched exclusion filter does not warn.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched exclusion filter does not warn.snap index 8632cdc6..58955522 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched exclusion filter does not warn.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched exclusion filter does not warn.snap @@ -2,6 +2,6 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter @test/app --filter '!nonexistent' build +> vt run --filter @test/app --filter '!nonexistent' build ~/packages/app$ print built-app built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched glob filter warns.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched glob filter warns.snap index 64a36912..6f93e811 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched glob filter warns.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/unmatched glob filter warns.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter @test/app --filter @nope/* build +> vt run --filter @test/app --filter @nope/* build No packages matched the filter: @nope/* ~/packages/app$ print built-app built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/whitespace split filter warns for unmatched token.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/whitespace split filter warns for unmatched token.snap index b141cbd4..c7ff4a2f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/whitespace split filter warns for unmatched token.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/filter-unmatched/snapshots/whitespace split filter warns for unmatched token.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run --filter '@test/app nope' build +> vt run --filter '@test/app nope' build No packages matched the filter: nope ~/packages/app$ print built-app built-app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots.toml index 3cb33454..32a2b75e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots.toml @@ -6,82 +6,82 @@ [[e2e]] name = "root glob - matches src files" steps = [ - "vp run root-glob-test", + "vt run root-glob-test", # Modify matched file "replace-file-content src/root.ts initial modified", # Cache miss: file matches glob - "vp run root-glob-test", + "vt run root-glob-test", ] [[e2e]] name = "root glob - unmatched directory" steps = [ - "vp run root-glob-test", + "vt run root-glob-test", # Modify file outside glob pattern "replace-file-content other/other.ts initial modified", # Cache hit: file doesn't match glob - "vp run root-glob-test", + "vt run root-glob-test", ] [[e2e]] name = "root glob - subpackage path unmatched by relative glob" steps = [ - "vp run root-glob-test", + "vt run root-glob-test", # Modify file in subpackage - relative glob src/** doesn't reach packages/sub-pkg/src/ "replace-file-content packages/sub-pkg/src/sub.ts initial modified", # Cache hit: path simply doesn't match the relative glob pattern - "vp run root-glob-test", + "vt run root-glob-test", ] # 2. Root package with custom cwd - glob still relative to package root [[e2e]] name = "root glob with cwd - glob relative to package not cwd" steps = [ - "vp run root-glob-with-cwd", + "vt run root-glob-with-cwd", # Modify file - glob is src/** relative to package root "replace-file-content src/root.ts initial modified", # Cache miss: file matches glob (relative to package, not cwd) - "vp run root-glob-with-cwd", + "vt run root-glob-with-cwd", ] # 3. Subpackage - glob matches files in subpackage's src/ [[e2e]] name = "subpackage glob - matches own src files" steps = [ - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", # Modify matched file in subpackage "replace-file-content packages/sub-pkg/src/sub.ts initial modified", # Cache miss: file matches subpackage's glob - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", ] [[e2e]] name = "subpackage glob - unmatched directory in subpackage" steps = [ - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", # Modify file outside glob pattern "replace-file-content packages/sub-pkg/other/other.ts initial modified", # Cache hit: file doesn't match glob - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", ] [[e2e]] name = "subpackage glob - root path unmatched by relative glob" steps = [ - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", # Modify file in root - relative glob src/** is resolved from subpackage dir "replace-file-content src/root.ts initial modified", # Cache hit: path simply doesn't match the relative glob pattern - "vp run sub-pkg#sub-glob-test", + "vt run sub-pkg#sub-glob-test", ] # 4. Subpackage with custom cwd - glob still relative to subpackage root [[e2e]] name = "subpackage glob with cwd - glob relative to package not cwd" steps = [ - "vp run sub-pkg#sub-glob-with-cwd", + "vt run sub-pkg#sub-glob-with-cwd", # Modify file - glob is src/** relative to subpackage root "replace-file-content packages/sub-pkg/src/sub.ts initial modified", # Cache miss: file matches glob (relative to subpackage, not cwd) - "vp run sub-pkg#sub-glob-with-cwd", + "vt run sub-pkg#sub-glob-with-cwd", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - matches src files.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - matches src files.snap index 71a720b6..555b2afa 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - matches src files.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - matches src files.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts export const root = 'initial'; > replace-file-content src/root.ts initial modified -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts ✗ cache miss: 'src/root.ts' modified, executing export const root = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - subpackage path unmatched by relative glob.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - subpackage path unmatched by relative glob.snap index 4c66630f..57421a6a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - subpackage path unmatched by relative glob.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - subpackage path unmatched by relative glob.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts export const root = 'initial'; > replace-file-content packages/sub-pkg/src/sub.ts initial modified -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts ✓ cache hit, replaying export const root = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - unmatched directory.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - unmatched directory.snap index 304c6952..b3ef33d3 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - unmatched directory.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob - unmatched directory.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts export const root = 'initial'; > replace-file-content other/other.ts initial modified -> vp run root-glob-test +> vt run root-glob-test $ print-file src/root.ts ✓ cache hit, replaying export const root = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob with cwd - glob relative to package not cwd.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob with cwd - glob relative to package not cwd.snap index c9784664..76f31c63 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob with cwd - glob relative to package not cwd.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/root glob with cwd - glob relative to package not cwd.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run root-glob-with-cwd +> vt run root-glob-with-cwd ~/src$ print-file root.ts export const root = 'initial'; > replace-file-content src/root.ts initial modified -> vp run root-glob-with-cwd +> vt run root-glob-with-cwd ~/src$ print-file root.ts ✗ cache miss: 'src/root.ts' modified, executing export const root = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - matches own src files.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - matches own src files.snap index 5d37b2bf..0587fb05 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - matches own src files.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - matches own src files.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts export const sub = 'initial'; > replace-file-content packages/sub-pkg/src/sub.ts initial modified -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts ✗ cache miss: 'packages/sub-pkg/src/sub.ts' modified, executing export const sub = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - root path unmatched by relative glob.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - root path unmatched by relative glob.snap index be38f9a1..19af8e02 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - root path unmatched by relative glob.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - root path unmatched by relative glob.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts export const sub = 'initial'; > replace-file-content src/root.ts initial modified -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts ✓ cache hit, replaying export const sub = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - unmatched directory in subpackage.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - unmatched directory in subpackage.snap index c7d1e0e9..a498638c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - unmatched directory in subpackage.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob - unmatched directory in subpackage.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts export const sub = 'initial'; > replace-file-content packages/sub-pkg/other/other.ts initial modified -> vp run sub-pkg#sub-glob-test +> vt run sub-pkg#sub-glob-test ~/packages/sub-pkg$ print-file src/sub.ts ✓ cache hit, replaying export const sub = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob with cwd - glob relative to package not cwd.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob with cwd - glob relative to package not cwd.snap index b4fa2f66..cc61874b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob with cwd - glob relative to package not cwd.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/glob-base-test/snapshots/subpackage glob with cwd - glob relative to package not cwd.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#sub-glob-with-cwd +> vt run sub-pkg#sub-glob-with-cwd ~/packages/sub-pkg/src$ print-file sub.ts export const sub = 'initial'; > replace-file-content packages/sub-pkg/src/sub.ts initial modified -> vp run sub-pkg#sub-glob-with-cwd +> vt run sub-pkg#sub-glob-with-cwd ~/packages/sub-pkg/src$ print-file sub.ts ✗ cache miss: 'packages/sub-pkg/src/sub.ts' modified, executing export const sub = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots.toml index d1b8f1d2..9f40cfd8 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots.toml @@ -3,8 +3,8 @@ [[e2e]] name = "individual cache for extra args" steps = [ - "vp run say a # cache miss", - "vp run say b # cache miss, different args", - "vp run say a # cache hit", - "vp run say b # cache hit", + "vt run say a # cache miss", + "vt run say b # cache miss, different args", + "vt run say a # cache hit", + "vt run say b # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots/individual cache for extra args.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots/individual cache for extra args.snap index b44c3502..34e4a337 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots/individual cache for extra args.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-adt-args/snapshots/individual cache for extra args.snap @@ -2,21 +2,21 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run say a # cache miss +> vt run say a # cache miss $ print a a -> vp run say b # cache miss, different args +> vt run say b # cache miss, different args $ print b b -> vp run say a # cache hit +> vt run say a # cache hit $ print a ✓ cache hit, replaying a --- -vp run: cache hit, saved. -> vp run say b # cache hit +vt run: cache hit, saved. +> vt run say b # cache hit $ print b ✓ cache hit, replaying b --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots.toml index e837db72..eace75ea 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots.toml @@ -3,8 +3,8 @@ [[e2e]] name = "individual cache for env" steps = [ - "FOO=1 vp run hello # cache miss", - "FOO=2 vp run hello # cache miss, different env", - "FOO=1 vp run hello # cache hit", - "FOO=2 vp run hello # cache hit", + "FOO=1 vt run hello # cache miss", + "FOO=2 vt run hello # cache miss, different env", + "FOO=1 vt run hello # cache hit", + "FOO=2 vt run hello # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots/individual cache for env.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots/individual cache for env.snap index 5e0e10f5..2d444710 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots/individual cache for env.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/individual-cache-for-env/snapshots/individual cache for env.snap @@ -2,21 +2,21 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> FOO=1 vp run hello # cache miss +> FOO=1 vt run hello # cache miss $ print-env FOO 1 -> FOO=2 vp run hello # cache miss, different env +> FOO=2 vt run hello # cache miss, different env $ print-env FOO ✗ cache miss: envs changed, executing 2 -> FOO=1 vp run hello # cache hit +> FOO=1 vt run hello # cache hit $ print-env FOO ✓ cache hit, replaying 1 --- -vp run: cache hit, saved. -> FOO=2 vp run hello # cache hit +vt run: cache hit, saved. +> FOO=2 vt run hello # cache hit $ print-env FOO ✓ cache hit, replaying 2 --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots.toml index a1da9d92..10294938 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots.toml @@ -7,31 +7,31 @@ name = "positive globs only - cache hit on second run" steps = [ # First run - cache miss - "vp run positive-globs-only", + "vt run positive-globs-only", # Second run - cache hit - "vp run positive-globs-only", + "vt run positive-globs-only", ] [[e2e]] name = "positive globs only - miss on matched file change" steps = [ # Initial run - "vp run positive-globs-only", + "vt run positive-globs-only", # Modify a file that matches the glob "replace-file-content src/main.ts initial modified", # Cache miss: matched file changed - "vp run positive-globs-only", + "vt run positive-globs-only", ] [[e2e]] name = "positive globs only - hit on unmatched file change" steps = [ # Initial run - "vp run positive-globs-only", + "vt run positive-globs-only", # Modify a file that does NOT match the glob (test/ is outside src/) "replace-file-content test/main.test.ts outside modified", # Cache hit: file not in input - "vp run positive-globs-only", + "vt run positive-globs-only", ] # 1b. Positive globs reads unmatched file: input: ["src/main.ts"], command reads src/utils.ts too @@ -41,11 +41,11 @@ steps = [ name = "positive globs - hit on read but unmatched file" steps = [ # Initial run - reads both src/main.ts and src/utils.ts - "vp run positive-globs-reads-unmatched", + "vt run positive-globs-reads-unmatched", # Modify utils.ts - read by command but NOT in glob "replace-file-content src/utils.ts initial modified", # Cache hit: file was read but not matched by glob, inference is off - "vp run positive-globs-reads-unmatched", + "vt run positive-globs-reads-unmatched", ] # 2. Positive + negative globs: input: ["src/**", "!src/**/*.test.ts"] @@ -55,22 +55,22 @@ steps = [ name = "positive negative globs - miss on non-excluded file" steps = [ # Initial run - "vp run positive-negative-globs", + "vt run positive-negative-globs", # Modify a file that matches positive but NOT negative "replace-file-content src/main.ts initial modified", # Cache miss: file changed - "vp run positive-negative-globs", + "vt run positive-negative-globs", ] [[e2e]] name = "positive negative globs - hit on excluded file" steps = [ # Initial run - "vp run positive-negative-globs", + "vt run positive-negative-globs", # Modify a file that matches the negative glob (excluded) "replace-file-content src/main.test.ts main modified", # Cache hit: file excluded by negative glob - "vp run positive-negative-globs", + "vt run positive-negative-globs", ] # 3. Auto only: input: [{ "auto": true }] @@ -80,22 +80,22 @@ steps = [ name = "auto only - miss on inferred file change" steps = [ # Initial run - reads src/main.ts - "vp run auto-only", + "vt run auto-only", # Modify the file that was read "replace-file-content src/main.ts initial modified", # Cache miss: inferred input changed - "vp run auto-only", + "vt run auto-only", ] [[e2e]] name = "auto only - hit on non-inferred file change" steps = [ # Initial run - reads src/main.ts (NOT utils.ts) - "vp run auto-only", + "vt run auto-only", # Modify a file that was NOT read by the command "replace-file-content src/utils.ts initial modified", # Cache hit: file not in inferred input - "vp run auto-only", + "vt run auto-only", ] # 4. Auto + negative: input: [{ "auto": true }, "!dist/**"] @@ -105,22 +105,22 @@ steps = [ name = "auto with negative - hit on excluded inferred file" steps = [ # Initial run - reads both src/main.ts and dist/output.js - "vp run auto-with-negative", + "vt run auto-with-negative", # Modify file in excluded directory (dist/) "replace-file-content dist/output.js initial modified", # Cache hit: dist/ is excluded by negative glob - "vp run auto-with-negative", + "vt run auto-with-negative", ] [[e2e]] name = "auto with negative - miss on non-excluded inferred file" steps = [ # Initial run - "vp run auto-with-negative", + "vt run auto-with-negative", # Modify file NOT in excluded directory "replace-file-content src/main.ts initial modified", # Cache miss: inferred input changed - "vp run auto-with-negative", + "vt run auto-with-negative", ] # 5. Positive + auto + negative: input: ["package.json", { "auto": true }, "!src/**/*.test.ts"] @@ -130,33 +130,33 @@ steps = [ name = "positive auto negative - miss on explicit glob file" steps = [ # Initial run - "vp run positive-auto-negative", + "vt run positive-auto-negative", # Modify explicit input file "replace-file-content package.json inputs-cache-test modified-pkg", # Cache miss: explicit input changed - "vp run positive-auto-negative", + "vt run positive-auto-negative", ] [[e2e]] name = "positive auto negative - miss on inferred file" steps = [ # Initial run - "vp run positive-auto-negative", + "vt run positive-auto-negative", # Modify inferred input file (read by command) "replace-file-content src/main.ts initial modified", # Cache miss: inferred input changed - "vp run positive-auto-negative", + "vt run positive-auto-negative", ] [[e2e]] name = "positive auto negative - hit on excluded file" steps = [ # Initial run - "vp run positive-auto-negative", + "vt run positive-auto-negative", # Modify file excluded by negative glob "replace-file-content src/main.test.ts main modified", # Cache hit: file excluded by negative glob - "vp run positive-auto-negative", + "vt run positive-auto-negative", ] # 6. Empty input: input: [] @@ -166,22 +166,22 @@ steps = [ name = "empty input - hit despite file changes" steps = [ # Initial run - "vp run empty-inputs", + "vt run empty-inputs", # Modify any file - should NOT affect cache "replace-file-content src/main.ts initial modified", # Cache hit: no input configured - "vp run empty-inputs", + "vt run empty-inputs", ] [[e2e]] name = "empty input - miss on command change" steps = [ # Initial run - "vp run empty-inputs", + "vt run empty-inputs", # Change the command "json-edit vite-task.json \"_.tasks['empty-inputs'].command = 'print-file src/utils.ts'\"", # Cache miss: command changed - "vp run empty-inputs", + "vt run empty-inputs", ] # 7. FSPY environment variable @@ -191,14 +191,14 @@ steps = [ name = "fspy env - set when auto inference enabled" steps = [ # Run task with auto inference - should see FSPY=1 - "vp run check-fspy-env-with-auto", + "vt run check-fspy-env-with-auto", ] [[e2e]] name = "fspy env - not set when auto inference disabled" steps = [ # Run task without auto inference - should see (undefined) - "vp run check-fspy-env-without-auto", + "vt run check-fspy-env-without-auto", ] # 8. Trailing slash input: input: ["src/"] @@ -208,28 +208,28 @@ steps = [ [[e2e]] name = "folder slash input - miss on direct and nested file changes" steps = [ - "vp run folder-slash-input", + "vt run folder-slash-input", # Modify a direct file in src/ "replace-file-content src/main.ts initial modified", # Cache miss: direct file changed - "vp run folder-slash-input", + "vt run folder-slash-input", # Reset and run again to re-establish cache "replace-file-content src/main.ts modified initial", - "vp run folder-slash-input", + "vt run folder-slash-input", # Modify a nested file in src/sub/ "replace-file-content src/sub/nested.ts initial modified", # Cache miss: nested file changed - "vp run folder-slash-input", + "vt run folder-slash-input", ] [[e2e]] name = "folder slash input - hit on file outside directory" steps = [ - "vp run folder-slash-input", + "vt run folder-slash-input", # Modify a file outside src/ "replace-file-content test/main.test.ts outside modified", # Cache hit: file not under src/ - "vp run folder-slash-input", + "vt run folder-slash-input", ] # 9. Folder path as input: input: ["src"] @@ -238,13 +238,13 @@ steps = [ [[e2e]] name = "folder input - hit despite file changes and folder deletion" steps = [ - "vp run folder-input", + "vt run folder-input", # Modify a file inside the folder "replace-file-content src/main.ts initial modified", # Cache hit: "src" matches the directory itself, not files inside it - "vp run folder-input", + "vt run folder-input", # Delete the entire folder "rm -rf src", # Cache hit: folder removal doesn't affect fingerprint - "vp run folder-input", + "vt run folder-input", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - hit on non-inferred file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - hit on non-inferred file change.snap index 76665b74..60cfe47c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - hit on non-inferred file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - hit on non-inferred file change.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run auto-only +> vt run auto-only $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/utils.ts initial modified -> vp run auto-only +> vt run auto-only $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - miss on inferred file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - miss on inferred file change.snap index 5ecaa950..51b25b80 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - miss on inferred file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto only - miss on inferred file change.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run auto-only +> vt run auto-only $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run auto-only +> vt run auto-only $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - hit on excluded inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - hit on excluded inferred file.snap index eb3b9c37..8d1bdafe 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - hit on excluded inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - hit on excluded inferred file.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run auto-with-negative +> vt run auto-with-negative $ print-file src/main.ts dist/output.js export const main = 'initial'; // initial output > replace-file-content dist/output.js initial modified -> vp run auto-with-negative +> vt run auto-with-negative $ print-file src/main.ts dist/output.js ✓ cache hit, replaying export const main = 'initial'; // initial output --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - miss on non-excluded inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - miss on non-excluded inferred file.snap index e72332ad..2ed7b37c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - miss on non-excluded inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/auto with negative - miss on non-excluded inferred file.snap @@ -2,13 +2,13 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run auto-with-negative +> vt run auto-with-negative $ print-file src/main.ts dist/output.js export const main = 'initial'; // initial output > replace-file-content src/main.ts initial modified -> vp run auto-with-negative +> vt run auto-with-negative $ print-file src/main.ts dist/output.js ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; // initial output diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - hit despite file changes.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - hit despite file changes.snap index 8d81bbcd..84ebba1a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - hit despite file changes.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - hit despite file changes.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run empty-inputs +> vt run empty-inputs $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run empty-inputs +> vt run empty-inputs $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - miss on command change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - miss on command change.snap index 6ec2904b..54af8323 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - miss on command change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - miss on command change.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run empty-inputs +> vt run empty-inputs $ print-file src/main.ts export const main = 'initial'; > json-edit vite-task.json "_.tasks['empty-inputs'].command = 'print-file src/utils.ts'" -> vp run empty-inputs +> vt run empty-inputs $ print-file src/utils.ts ✗ cache miss: args changed, executing export const utils = 'initial'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder input - hit despite file changes and folder deletion.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder input - hit despite file changes and folder deletion.snap index 9cab4aeb..514610ee 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder input - hit despite file changes and folder deletion.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder input - hit despite file changes and folder deletion.snap @@ -2,22 +2,22 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run folder-input +> vt run folder-input $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run folder-input +> vt run folder-input $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. > rm -rf src -> vp run folder-input +> vt run folder-input $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - hit on file outside directory.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - hit on file outside directory.snap index 30716ffe..92904617 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - hit on file outside directory.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - hit on file outside directory.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts export const main = 'initial'; > replace-file-content test/main.test.ts outside modified -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - miss on direct and nested file changes.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - miss on direct and nested file changes.snap index 174f96e6..200a6894 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - miss on direct and nested file changes.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder slash input - miss on direct and nested file changes.snap @@ -2,21 +2,21 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; > replace-file-content src/main.ts modified initial -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'initial'; > replace-file-content src/sub/nested.ts initial modified -> vp run folder-slash-input +> vt run folder-slash-input $ print-file src/main.ts ✗ cache miss: 'src/sub/nested.ts' modified, executing export const main = 'initial'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - not set when auto inference disabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - not set when auto inference disabled.snap index 2b726d21..ac61b85e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - not set when auto inference disabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - not set when auto inference disabled.snap @@ -2,6 +2,6 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run check-fspy-env-without-auto +> vt run check-fspy-env-without-auto $ print-env FSPY (undefined) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - set when auto inference enabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - set when auto inference enabled.snap index 5f42dce0..d24a078f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - set when auto inference enabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - set when auto inference enabled.snap @@ -2,6 +2,6 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run check-fspy-env-with-auto +> vt run check-fspy-env-with-auto $ print-env FSPY 1 diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - hit on excluded file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - hit on excluded file.snap index ee18d7cc..b2be93ca 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - hit on excluded file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - hit on excluded file.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.test.ts main modified -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on explicit glob file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on explicit glob file.snap index e8ea5940..1ba85f7a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on explicit glob file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on explicit glob file.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts export const main = 'initial'; > replace-file-content package.json inputs-cache-test modified-pkg -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts ✗ cache miss: 'package.json' modified, executing export const main = 'initial'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on inferred file.snap index 1253d141..59af8fa5 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive auto negative - miss on inferred file.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run positive-auto-negative +> vt run positive-auto-negative $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs - hit on read but unmatched file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs - hit on read but unmatched file.snap index 8d9beb97..0be9e4c5 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs - hit on read but unmatched file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs - hit on read but unmatched file.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-globs-reads-unmatched +> vt run positive-globs-reads-unmatched $ print-file src/main.ts src/utils.ts export const main = 'initial'; export const utils = 'initial'; > replace-file-content src/utils.ts initial modified -> vp run positive-globs-reads-unmatched +> vt run positive-globs-reads-unmatched $ print-file src/main.ts src/utils.ts ✓ cache hit, replaying export const main = 'initial'; export const utils = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - cache hit on second run.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - cache hit on second run.snap index 897a5df0..65b649cf 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - cache hit on second run.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - cache hit on second run.snap @@ -2,12 +2,12 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts export const main = 'initial'; -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - hit on unmatched file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - hit on unmatched file change.snap index 3819b530..80adeeb3 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - hit on unmatched file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - hit on unmatched file change.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts export const main = 'initial'; > replace-file-content test/main.test.ts outside modified -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - miss on matched file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - miss on matched file change.snap index 03d5e6c9..050c2df6 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - miss on matched file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs only - miss on matched file change.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run positive-globs-only +> vt run positive-globs-only $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - hit on excluded file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - hit on excluded file.snap index 7fd5b217..7bfd6b01 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - hit on excluded file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - hit on excluded file.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-negative-globs +> vt run positive-negative-globs $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.test.ts main modified -> vp run positive-negative-globs +> vt run positive-negative-globs $ print-file src/main.ts ✓ cache hit, replaying export const main = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - miss on non-excluded file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - miss on non-excluded file.snap index fd3dbf3b..e5c0d71b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - miss on non-excluded file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive negative globs - miss on non-excluded file.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run positive-negative-globs +> vt run positive-negative-globs $ print-file src/main.ts export const main = 'initial'; > replace-file-content src/main.ts initial modified -> vp run positive-negative-globs +> vt run positive-negative-globs $ print-file src/main.ts ✗ cache miss: 'src/main.ts' modified, executing export const main = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots.toml index c42f9ee8..c597843e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots.toml @@ -5,8 +5,8 @@ [[e2e]] name = "cache hit then miss on file change" steps = [ - "vp run [lib]#build", - "vp run [lib]#build", + "vt run [lib]#build", + "vt run [lib]#build", "replace-file-content packages/[lib]/src/main.ts initial modified", - "vp run [lib]#build", + "vt run [lib]#build", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots/cache hit then miss on file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots/cache hit then miss on file change.snap index bd90bd4b..5c511666 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots/cache hit then miss on file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-glob-meta-in-path/snapshots/cache hit then miss on file change.snap @@ -2,17 +2,17 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run [lib]#build +> vt run [lib]#build ~/packages/[lib]$ print-file src/main.ts export const lib = 'initial'; -> vp run [lib]#build +> vt run [lib]#build ~/packages/[lib]$ print-file src/main.ts ✓ cache hit, replaying export const lib = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. > replace-file-content packages/[lib]/src/main.ts initial modified -> vp run [lib]#build +> vt run [lib]#build ~/packages/[lib]$ print-file src/main.ts ✗ cache miss: 'packages/[lib]/src/main.ts' modified, executing export const lib = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots.toml index f5a95fa2..fb3f32d2 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots.toml @@ -10,22 +10,22 @@ name = "subpackage auto with negative - hit on excluded inferred file" steps = [ # First run - reads both src/main.ts and dist/output.js - "vp run sub-pkg#auto-with-negative", + "vt run sub-pkg#auto-with-negative", # Modify file in excluded directory (dist/) "replace-file-content packages/sub-pkg/dist/output.js initial modified", # Cache hit: dist/ is excluded by negative glob - "vp run sub-pkg#auto-with-negative", + "vt run sub-pkg#auto-with-negative", ] [[e2e]] name = "subpackage auto with negative - miss on non-excluded inferred file" steps = [ # First run - "vp run sub-pkg#auto-with-negative", + "vt run sub-pkg#auto-with-negative", # Modify file NOT in excluded directory "replace-file-content packages/sub-pkg/src/main.ts initial modified", # Cache miss: inferred input changed - "vp run sub-pkg#auto-with-negative", + "vt run sub-pkg#auto-with-negative", ] # .. prefix positive globs: input: ["../shared/src/**"] @@ -34,21 +34,21 @@ steps = [ [[e2e]] name = "dotdot positive glob - miss on sibling file change" steps = [ - "vp run sub-pkg#dotdot-positive", + "vt run sub-pkg#dotdot-positive", # Modify a file that matches ../shared/src/** "replace-file-content packages/shared/src/utils.ts initial modified", # Cache miss: matched file changed - "vp run sub-pkg#dotdot-positive", + "vt run sub-pkg#dotdot-positive", ] [[e2e]] name = "dotdot positive glob - hit on unmatched file change" steps = [ - "vp run sub-pkg#dotdot-positive", + "vt run sub-pkg#dotdot-positive", # Modify a file NOT matched by ../shared/src/** "replace-file-content packages/shared/dist/output.js initial modified", # Cache hit: file not in input - "vp run sub-pkg#dotdot-positive", + "vt run sub-pkg#dotdot-positive", ] # .. prefix positive + negative globs: input: ["../shared/**", "!../shared/dist/**"] @@ -57,21 +57,21 @@ steps = [ [[e2e]] name = "dotdot positive negative - miss on non-excluded sibling file" steps = [ - "vp run sub-pkg#dotdot-positive-negative", + "vt run sub-pkg#dotdot-positive-negative", # Modify file matching positive but NOT negative "replace-file-content packages/shared/src/utils.ts initial modified", # Cache miss: file changed - "vp run sub-pkg#dotdot-positive-negative", + "vt run sub-pkg#dotdot-positive-negative", ] [[e2e]] name = "dotdot positive negative - hit on excluded sibling file" steps = [ - "vp run sub-pkg#dotdot-positive-negative", + "vt run sub-pkg#dotdot-positive-negative", # Modify file in excluded sibling dist/ "replace-file-content packages/shared/dist/output.js initial modified", # Cache hit: excluded by !../shared/dist/** - "vp run sub-pkg#dotdot-positive-negative", + "vt run sub-pkg#dotdot-positive-negative", ] # .. prefix auto + negative: input: [{ "auto": true }, "!../shared/dist/**"] @@ -80,19 +80,19 @@ steps = [ [[e2e]] name = "dotdot auto negative - hit on excluded sibling inferred file" steps = [ - "vp run sub-pkg#dotdot-auto-negative", + "vt run sub-pkg#dotdot-auto-negative", # Modify file in excluded sibling dist/ "replace-file-content packages/shared/dist/output.js initial modified", # Cache hit: excluded by !../shared/dist/** - "vp run sub-pkg#dotdot-auto-negative", + "vt run sub-pkg#dotdot-auto-negative", ] [[e2e]] name = "dotdot auto negative - miss on non-excluded sibling inferred file" steps = [ - "vp run sub-pkg#dotdot-auto-negative", + "vt run sub-pkg#dotdot-auto-negative", # Modify non-excluded sibling file "replace-file-content packages/shared/src/utils.ts initial modified", # Cache miss: inferred input changed - "vp run sub-pkg#dotdot-auto-negative", + "vt run sub-pkg#dotdot-auto-negative", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - hit on excluded sibling inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - hit on excluded sibling inferred file.snap index 200ac161..2b8e945b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - hit on excluded sibling inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - hit on excluded sibling inferred file.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-auto-negative +> vt run sub-pkg#dotdot-auto-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js export const shared = 'initial'; // initial output > replace-file-content packages/shared/dist/output.js initial modified -> vp run sub-pkg#dotdot-auto-negative +> vt run sub-pkg#dotdot-auto-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js ✓ cache hit, replaying export const shared = 'initial'; // initial output --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - miss on non-excluded sibling inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - miss on non-excluded sibling inferred file.snap index 83dcfc68..fcf5efbb 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - miss on non-excluded sibling inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot auto negative - miss on non-excluded sibling inferred file.snap @@ -2,13 +2,13 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-auto-negative +> vt run sub-pkg#dotdot-auto-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js export const shared = 'initial'; // initial output > replace-file-content packages/shared/src/utils.ts initial modified -> vp run sub-pkg#dotdot-auto-negative +> vt run sub-pkg#dotdot-auto-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js ✗ cache miss: 'packages/shared/src/utils.ts' modified, executing export const shared = 'modified'; // initial output diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - hit on unmatched file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - hit on unmatched file change.snap index cf7080da..0dc60cd0 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - hit on unmatched file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - hit on unmatched file change.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-positive +> vt run sub-pkg#dotdot-positive ~/packages/sub-pkg$ print-file ../shared/src/utils.ts export const shared = 'initial'; > replace-file-content packages/shared/dist/output.js initial modified -> vp run sub-pkg#dotdot-positive +> vt run sub-pkg#dotdot-positive ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ✓ cache hit, replaying export const shared = 'initial'; --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - miss on sibling file change.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - miss on sibling file change.snap index f10b8be5..997a5b7f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - miss on sibling file change.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive glob - miss on sibling file change.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-positive +> vt run sub-pkg#dotdot-positive ~/packages/sub-pkg$ print-file ../shared/src/utils.ts export const shared = 'initial'; > replace-file-content packages/shared/src/utils.ts initial modified -> vp run sub-pkg#dotdot-positive +> vt run sub-pkg#dotdot-positive ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ✗ cache miss: 'packages/shared/src/utils.ts' modified, executing export const shared = 'modified'; diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - hit on excluded sibling file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - hit on excluded sibling file.snap index ee76bc4f..16935562 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - hit on excluded sibling file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - hit on excluded sibling file.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-positive-negative +> vt run sub-pkg#dotdot-positive-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js export const shared = 'initial'; // initial output > replace-file-content packages/shared/dist/output.js initial modified -> vp run sub-pkg#dotdot-positive-negative +> vt run sub-pkg#dotdot-positive-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js ✓ cache hit, replaying export const shared = 'initial'; // initial output --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - miss on non-excluded sibling file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - miss on non-excluded sibling file.snap index 2838b48a..935f4e65 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - miss on non-excluded sibling file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/dotdot positive negative - miss on non-excluded sibling file.snap @@ -2,13 +2,13 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#dotdot-positive-negative +> vt run sub-pkg#dotdot-positive-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js export const shared = 'initial'; // initial output > replace-file-content packages/shared/src/utils.ts initial modified -> vp run sub-pkg#dotdot-positive-negative +> vt run sub-pkg#dotdot-positive-negative ~/packages/sub-pkg$ print-file ../shared/src/utils.ts ../shared/dist/output.js ✗ cache miss: 'packages/shared/src/utils.ts' modified, executing export const shared = 'modified'; // initial output diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - hit on excluded inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - hit on excluded inferred file.snap index 9d346392..60b2851b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - hit on excluded inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - hit on excluded inferred file.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#auto-with-negative +> vt run sub-pkg#auto-with-negative ~/packages/sub-pkg$ print-file src/main.ts dist/output.js export const main = 'initial'; // initial output > replace-file-content packages/sub-pkg/dist/output.js initial modified -> vp run sub-pkg#auto-with-negative +> vt run sub-pkg#auto-with-negative ~/packages/sub-pkg$ print-file src/main.ts dist/output.js ✓ cache hit, replaying export const main = 'initial'; // initial output --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - miss on non-excluded inferred file.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - miss on non-excluded inferred file.snap index 341b6a61..e1778891 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - miss on non-excluded inferred file.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-negative-glob-subpackage/snapshots/subpackage auto with negative - miss on non-excluded inferred file.snap @@ -2,13 +2,13 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run sub-pkg#auto-with-negative +> vt run sub-pkg#auto-with-negative ~/packages/sub-pkg$ print-file src/main.ts dist/output.js export const main = 'initial'; // initial output > replace-file-content packages/sub-pkg/src/main.ts initial modified -> vp run sub-pkg#auto-with-negative +> vt run sub-pkg#auto-with-negative ~/packages/sub-pkg$ print-file src/main.ts dist/output.js ✗ cache miss: 'packages/sub-pkg/src/main.ts' modified, executing export const main = 'modified'; // initial output diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/package.json index 168c0101..6c5372ed 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/package.json @@ -1,5 +1,5 @@ { "scripts": { - "lint": "vp lint" + "lint": "vt lint" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots.toml index 6849eb0b..364c0dcc 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots.toml @@ -4,7 +4,7 @@ name = "lint dot git" steps = [ "mkdir .git", - "vp run lint # cache miss", + "vt run lint # cache miss", "echo hello > .git/foo.txt # add file inside .git", - "vp run lint # cache hit, .git is ignored", + "vt run lint # cache hit, .git is ignored", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots/lint dot git.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots/lint dot git.snap index 17951974..e146345b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots/lint dot git.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/lint-dot-git/snapshots/lint dot git.snap @@ -4,8 +4,8 @@ expression: e2e_outputs --- > mkdir .git -> vp run lint # cache miss -$ vp lint +> vt run lint # cache miss +$ vt lint ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[a.js:1:1] @@ -18,8 +18,8 @@ Found 1 warning and 0 errors. Finished in on 1 file with 90 rules using threads. > echo hello > .git/foo.txt # add file inside .git -> vp run lint # cache hit, .git is ignored -$ vp lint ✓ cache hit, replaying +> vt run lint # cache hit, .git is ignored +$ vt lint ✓ cache hit, replaying ! eslint-plugin-unicorn(no-empty-file): Empty files are not allowed. ,-[a.js:1:1] @@ -32,4 +32,4 @@ Found 1 warning and 0 errors. Finished in on 1 file with 90 rules using threads. --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots.toml index 11ef616f..193632c4 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots.toml @@ -3,7 +3,7 @@ [[e2e]] name = "replay logs chronological order" steps = [ - "vp run build # cache miss", - "vp run build # cache hit", - "vp run build # cache hit", + "vt run build # cache miss", + "vt run build # cache hit", + "vt run build # cache hit", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots/replay logs chronological order.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots/replay logs chronological order.snap index cbb2856f..37503a17 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots/replay logs chronological order.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/replay-logs-chronological-order/snapshots/replay logs chronological order.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run build # cache miss +> vt run build # cache miss $ node build.js [build.js] -------------------------------- [build.js] start @@ -97,7 +97,7 @@ $ node build.js [echo.js] 30303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030 [echo.js] -------------------------------- [build.js] main process end -> vp run build # cache hit +> vt run build # cache hit $ node build.js ✓ cache hit, replaying [build.js] -------------------------------- [build.js] start @@ -194,8 +194,8 @@ $ node build.js ✓ cache hit, replaying [build.js] main process end --- -vp run: cache hit, saved. -> vp run build # cache hit +vt run: cache hit, saved. +> vt run build # cache hit $ node build.js ✓ cache hit, replaying [build.js] -------------------------------- [build.js] start @@ -292,4 +292,4 @@ $ node build.js ✓ cache hit, replaying [build.js] main process end --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots.toml index 9b7fccb6..8ad542ba 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots.toml @@ -3,9 +3,9 @@ [[e2e]] name = "shared caching input" steps = [ - "vp run script1 # cache miss", - "vp run script2 # cache hit, same command as script1", + "vt run script1 # cache miss", + "vt run script2 # cache hit, same command as script1", "replace-file-content foo.txt initial modified # modify shared input", - "vp run script2 # cache miss, input changed", - "vp run script1 # cache hit, script2 already warmed cache", + "vt run script2 # cache miss, input changed", + "vt run script1 # cache hit, script2 already warmed cache", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots/shared caching input.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots/shared caching input.snap index ccb88381..e3309199 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots/shared caching input.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/shared-caching-input/snapshots/shared caching input.snap @@ -2,23 +2,23 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run script1 # cache miss +> vt run script1 # cache miss $ print-file foo.txt initial content -> vp run script2 # cache hit, same command as script1 +> vt run script2 # cache hit, same command as script1 $ print-file foo.txt ✓ cache hit, replaying initial content --- -vp run: cache hit, saved. +vt run: cache hit, saved. > replace-file-content foo.txt initial modified # modify shared input -> vp run script2 # cache miss, input changed +> vt run script2 # cache miss, input changed $ print-file foo.txt ✗ cache miss: 'foo.txt' modified, executing modified content -> vp run script1 # cache hit, script2 already warmed cache +> vt run script1 # cache hit, script2 already warmed cache $ print-file foo.txt ✓ cache hit, replaying modified content --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots.toml index 0548189b..bbe33630 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots.toml @@ -5,5 +5,5 @@ name = "signal terminated task returns non-zero exit code" platform = "unix" steps = [ - "vp run abort # SIGABRT -> exit code 134", + "vt run abort # SIGABRT -> exit code 134", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots/signal terminated task returns non-zero exit code.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots/signal terminated task returns non-zero exit code.snap index a440d1c1..2916a7ab 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots/signal terminated task returns non-zero exit code.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/signal-exit/snapshots/signal terminated task returns non-zero exit code.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[134]> vp run abort # SIGABRT -> exit code 134 +[134]> vt run abort # SIGABRT -> exit code 134 $ node -e "process.kill(process.pid, 6)" diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots.toml index 7c4dbcc5..d5ade7ac 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots.toml @@ -12,7 +12,7 @@ name = "single task no cache inherits stdin" # Single spawn leaf + cache disabled → stdin is inherited # The piped "from-stdin" should appear in the task's output steps = [ - "echo from-stdin | vp run read-stdin", + "echo from-stdin | vt run read-stdin", ] [[e2e]] @@ -20,7 +20,7 @@ name = "single task with cache gets null stdin" # Single spawn leaf + cache enabled → stdin is null (protects cache determinism) # The piped "from-stdin" should NOT appear in the task's output steps = [ - "echo from-stdin | vp run read-stdin-cached", + "echo from-stdin | vt run read-stdin-cached", ] [[e2e]] @@ -28,5 +28,5 @@ name = "multiple tasks get null stdin" # Multiple spawn leaves → stdin is null regardless of cache setting # The piped "from-stdin" should NOT appear in any task's output steps = [ - "echo from-stdin | vp run -r read-stdin", + "echo from-stdin | vt run -r read-stdin", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/multiple tasks get null stdin.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/multiple tasks get null stdin.snap index 160b2a21..fcb59106 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/multiple tasks get null stdin.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/multiple tasks get null stdin.snap @@ -2,10 +2,10 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> echo from-stdin | vp run -r read-stdin +> echo from-stdin | vt run -r read-stdin ~/packages/other$ read-stdin $ read-stdin ⊘ cache disabled --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task no cache inherits stdin.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task no cache inherits stdin.snap index 1496b7ea..fcd7e799 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task no cache inherits stdin.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task no cache inherits stdin.snap @@ -2,6 +2,6 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> echo from-stdin | vp run read-stdin +> echo from-stdin | vt run read-stdin $ read-stdin ⊘ cache disabled from-stdin diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task with cache gets null stdin.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task with cache gets null stdin.snap index 56301c7d..f6bfcf44 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task with cache gets null stdin.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdin-inheritance/snapshots/single task with cache gets null stdin.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> echo from-stdin | vp run read-stdin-cached +> echo from-stdin | vt run read-stdin-cached $ read-stdin diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots.toml index 7204c9d9..d8fabfb1 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots.toml @@ -14,22 +14,22 @@ name = "single task, cache disabled" # Expect: all stdio inherited from terminal (tty) steps = [ - "vp run check-tty", + "vt run check-tty", ] [[e2e]] name = "single task, cache miss" # Expect: stdio piped for cache capture (not-tty) steps = [ - "vp run check-tty-cached", + "vt run check-tty-cached", ] [[e2e]] name = "single task, cache hit" # Expect: first run is a miss (not-tty), second run replays cached output steps = [ - "vp run check-tty-cached", - "vp run check-tty-cached", + "vt run check-tty-cached", + "vt run check-tty-cached", ] # ─── Multiple tasks (-r) ──────────────────────────────────────── @@ -38,20 +38,20 @@ steps = [ name = "multiple tasks, cache disabled" # Expect: stdio piped for labeled output (not-tty) steps = [ - "vp run -r check-tty", + "vt run -r check-tty", ] [[e2e]] name = "multiple tasks, cache miss" # Expect: stdio piped (not-tty) steps = [ - "vp run -r check-tty-cached", + "vt run -r check-tty-cached", ] [[e2e]] name = "multiple tasks, cache hit" # Expect: first run is a miss (not-tty), second run replays cached output steps = [ - "vp run -r check-tty-cached", - "vp run -r check-tty-cached", + "vt run -r check-tty-cached", + "vt run -r check-tty-cached", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache disabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache disabled.snap index 5a140d98..6ff4287b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache disabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache disabled.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r check-tty +> vt run -r check-tty ~/packages/other$ check-tty stdin:not-tty stdout:not-tty @@ -14,4 +14,4 @@ stdout:not-tty stderr:not-tty --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache hit.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache hit.snap index 40591428..d3328fdc 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache hit.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache hit.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r check-tty-cached +> vt run -r check-tty-cached ~/packages/other$ check-tty stdin:not-tty stdout:not-tty @@ -14,8 +14,8 @@ stdout:not-tty stderr:not-tty --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) -> vp run -r check-tty-cached +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) +> vt run -r check-tty-cached ~/packages/other$ check-tty ✓ cache hit, replaying stdin:not-tty stdout:not-tty @@ -27,4 +27,4 @@ stdout:not-tty stderr:not-tty --- -vp run: 2/2 cache hit (100%), saved. (Run `vp run --last-details` for full details) +vt run: 2/2 cache hit (100%), saved. (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache miss.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache miss.snap index e60bf905..b775978f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache miss.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/multiple tasks, cache miss.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r check-tty-cached +> vt run -r check-tty-cached ~/packages/other$ check-tty stdin:not-tty stdout:not-tty @@ -14,4 +14,4 @@ stdout:not-tty stderr:not-tty --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache disabled.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache disabled.snap index b4f62e70..3db7617f 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache disabled.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache disabled.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run check-tty +> vt run check-tty $ check-tty ⊘ cache disabled stdin:tty stdout:tty diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache hit.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache hit.snap index f99a0d8a..bed6960a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache hit.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache hit.snap @@ -2,16 +2,16 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run check-tty-cached +> vt run check-tty-cached $ check-tty stdin:not-tty stdout:not-tty stderr:not-tty -> vp run check-tty-cached +> vt run check-tty-cached $ check-tty ✓ cache hit, replaying stdin:not-tty stdout:not-tty stderr:not-tty --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache miss.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache miss.snap index 0763cd35..2c8de911 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache miss.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-detection/snapshots/single task, cache miss.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run check-tty-cached +> vt run check-tty-cached $ check-tty stdin:not-tty stdout:not-tty diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/packages/other/vite-task.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/packages/other/vite-task.json index e8a9cf09..09c0c98b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/packages/other/vite-task.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/packages/other/vite-task.json @@ -9,7 +9,7 @@ "cache": false }, "foo-nested": { - "command": "vp run bar", + "command": "vt run bar", "cache": false } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots.toml index 20bab674..54375790 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots.toml @@ -9,11 +9,11 @@ [[e2e]] name = "single-node chains inherit even with multi-node sibling graph" steps = [ - "vp run foo", + "vt run foo", ] [[e2e]] name = "multi-node ancestor forces piped for nested single-node graph" steps = [ - "vp run -r foo-nested", + "vt run -r foo-nested", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/multi-node ancestor forces piped for nested single-node graph.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/multi-node ancestor forces piped for nested single-node graph.snap index e13df50c..266dc666 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/multi-node ancestor forces piped for nested single-node graph.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/multi-node ancestor forces piped for nested single-node graph.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r foo-nested +> vt run -r foo-nested ~/packages/other$ check-tty ⊘ cache disabled stdin:not-tty stdout:not-tty @@ -14,4 +14,4 @@ stdout:not-tty stderr:not-tty --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/single-node chains inherit even with multi-node sibling graph.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/single-node chains inherit even with multi-node sibling graph.snap index 66174e67..0e80e8cf 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/single-node chains inherit even with multi-node sibling graph.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/snapshots/single-node chains inherit even with multi-node sibling graph.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run foo +> vt run foo $ check-tty ⊘ cache disabled stdin:tty stdout:tty @@ -24,4 +24,4 @@ stdout:not-tty stderr:not-tty --- -vp run: 0/4 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/4 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/vite-task.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/vite-task.json index 9514c5d8..f22a1dc9 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/vite-task.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/stdio-graph-criteria/vite-task.json @@ -10,11 +10,11 @@ "cache": false }, "foo": { - "command": "check-tty && vp run bar && vp run -r check-tty", + "command": "check-tty && vt run bar && vt run -r check-tty", "cache": false }, "foo-nested": { - "command": "vp run bar", + "command": "vt run bar", "cache": false } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots.toml index ae9adc6a..662f0e22 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots.toml @@ -5,7 +5,7 @@ name = "single task cache miss shows no summary" cwd = "packages/a" steps = [ - "vp run build", + "vt run build", ] # Single task, cache hit → compact one-liner @@ -13,23 +13,23 @@ steps = [ name = "single task cache hit shows compact summary" cwd = "packages/a" steps = [ - "vp run build # first run, cache miss", - "vp run build # second run, cache hit → compact summary", + "vt run build # first run, cache miss", + "vt run build # second run, cache hit → compact summary", ] # Multi-task (recursive), all cache miss → compact summary with 0 hits [[e2e]] name = "multi task all cache miss shows compact summary" steps = [ - "vp run -r build", + "vt run -r build", ] # Multi-task (recursive), some cache hits → compact summary with hit count [[e2e]] name = "multi task with cache hits shows compact summary" steps = [ - "vp run -r build # first run, all miss", - "vp run -r build # second run, all hit", + "vt run -r build # first run, all miss", + "vt run -r build # second run, all hit", ] # Single task with --verbose → full detailed summary @@ -37,29 +37,29 @@ steps = [ name = "single task verbose shows full summary" cwd = "packages/a" steps = [ - "vp run -v build", + "vt run -v build", ] # Multi-task with --verbose → full detailed summary [[e2e]] name = "multi task verbose shows full summary" steps = [ - "vp run -r -v build", + "vt run -r -v build", ] # Multi-task with --verbose after cache hits [[e2e]] name = "multi task verbose with cache hits shows full summary" steps = [ - "vp run -r build # first run, populate cache", - "vp run -r -v build # second run, verbose with cache hits", + "vt run -r build # first run, populate cache", + "vt run -r -v build # second run, verbose with cache hits", ] # --last-details with no previous run [[e2e]] name = "last details with no previous run shows error" steps = [ - "vp run --last-details", + "vt run --last-details", ] # --last-details after a run shows saved summary @@ -67,14 +67,14 @@ steps = [ name = "last details after run shows saved summary" cwd = "packages/a" steps = [ - "vp run build # populate summary file", - "vp run --last-details # display saved summary", + "vt run build # populate summary file", + "vt run --last-details # display saved summary", ] # --last-details after a multi-task run [[e2e]] name = "last details after multi task run shows saved summary" steps = [ - "vp run -r build # populate summary file", - "vp run --last-details # display saved summary", + "vt run -r build # populate summary file", + "vt run --last-details # display saved summary", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after multi task run shows saved summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after multi task run shows saved summary.snap index 853d2aa3..b2d21eae 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after multi task run shows saved summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after multi task run shows saved summary.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build # populate summary file +> vt run -r build # populate summary file ~/packages/a$ print built-a built-a @@ -10,8 +10,8 @@ built-a built-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) -> vp run --last-details # display saved summary +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) +> vt run --last-details # display saved summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after run shows saved summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after run shows saved summary.snap index 0421d4d2..0c08922a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after run shows saved summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details after run shows saved summary.snap @@ -4,10 +4,10 @@ expression: e2e_outputs info: cwd: packages/a --- -> vp run build # populate summary file +> vt run build # populate summary file ~/packages/a$ print built-a built-a -> vp run --last-details # display saved summary +> vt run --last-details # display saved summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details with no previous run shows error.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details with no previous run shows error.snap index 29df10a7..7ceb1986 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details with no previous run shows error.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/last details with no previous run shows error.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> vp run --last-details +[1]> vt run --last-details No previous run summary found. Run a task first to generate a summary. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task all cache miss shows compact summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task all cache miss shows compact summary.snap index 2a2dcbb8..71490c28 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task all cache miss shows compact summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task all cache miss shows compact summary.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build +> vt run -r build ~/packages/a$ print built-a built-a @@ -10,4 +10,4 @@ built-a built-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose shows full summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose shows full summary.snap index f0d6fbcc..4a257a09 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose shows full summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose shows full summary.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r -v build +> vt run -r -v build ~/packages/a$ print built-a built-a diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose with cache hits shows full summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose with cache hits shows full summary.snap index c31bf72b..e8144b89 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose with cache hits shows full summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task verbose with cache hits shows full summary.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build # first run, populate cache +> vt run -r build # first run, populate cache ~/packages/a$ print built-a built-a @@ -10,8 +10,8 @@ built-a built-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) -> vp run -r -v build # second run, verbose with cache hits +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) +> vt run -r -v build # second run, verbose with cache hits ~/packages/a$ print built-a ✓ cache hit, replaying built-a diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task with cache hits shows compact summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task with cache hits shows compact summary.snap index 20418253..71224a43 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task with cache hits shows compact summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/multi task with cache hits shows compact summary.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build # first run, all miss +> vt run -r build # first run, all miss ~/packages/a$ print built-a built-a @@ -10,8 +10,8 @@ built-a built-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) -> vp run -r build # second run, all hit +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) +> vt run -r build # second run, all hit ~/packages/a$ print built-a ✓ cache hit, replaying built-a @@ -19,4 +19,4 @@ built-a built-b --- -vp run: 2/2 cache hit (100%), saved. (Run `vp run --last-details` for full details) +vt run: 2/2 cache hit (100%), saved. (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache hit shows compact summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache hit shows compact summary.snap index 37fb47d4..641f5b82 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache hit shows compact summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache hit shows compact summary.snap @@ -4,12 +4,12 @@ expression: e2e_outputs info: cwd: packages/a --- -> vp run build # first run, cache miss +> vt run build # first run, cache miss ~/packages/a$ print built-a built-a -> vp run build # second run, cache hit → compact summary +> vt run build # second run, cache hit → compact summary ~/packages/a$ print built-a ✓ cache hit, replaying built-a --- -vp run: cache hit, saved. +vt run: cache hit, saved. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache miss shows no summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache miss shows no summary.snap index 359a8b35..841f9db1 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache miss shows no summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task cache miss shows no summary.snap @@ -4,6 +4,6 @@ expression: e2e_outputs info: cwd: packages/a --- -> vp run build +> vt run build ~/packages/a$ print built-a built-a diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task verbose shows full summary.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task verbose shows full summary.snap index 85bfe0fc..d5b63c4d 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task verbose shows full summary.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/summary-output/snapshots/single task verbose shows full summary.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/a --- -> vp run -v build +> vt run -v build ~/packages/a$ print built-a built-a diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots.toml index 5b7347cb..2ba3cd57 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots.toml @@ -2,17 +2,17 @@ name = "list tasks from package dir" cwd = "packages/app" steps = [ - "echo '' | vp run", + "echo '' | vt run", ] [[e2e]] name = "list tasks from workspace root" steps = [ - "echo '' | vp run", + "echo '' | vt run", ] [[e2e]] -name = "vp run in script" +name = "vt run in script" steps = [ - { command = "vp run list-tasks", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, + { command = "vt run list-tasks", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from package dir.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from package dir.snap index 0c21a91e..c1b7e917 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from package dir.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from package dir.snap @@ -4,10 +4,10 @@ expression: e2e_outputs info: cwd: packages/app --- -> echo '' | vp run +> echo '' | vt run build: echo build app lint: echo lint app test: echo test app lib#build: echo build lib task-list-test#hello: echo hello from root - task-list-test#list-tasks: vp run + task-list-test#list-tasks: vt run diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from workspace root.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from workspace root.snap index 000a9748..5ba0cb61 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from workspace root.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/list tasks from workspace root.snap @@ -2,9 +2,9 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> echo '' | vp run +> echo '' | vt run hello: echo hello from root - list-tasks: vp run + list-tasks: vt run app#build: echo build app app#lint: echo lint app app#test: echo test app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vp run in script.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vt run in script.snap similarity index 83% rename from crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vp run in script.snap rename to crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vt run in script.snap index 3cec9ad9..2466c406 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vp run in script.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/snapshots/vt run in script.snap @@ -2,13 +2,13 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run list-tasks +> vt run list-tasks @ expect-milestone: task-select::0 -$ vp run ⊘ cache disabled +$ vt run ⊘ cache disabled Select a task (↑/↓, Enter to run, type to search): › hello echo hello from root - list-tasks vp run + list-tasks vt run app (packages/app) build echo build app lint echo lint app @@ -16,7 +16,7 @@ Select a task (↑/↓, Enter to run, type to search): lib (packages/lib) build echo build lib @ write-key: enter -$ vp run ⊘ cache disabled +$ vt run ⊘ cache disabled Selected task: hello $ echo hello from root ⊘ cache disabled hello from root diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/vite-task.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/vite-task.json index 1e2ed69c..5bbc95c4 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/vite-task.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-list/vite-task.json @@ -4,7 +4,7 @@ "command": "echo hello from root" }, "list-tasks": { - "command": "vp run" + "command": "vt run" } } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots.toml index 8fc35b19..703c982e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots.toml @@ -3,5 +3,5 @@ [[e2e]] name = "no trailing newline" steps = [ - "vp run hello # runs echo -n hello", + "vt run hello # runs echo -n hello", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots/no trailing newline.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots/no trailing newline.snap index 6ef89085..ecbd3c82 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots/no trailing newline.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-no-trailing-newline/snapshots/no trailing newline.snap @@ -2,11 +2,11 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run hello # runs echo -n hello +> vt run hello # runs echo -n hello $ echo -n foo ⊘ cache disabled foo $ echo bar ⊘ cache disabled bar --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots.toml index 751f2c1f..d773bfe3 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots.toml @@ -3,5 +3,5 @@ name = "interactive long command truncated" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::1" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::2" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::3" }, { "write-key" = "up" }, { "expect-milestone" = "task-select::2" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::1" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::2" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::3" }, { "write-key" = "up" }, { "expect-milestone" = "task-select::2" }, { "write-key" = "enter" }] }, ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots/interactive long command truncated.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots/interactive long command truncated.snap index 44029684..692b2e0b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots/interactive long command truncated.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select-truncate/snapshots/interactive long command truncated.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots.toml index ef863e98..4aee9ab0 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots.toml @@ -2,28 +2,28 @@ [[e2e]] name = "non-interactive list tasks" steps = [ - "echo '' | vp run", + "echo '' | vt run", ] # Non-interactive: typo triggers "did you mean" [[e2e]] name = "non-interactive did you mean" steps = [ - "echo '' | vp run buid", + "echo '' | vt run buid", ] # Non-interactive: typo with no fuzzy matches hides "did you mean" [[e2e]] name = "non-interactive no suggestions" steps = [ - "echo '' | vp run zzzzz", + "echo '' | vt run zzzzz", ] # Non-interactive: typo with -r flag errors (not cwd_only) [[e2e]] name = "non-interactive recursive typo errors" steps = [ - "echo '' | vp run -r buid", + "echo '' | vt run -r buid", ] # Interactive: navigate down and select second task @@ -31,7 +31,7 @@ steps = [ name = "interactive select task" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::1" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::1" }, { "write-key" = "enter" }] }, ] # Interactive: typo pre-filled in search @@ -39,7 +39,7 @@ steps = [ name = "interactive select with typo" cwd = "packages/app" steps = [ - { command = "vp run buid", interactions = [{ "expect-milestone" = "task-select:buid:0" }, { "write-key" = "enter" }] }, + { command = "vt run buid", interactions = [{ "expect-milestone" = "task-select:buid:0" }, { "write-key" = "enter" }] }, ] # Interactive: type to search then select @@ -47,7 +47,7 @@ steps = [ name = "interactive search then select" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lin" }, { "expect-milestone" = "task-select:lin:0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lin" }, { "expect-milestone" = "task-select:lin:0" }, { "write-key" = "enter" }] }, ] # Interactive: escape clears query and resets filter @@ -55,7 +55,7 @@ steps = [ name = "interactive escape clears query" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lin" }, { "expect-milestone" = "task-select:lin:0" }, { "write-key" = "escape" }, { "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lin" }, { "expect-milestone" = "task-select:lin:0" }, { "write-key" = "escape" }, { "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, ] # -r flag without task errors (not bare) @@ -63,7 +63,7 @@ steps = [ name = "recursive without task errors" cwd = "packages/app" steps = [ - "vp run -r", + "vt run -r", ] # -t flag + typo errors (not cwd_only) @@ -71,7 +71,7 @@ steps = [ name = "transitive typo errors" cwd = "packages/app" steps = [ - "vp run -t buid", + "vt run -t buid", ] # Interactive: scroll down past visible page, then select a task beyond the initial viewport @@ -79,7 +79,7 @@ steps = [ name = "interactive scroll long list" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, # Navigate down to index 8 (past page_size=8, triggering scroll) + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, # Navigate down to index 8 (past page_size=8, triggering scroll) { "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "write-key" = "down" },{ "expect-milestone" = "task-select::8" }, # Scroll back up to the top { "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "write-key" = "up" },{ "expect-milestone" = "task-select::0" },{ "write-key" = "enter" },] }, ] @@ -89,7 +89,7 @@ steps = [ name = "non-interactive list tasks from lib" cwd = "packages/lib" steps = [ - "echo '' | vp run", + "echo '' | vt run", ] # Interactive: select from lib package (first item is lib's task) @@ -97,7 +97,7 @@ steps = [ name = "interactive select task from lib" cwd = "packages/lib" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, ] # Interactive: search for a task that only exists in another package @@ -105,7 +105,7 @@ steps = [ name = "interactive search other package task" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "typec" }, { "expect-milestone" = "task-select:typec:0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "typec" }, { "expect-milestone" = "task-select:typec:0" }, { "write-key" = "enter" }] }, ] # Interactive: '#' in query skips current-package reordering @@ -113,7 +113,7 @@ steps = [ name = "interactive search with hash skips reorder" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lib#" }, { "expect-milestone" = "task-select:lib#:0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "lib#" }, { "expect-milestone" = "task-select:lib#:0" }, { "write-key" = "enter" }] }, ] # Interactive: multiple current-package matches preserve fuzzy rating order @@ -121,7 +121,7 @@ steps = [ name = "interactive search preserves rating within package" cwd = "packages/lib" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "t" }, { "expect-milestone" = "task-select:t:0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "t" }, { "expect-milestone" = "task-select:t:0" }, { "write-key" = "enter" }] }, ] # Interactive: Enter with no matching results does nothing @@ -129,7 +129,7 @@ steps = [ name = "interactive enter with no results does nothing" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "zzzzz" }, { "expect-milestone" = "task-select:zzzzz:0" }, { "write-key" = "enter" }, { "write-key" = "escape" }, { "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write" = "zzzzz" }, { "expect-milestone" = "task-select:zzzzz:0" }, { "write-key" = "enter" }, { "write-key" = "escape" }, { "expect-milestone" = "task-select::0" }, { "write-key" = "enter" }] }, ] # Interactive: navigate into a package group, select a non-current-package task @@ -137,14 +137,14 @@ steps = [ name = "interactive select from other package" cwd = "packages/app" steps = [ - { command = "vp run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "write-key" = "down" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::3" }, { "write-key" = "enter" }] }, + { command = "vt run", interactions = [{ "expect-milestone" = "task-select::0" }, { "write-key" = "down" }, { "write-key" = "down" }, { "write-key" = "down" }, { "expect-milestone" = "task-select::3" }, { "write-key" = "enter" }] }, ] # Typo inside a task script should fail with an error, NOT show a list [[e2e]] name = "typo in task script fails without list" steps = [ - "vp run run-typo-task", + "vt run run-typo-task", ] # --verbose without task: not bare, errors with "no task specifier provided" @@ -152,7 +152,7 @@ steps = [ name = "verbose without task errors" cwd = "packages/app" steps = [ - "vp run --verbose", + "vt run --verbose", ] # --verbose with typo: is_cwd_only is true, shows interactive selector @@ -160,5 +160,5 @@ steps = [ name = "verbose with typo enters selector" cwd = "packages/app" steps = [ - { command = "vp run buid --verbose", interactions = [{ "expect-milestone" = "task-select:buid:0" }, { "write-key" = "enter" }] }, + { command = "vt run buid --verbose", interactions = [{ "expect-milestone" = "task-select:buid:0" }, { "write-key" = "enter" }] }, ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap index 819fabd9..6d57a6bf 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive enter with no results does nothing.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive escape clears query.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive escape clears query.snap index ef7ad7f5..47c25827 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive escape clears query.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive escape clears query.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive scroll long list.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive scroll long list.snap index 9a03e740..ebb962c1 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive scroll long list.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive scroll long list.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search other package task.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search other package task.snap index 9a613c5a..047ca216 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search other package task.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search other package task.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search preserves rating within package.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search preserves rating within package.snap index 0c39f1de..a9d45302 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search preserves rating within package.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search preserves rating within package.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/lib --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): @@ -35,7 +35,7 @@ Select a task (↑/↓, Enter to run, type to search): t docs echo docs root format echo format root hello echo hello from root - run-typo-task vp run nonexistent-xyz + run-typo-task vt run nonexistent-xyz validate echo validate root (…2 more) @ write-key: enter diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search then select.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search then select.snap index a88a8ed2..27165fae 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search then select.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search then select.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search with hash skips reorder.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search with hash skips reorder.snap index bd72406c..0b387852 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search with hash skips reorder.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive search with hash skips reorder.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select from other package.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select from other package.snap index a858abb6..cdfe2041 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select from other package.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select from other package.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task from lib.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task from lib.snap index 513924c1..aedbf6fe 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task from lib.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task from lib.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/lib --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task.snap index 2fe345c1..fe5340fe 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select task.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run +> vt run @ expect-milestone: task-select::0 Select a task (↑/↓, Enter to run, type to search): diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select with typo.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select with typo.snap index 6a81da4d..65769cde 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select with typo.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/interactive select with typo.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run buid +> vt run buid @ expect-milestone: task-select:buid:0 Task "buid" not found. Select a task (↑/↓, Enter to run, type to search): buid diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive did you mean.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive did you mean.snap index e6ecb83d..0286354c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive did you mean.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive did you mean.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> echo '' | vp run buid +[1]> echo '' | vt run buid Task "buid" not found. Did you mean: app#build: echo build app lib#build: echo build lib diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks from lib.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks from lib.snap index fb502381..194dd017 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks from lib.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks from lib.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/lib --- -> echo '' | vp run +> echo '' | vt run build: echo build lib lint: echo lint lib test: echo test lib @@ -18,5 +18,5 @@ info: task-select-test#docs: echo docs root task-select-test#format: echo format root task-select-test#hello: echo hello from root - task-select-test#run-typo-task: vp run nonexistent-xyz + task-select-test#run-typo-task: vt run nonexistent-xyz task-select-test#validate: echo validate root diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks.snap index 7d6e097d..355fd644 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive list tasks.snap @@ -2,14 +2,14 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> echo '' | vp run +> echo '' | vt run check: echo check root clean: echo clean root deploy: echo deploy root docs: echo docs root format: echo format root hello: echo hello from root - run-typo-task: vp run nonexistent-xyz + run-typo-task: vt run nonexistent-xyz validate: echo validate root app#build: echo build app app#lint: echo lint app diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive no suggestions.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive no suggestions.snap index ded69c93..e5387b7a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive no suggestions.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive no suggestions.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> echo '' | vp run zzzzz +[1]> echo '' | vt run zzzzz Task "zzzzz" not found. diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive recursive typo errors.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive recursive typo errors.snap index 47776655..bcc3c8ec 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive recursive typo errors.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/non-interactive recursive typo errors.snap @@ -2,5 +2,5 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> echo '' | vp run -r buid +[1]> echo '' | vt run -r buid Error: Task "buid" not found diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/recursive without task errors.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/recursive without task errors.snap index c67ca9a9..cfa41815 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/recursive without task errors.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/recursive without task errors.snap @@ -4,5 +4,5 @@ expression: e2e_outputs info: cwd: packages/app --- -[1]> vp run -r +[1]> vt run -r Error: No task specifier provided for 'run' command diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/transitive typo errors.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/transitive typo errors.snap index 8c41bed6..246cdb0a 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/transitive typo errors.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/transitive typo errors.snap @@ -4,5 +4,5 @@ expression: e2e_outputs info: cwd: packages/app --- -[1]> vp run -t buid +[1]> vt run -t buid Error: Task "buid" not found diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/typo in task script fails without list.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/typo in task script fails without list.snap index 88faadab..271b5f50 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/typo in task script fails without list.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/typo in task script fails without list.snap @@ -2,8 +2,8 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -[1]> vp run run-typo-task -Error: Failed to plan tasks from `vp run nonexistent-xyz` in task task-select-test#run-typo-task +[1]> vt run run-typo-task +Error: Failed to plan tasks from `vt run nonexistent-xyz` in task task-select-test#run-typo-task Caused by: Task "nonexistent-xyz" not found diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose with typo enters selector.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose with typo enters selector.snap index 0968e32d..dc2c457e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose with typo enters selector.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose with typo enters selector.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run buid --verbose +> vt run buid --verbose @ expect-milestone: task-select:buid:0 Task "buid" not found. Select a task (↑/↓, Enter to run, type to search): buid diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose without task errors.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose without task errors.snap index a270a238..3de34734 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose without task errors.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/snapshots/verbose without task errors.snap @@ -4,5 +4,5 @@ expression: e2e_outputs info: cwd: packages/app --- -[1]> vp run --verbose +[1]> vt run --verbose Error: No task specifier provided for 'run' command diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/vite-task.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/vite-task.json index 4ef32234..d7ef8b9b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/vite-task.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/task-select/vite-task.json @@ -19,7 +19,7 @@ "command": "echo hello from root" }, "run-typo-task": { - "command": "vp run nonexistent-xyz" + "command": "vt run nonexistent-xyz" }, "validate": { "command": "echo validate root" diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots.toml index fab682d8..15555b16 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots.toml @@ -4,19 +4,19 @@ [[e2e]] name = "recursive build runs dependencies before dependents" steps = [ - "vp run -r build # core -> lib -> app", + "vt run -r build # core -> lib -> app", ] [[e2e]] name = "transitive build from app runs all dependencies" cwd = "packages/app" steps = [ - "vp run -t build # core -> lib -> app", + "vt run -t build # core -> lib -> app", ] [[e2e]] name = "transitive build from lib runs only its dependencies" cwd = "packages/lib" steps = [ - "vp run -t build # core -> lib", + "vt run -t build # core -> lib", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/recursive build runs dependencies before dependents.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/recursive build runs dependencies before dependents.snap index b25ef234..79a5327c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/recursive build runs dependencies before dependents.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/recursive build runs dependencies before dependents.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build # core -> lib -> app +> vt run -r build # core -> lib -> app ~/packages/core$ echo 'Building core' ⊘ cache disabled Building core @@ -13,4 +13,4 @@ Building lib Building app --- -vp run: 0/3 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/3 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from app runs all dependencies.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from app runs all dependencies.snap index a38c991b..2cfb2117 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from app runs all dependencies.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from app runs all dependencies.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/app --- -> vp run -t build # core -> lib -> app +> vt run -t build # core -> lib -> app ~/packages/core$ echo 'Building core' ⊘ cache disabled Building core @@ -15,4 +15,4 @@ Building lib Building app --- -vp run: 0/3 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/3 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from lib runs only its dependencies.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from lib runs only its dependencies.snap index 1b3221eb..183086f1 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from lib runs only its dependencies.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/topological-execution-order/snapshots/transitive build from lib runs only its dependencies.snap @@ -4,7 +4,7 @@ expression: e2e_outputs info: cwd: packages/lib --- -> vp run -t build # core -> lib +> vt run -t build # core -> lib ~/packages/core$ echo 'Building core' ⊘ cache disabled Building core @@ -12,4 +12,4 @@ Building core Building lib --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots.toml index c8530001..3fce5a5c 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots.toml @@ -3,7 +3,7 @@ [[e2e]] name = "cache hit after file modification" steps = [ - "vp run test-task # cache miss", + "vt run test-task # cache miss", "replace-file-content main.js foo bar # modify input file", - "vp run test-task # cache miss, main.js changed", + "vt run test-task # cache miss, main.js changed", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots/cache hit after file modification.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots/cache hit after file modification.snap index dedc24a6..36757fcc 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots/cache hit after file modification.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite-task-smoke/snapshots/cache hit after file modification.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run test-task # cache miss +> vt run test-task # cache miss $ echo hello ⊘ cache disabled hello @@ -10,10 +10,10 @@ $ print-file main.js console.log('foo'); --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) > replace-file-content main.js foo bar # modify input file -> vp run test-task # cache miss, main.js changed +> vt run test-task # cache miss, main.js changed $ echo hello ⊘ cache disabled hello @@ -21,4 +21,4 @@ $ print-file main.js ✗ cache miss: 'main.js' modified, executing console.log('bar'); --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/package.json b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/package.json index 20e8e426..ea186e96 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/package.json +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/package.json @@ -2,6 +2,6 @@ "name": "test-workspace", "private": true, "scripts": { - "build": "vp run -r build" + "build": "vt run -r build" } } diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots.toml b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots.toml index 2b9d90a9..ce8b9e7e 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots.toml +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots.toml @@ -1,23 +1,23 @@ # Tests that workspace root self-referencing tasks don't cause infinite recursion. -# Root build = `vp run -r build` (delegates to all packages recursively). +# Root build = `vt run -r build` (delegates to all packages recursively). # -# Skip rule: `vp run -r build` from root produces the same query as the -# nested `vp run -r build` in root's script, so root's expansion is skipped. +# Skip rule: `vt run -r build` from root produces the same query as the +# nested `vt run -r build` in root's script, so root's expansion is skipped. # Only packages a and b actually run. # -# Prune rule: `vp run build` from root produces a ContainingPackage query, -# but root's script `vp run -r build` produces an All query. The queries +# Prune rule: `vt run build` from root produces a ContainingPackage query, +# but root's script `vt run -r build` produces an All query. The queries # differ so the skip rule doesn't fire. Instead the prune rule removes root # from the nested result, leaving only a and b. [[e2e]] name = "recursive build skips root self-reference" steps = [ - "vp run -r build # only a and b run, root is skipped", + "vt run -r build # only a and b run, root is skipped", ] [[e2e]] name = "build from root prunes root from nested expansion" steps = [ - "vp run build # only a and b run under root, root is pruned", + "vt run build # only a and b run under root, root is pruned", ] diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/build from root prunes root from nested expansion.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/build from root prunes root from nested expansion.snap index 11d028a4..2f3318ac 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/build from root prunes root from nested expansion.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/build from root prunes root from nested expansion.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run build # only a and b run under root, root is pruned +> vt run build # only a and b run under root, root is pruned ~/packages/a$ echo building-a ⊘ cache disabled building-a @@ -10,4 +10,4 @@ building-a building-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/recursive build skips root self-reference.snap b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/recursive build skips root self-reference.snap index 36284fda..37f122aa 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/recursive build skips root self-reference.snap +++ b/crates/vite_task_bin/tests/e2e_snapshots/fixtures/workspace-root-self-reference/snapshots/recursive build skips root self-reference.snap @@ -2,7 +2,7 @@ source: crates/vite_task_bin/tests/e2e_snapshots/main.rs expression: e2e_outputs --- -> vp run -r build # only a and b run, root is skipped +> vt run -r build # only a and b run, root is skipped ~/packages/a$ echo building-a ⊘ cache disabled building-a @@ -10,4 +10,4 @@ building-a building-b --- -vp run: 0/2 cache hit (0%). (Run `vp run --last-details` for full details) +vt run: 0/2 cache hit (0%). (Run `vt run --last-details` for full details) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/main.rs b/crates/vite_task_bin/tests/e2e_snapshots/main.rs index 77172b1c..1b45b81b 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/main.rs +++ b/crates/vite_task_bin/tests/e2e_snapshots/main.rs @@ -23,7 +23,7 @@ const STEP_TIMEOUT: Duration = Duration::from_secs(20); /// Screen size for the PTY terminal. Large enough to avoid line wrapping. const SCREEN_SIZE: ScreenSize = ScreenSize { rows: 500, cols: 500 }; -const COMPILE_TIME_VP_PATH: &str = env!("CARGO_BIN_EXE_vp"); +const COMPILE_TIME_VT_PATH: &str = env!("CARGO_BIN_EXE_vt"); const COMPILE_TIME_MANIFEST_DIR: &str = env!("CARGO_MANIFEST_DIR"); /// Get the shell executable for running e2e test steps. @@ -58,10 +58,10 @@ fn get_shell_exe() -> std::path::PathBuf { #[expect( clippy::disallowed_types, - reason = "PathBuf required for compile-time/runtime vp path remapping" + reason = "PathBuf required for compile-time/runtime vt path remapping" )] -fn resolve_runtime_vp_path() -> AbsolutePathBuf { - let compile_time_vp = std::path::PathBuf::from(COMPILE_TIME_VP_PATH); +fn resolve_runtime_vt_path() -> AbsolutePathBuf { + let compile_time_vt = std::path::PathBuf::from(COMPILE_TIME_VT_PATH); let compile_time_manifest = std::path::PathBuf::from(COMPILE_TIME_MANIFEST_DIR); let runtime_manifest = std::path::PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").unwrap()); @@ -69,23 +69,23 @@ fn resolve_runtime_vp_path() -> AbsolutePathBuf { let compile_time_repo_root = compile_time_manifest.parent().unwrap().parent().unwrap(); let runtime_repo_root = runtime_manifest.parent().unwrap().parent().unwrap(); - let relative_vp = diff_paths(&compile_time_vp, compile_time_repo_root).unwrap_or_else(|| { + let relative_vt = diff_paths(&compile_time_vt, compile_time_repo_root).unwrap_or_else(|| { panic!( - "Failed to diff vp path. vp={} repo_root={}", - compile_time_vp.display(), + "Failed to diff vt path. vt={} repo_root={}", + compile_time_vt.display(), compile_time_repo_root.display(), ) }); - let runtime_vp = runtime_repo_root.join(&relative_vp); + let runtime_vt = runtime_repo_root.join(&relative_vt); assert!( - runtime_vp.exists(), - "Remapped vp path does not exist: {} (relative: {})", - runtime_vp.display(), - relative_vp.display(), + runtime_vt.exists(), + "Remapped vt path does not exist: {} (relative: {})", + runtime_vt.display(), + relative_vt.display(), ); - AbsolutePathBuf::new(runtime_vp).unwrap() + AbsolutePathBuf::new(runtime_vt).unwrap() } #[derive(serde::Deserialize, Debug)] @@ -279,11 +279,11 @@ fn run_case_inner(tmpdir: &AbsolutePath, fixture_path: &std::path::Path, fixture // Prepare PATH for e2e tests let e2e_env_path = join_paths( [ - // Include vp binary path to PATH so that e2e tests can run "vp ..." commands. + // Include vt binary path to PATH so that e2e tests can run "vt ..." commands. { - let vp_path = resolve_runtime_vp_path(); - let vp_dir = vp_path.parent().unwrap(); - vp_dir.as_path().as_os_str().into() + let vt_path = resolve_runtime_vt_path(); + let vt_dir = vt_path.parent().unwrap(); + vt_dir.as_path().as_os_str().into() }, // Include packages/tools to PATH so that e2e tests can run utilities such as replace-file-content. test_bin_path, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/package.json index 58140e89..ae293d3c 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/package.json @@ -3,6 +3,6 @@ "private": true, "scripts": { "hello": "echo hello", - "env-test": "vp env-test TEST_VAR hello_world" + "env-test": "vt env-test TEST_VAR hello_world" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap index ebe2c9fa..0aae6b1d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - env-test synthetic task in user task.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env "task_name": "env-test", "package_path": "/" }, - "command": "vp env-test TEST_VAR hello_world", + "command": "vt env-test TEST_VAR hello_world", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap index e506cc61..cca0fa24 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env "package_path": "/" }, "resolved_config": { - "command": "vp env-test TEST_VAR hello_world", + "command": "vt env-test TEST_VAR hello_world", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache and --no-cache conflict.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache and --no-cache conflict.snap index 68cdd5f7..ef47908e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache and --no-cache conflict.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache and --no-cache conflict.snap @@ -11,6 +11,6 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri --- error: the argument '--cache' cannot be used with '--no-cache' -Usage: vp run --cache [ADDITIONAL_ARGS]... +Usage: vt run --cache [ADDITIONAL_ARGS]... For more information, try '--help'. diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/package.json index 3a86ab77..77cb873a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/package.json @@ -1,8 +1,8 @@ { "scripts": { - "lint": "vp lint", + "lint": "vt lint", "hello": "print-file", - "lint-and-echo": "vp lint && echo", - "echo-and-lint": "echo Linting && vp lint" + "lint-and-echo": "vt lint && echo", + "echo-and-lint": "echo Linting && vt lint" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots.toml index a4f7588b..2cb0929b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots.toml @@ -28,7 +28,7 @@ args = ["run", "echo-and-lint", "--fix"] [[e2e]] name = "direct lint" steps = [ - "vp run lint # cache miss", + "vt run lint # cache miss", "echo debugger > main.js # add lint error", - "vp run lint # cache miss, lint fails", + "vt run lint # cache miss, lint fails", ] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap index 836f750a..1dafd5a9 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - echo and lint with extra args.snap @@ -54,7 +54,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "task_name": "echo-and-lint", "package_path": "/" }, - "command": "vp lint --fix", + "command": "vt lint --fix", "and_item_index": 1, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap index bf64189d..0478d727 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - lint and echo with extra args.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "task_name": "lint-and-echo", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": 0, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap index 7b25a6b8..325b4859 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task with cwd.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "task_name": "lint", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap index 44c43124..13746051 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task in user task.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "task_name": "lint", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap index 06c7508b..5efaabce 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/query - synthetic task with extra args in user task.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "task_name": "lint", "package_path": "/" }, - "command": "vp lint --fix", + "command": "vt lint --fix", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap index 915400be..fbd75339 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "package_path": "/" }, "resolved_config": { - "command": "echo Linting && vp lint", + "command": "echo Linting && vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -84,7 +84,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -118,7 +118,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-keys "package_path": "/" }, "resolved_config": { - "command": "vp lint && echo", + "command": "vt lint && echo", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp deleted file mode 100755 index c635c2dc..00000000 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp +++ /dev/null @@ -1,2 +0,0 @@ -# Dummy executable so `which("vite")` succeeds during plan resolution. -# This file is never actually executed. diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp.cmd b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp.cmd deleted file mode 100644 index 0efc832a..00000000 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vp.cmd +++ /dev/null @@ -1,2 +0,0 @@ -@REM Dummy executable so `which("vite")` succeeds during plan resolution on Windows. -@REM This file is never actually executed. diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/package.json index 0fe395f4..7291f9cc 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/package.json @@ -1,6 +1,6 @@ { "name": "@test/cache-subcommand", "scripts": { - "clean-cache": "vp cache clean" + "clean-cache": "vt cache clean" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/query - cache clean in script.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/query - cache clean in script.snap index 7f0eb462..99041f9a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/query - cache clean in script.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/query - cache clean in script.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand "task_name": "clean-cache", "package_path": "/" }, - "command": "vp cache clean", + "command": "vt cache clean", "and_item_index": null, "cwd": "/" }, @@ -36,7 +36,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand "Spawn": { "cache_metadata": null, "spawn_command": { - "program_path": "/node_modules/.bin/vp", + "program_path": "/node_modules/.bin/vt", "args": [ "cache", "clean" diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap index 921f6dcb..9b72f860 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand "package_path": "/" }, "resolved_config": { - "command": "vp cache clean", + "command": "vt cache clean", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/package.json index 1e0fa4aa..9addd701 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/package.json @@ -1,7 +1,7 @@ { "scripts": { "build": "print-file package.json", - "cd-build": "cd src && vp run build", - "cd-lint": "cd src && vp lint" + "cd-build": "cd src && vt run build", + "cd-lint": "cd src && vt lint" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots.toml index 7110ec34..4646c41d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots.toml @@ -1,9 +1,9 @@ -# Tests that `cd` in scripts interacts correctly with nested vp commands +# Tests that `cd` in scripts interacts correctly with nested vt commands [[plan]] -name = "cd before vp run should not affect expanded task cwd" +name = "cd before vt run should not affect expanded task cwd" args = ["run", "cd-build"] [[plan]] -name = "cd before vp lint should put synthetic task under cwd" +name = "cd before vt lint should put synthetic task under cwd" args = ["run", "cd-lint"] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt lint should put synthetic task under cwd.snap similarity index 98% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt lint should put synthetic task under cwd.snap index 06d75640..d708a120 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp lint should put synthetic task under cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt lint should put synthetic task under cwd.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "task_name": "cd-lint", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": 1, "cwd": "/src" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt run should not affect expanded task cwd.snap similarity index 99% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt run should not affect expanded task cwd.snap index 455be33a..62ef0659 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vp run should not affect expanded task cwd.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/query - cd before vt run should not affect expanded task cwd.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "task_name": "cd-build", "package_path": "/" }, - "command": "vp run build", + "command": "vt run build", "and_item_index": 1, "cwd": "/src" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap index 569325ef..a6a2057d 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts/snapshots/task graph.snap @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "package_path": "/" }, "resolved_config": { - "command": "cd src && vp run build", + "command": "cd src && vt run build", "resolved_options": { "cwd": "/", "cache_config": { @@ -84,7 +84,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cd-in-scripts "package_path": "/" }, "resolved_config": { - "command": "cd src && vp lint", + "command": "cd src && vt lint", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/packages/app/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/packages/app/package.json index 28207377..f50587f1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/packages/app/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/packages/app/package.json @@ -5,7 +5,7 @@ "build": "echo 'Building @test/app'", "check": "echo 'Checking @test/app'", "test": "echo 'Testing @test/app'", - "deploy": "vp run --filter .... build" + "deploy": "vt run --filter .... build" }, "dependencies": { "@test/lib": "workspace:*" diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots.toml index ad3d632e..0dc53666 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots.toml @@ -193,10 +193,10 @@ compact = true name = "exclude nonexistent package" args = ["run", "--filter", "!nonexistent", "build"] -# script containing "vp run --filter .... build" — expanded in plan +# script containing "vt run --filter .... build" — expanded in plan [[plan]] compact = true -name = "nested vp run with filter in script" +name = "nested vt run with filter in script" args = ["run", "--filter", "@test/app", "deploy"] # -w / --workspace-root: run task on workspace root package only diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/query - nested vp run with filter in script.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/query - nested vt run with filter in script.snap similarity index 100% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/query - nested vp run with filter in script.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/query - nested vt run with filter in script.snap diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap index 0b943a42..3634acb5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace/snapshots/task graph.snap @@ -118,7 +118,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/filter-workspace "package_path": "/packages/app" }, "resolved_config": { - "command": "vp run --filter .... build", + "command": "vt run --filter .... build", "resolved_options": { "cwd": "/packages/app", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/package.json index 03221999..9e39b7f7 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/package.json @@ -2,8 +2,8 @@ "name": "@test/nested-cache-override", "scripts": { "inner": "print-file package.json", - "outer-no-cache": "vp run --no-cache inner", - "outer-cache": "vp run --cache inner", - "outer-inherit": "vp run inner" + "outer-no-cache": "vt run --no-cache inner", + "outer-cache": "vt run --cache inner", + "outer-inherit": "vt run inner" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots.toml index 805b52fd..fd0bf2dc 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots.toml @@ -1,16 +1,16 @@ -# Tests scope of --cache/--no-cache in nested vp run commands +# Tests scope of --cache/--no-cache in nested vt run commands -# Nested vp run --no-cache disables caching for inner task +# Nested vt run --no-cache disables caching for inner task [[plan]] name = "nested --no-cache disables inner task caching" args = ["run", "outer-no-cache"] -# Nested vp run --cache enables caching for inner task +# Nested vt run --cache enables caching for inner task [[plan]] name = "nested --cache enables inner task caching" args = ["run", "outer-cache"] -# Nested vp run without flags inherits parent resolved cache +# Nested vt run without flags inherits parent resolved cache [[plan]] name = "nested run without flags inherits parent cache" args = ["run", "outer-inherit"] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap index f4155c00..9f530779 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --cache enables inner task caching.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-cache", "package_path": "/" }, - "command": "vp run --cache inner", + "command": "vt run --cache inner", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --no-cache disables inner task caching.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --no-cache disables inner task caching.snap index d690e74e..94c58825 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --no-cache disables inner task caching.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested --no-cache disables inner task caching.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-no-cache", "package_path": "/" }, - "command": "vp run --no-cache inner", + "command": "vt run --no-cache inner", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested run without flags inherits parent cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested run without flags inherits parent cache.snap index 4d2c993a..8a79b3af 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested run without flags inherits parent cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - nested run without flags inherits parent cache.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-inherit", "package_path": "/" }, - "command": "vp run inner", + "command": "vt run inner", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap index 3d49fb79..c64bcdda 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --cache propagates to nested run without flags.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-inherit", "package_path": "/" }, - "command": "vp run inner", + "command": "vt run inner", "and_item_index": null, "cwd": "/" }, 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.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap index 661a11a7..1155dabd 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache does not propagate into nested --cache.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-cache", "package_path": "/" }, - "command": "vp run --cache inner", + "command": "vt run --cache inner", "and_item_index": null, "cwd": "/" }, 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.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache propagates to nested run without flags.snap index b5e9b0cb..48c4826a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache propagates to nested run without flags.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/query - outer --no-cache propagates to nested run without flags.snap @@ -28,7 +28,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "task_name": "outer-inherit", "package_path": "/" }, - "command": "vp run inner", + "command": "vt run inner", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap index 7d6bea53..33c13073 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-override/snapshots/task graph.snap @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "package_path": "/" }, "resolved_config": { - "command": "vp run --cache inner", + "command": "vt run --cache inner", "resolved_options": { "cwd": "/", "cache_config": { @@ -84,7 +84,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "package_path": "/" }, "resolved_config": { - "command": "vp run inner", + "command": "vt run inner", "resolved_options": { "cwd": "/", "cache_config": { @@ -118,7 +118,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-cache-ove "package_path": "/" }, "resolved_config": { - "command": "vp run --no-cache inner", + "command": "vt run --no-cache inner", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/package.json index 1ef14dfe..bd2f45e1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/package.json @@ -1,6 +1,6 @@ { "scripts": { "script1": "echo hello", - "script2": "vp run script1" + "script2": "vt run script1" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots.toml index 6a235730..8e0ced55 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots.toml @@ -1,6 +1,6 @@ -# Tests nested vp run resolution +# Tests nested vt run resolution [[plan]] -name = "nested vp run" +name = "nested vt run" args = ["run", "script2"] compact = true diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/query - nested vp run.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/query - nested vt run.snap similarity index 100% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/query - nested vp run.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/query - nested vt run.snap diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap index aaeeea57..01cd79f5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks/snapshots/task graph.snap @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/nested-tasks "package_path": "/" }, "resolved_config": { - "command": "vp run script1", + "command": "vt run script1", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/package.json index 17ccddc2..dda69ab5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/package.json @@ -1,7 +1,7 @@ { "name": "@test/synthetic-cache-disabled", "scripts": { - "lint": "vp lint", - "run-build-cache-false": "vp run build" + "lint": "vt lint", + "run-build-cache-false": "vt run build" } } 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.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap index 5d5a9c6d..3dad35d5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - parent cache false does not affect expanded query tasks.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "run-build-no-cache", "package_path": "/" }, - "command": "vp run build", + "command": "vt run build", "and_item_index": null, "cwd": "/" }, @@ -52,7 +52,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "build", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, 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.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap index 636c49fb..25b6b8a2 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script cache false does not affect expanded synthetic cache.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "run-build-cache-false", "package_path": "/" }, - "command": "vp run build", + "command": "vt run build", "and_item_index": null, "cwd": "/" }, @@ -52,7 +52,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "build", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script without cache.scripts defaults to no cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script without cache.scripts defaults to no cache.snap index 9c8db1a9..f96f49c2 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script without cache.scripts defaults to no cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - script without cache.scripts defaults to no cache.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "lint", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap index d6f8c25d..4369d9c3 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task untrackedEnv inherited by synthetic.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "lint-with-untracked-env", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache false disables synthetic cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache false disables synthetic cache.snap index cfce94a1..ca6c71f5 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache false disables synthetic cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache false disables synthetic cache.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "lint-no-cache", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap index 462c04b4..d2ba7f47 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/query - task with cache true enables synthetic cache.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "task_name": "lint-with-cache", "package_path": "/" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap index 806555b4..6c110baa 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -84,7 +84,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": null @@ -106,7 +106,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -140,7 +140,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -175,7 +175,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp run build", + "command": "vt run build", "resolved_options": { "cwd": "/", "cache_config": { @@ -209,7 +209,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache- "package_path": "/" }, "resolved_config": { - "command": "vp run build", + "command": "vt run build", "resolved_options": { "cwd": "/", "cache_config": null diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json index 8158f83b..08ccd883 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-cache-disabled/vite-task.json @@ -1,23 +1,23 @@ { "tasks": { "lint-no-cache": { - "command": "vp lint", + "command": "vt lint", "cache": false }, "lint-with-cache": { - "command": "vp lint", + "command": "vt lint", "cache": true }, "lint-with-untracked-env": { - "command": "vp lint", + "command": "vt lint", "untrackedEnv": ["CUSTOM_VAR"] }, "build": { - "command": "vp lint", + "command": "vt lint", "cache": true }, "run-build-no-cache": { - "command": "vp run build", + "command": "vt run build", "cache": false } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/package.json index b75b4771..d8551423 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/package.json @@ -1,5 +1,5 @@ { "scripts": { - "lint": "vp run a#lint" + "lint": "vt run a#lint" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/packages/a/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/packages/a/package.json index abcf37e4..2631a8fb 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/packages/a/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/packages/a/package.json @@ -1,6 +1,6 @@ { "name": "a", "scripts": { - "lint": "vp lint" + "lint": "vt lint" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap index 5b3ea363..d90a0e00 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/query - synthetic-in-subpackage.snap @@ -27,7 +27,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "task_name": "lint", "package_path": "/" }, - "command": "vp run a#lint", + "command": "vt run a#lint", "and_item_index": null, "cwd": "/" }, @@ -52,7 +52,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "task_name": "lint", "package_path": "/packages/a" }, - "command": "vp lint", + "command": "vt lint", "and_item_index": null, "cwd": "/packages/a" }, diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap index db79be84..8629a5ab 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-subpackage/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "package_path": "/" }, "resolved_config": { - "command": "vp run a#lint", + "command": "vt run a#lint", "resolved_options": { "cwd": "/", "cache_config": { @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/synthetic-in-sub "package_path": "/packages/a" }, "resolved_config": { - "command": "vp lint", + "command": "vt lint", "resolved_options": { "cwd": "/packages/a", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots.toml index ade1855f..e73c7062 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots.toml @@ -1,4 +1,4 @@ [[plan]] -name = "vpr expands to vp run" +name = "vpr expands to vt run" args = ["run", "all"] compact = true diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/query - vpr expands to vp run.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/query - vpr expands to vt run.snap similarity index 100% rename from crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/query - vpr expands to vp run.snap rename to crates/vite_task_plan/tests/plan_snapshots/fixtures/vpr-shorthand/snapshots/query - vpr expands to vt run.snap diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/package.json index 17e94546..1a95b7d4 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/package.json @@ -2,6 +2,6 @@ "name": "test-workspace", "private": true, "scripts": { - "deploy": "cd packages/a && vp run deploy" + "deploy": "cd packages/a && vt run deploy" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots.toml index 1e913f3a..2c62f166 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots.toml @@ -1,5 +1,5 @@ -# Tests that `cd` before `vp run` prevents the skip rule from firing. -# Root deploy = `cd packages/a && vp run deploy`. +# Tests that `cd` before `vt run` prevents the skip rule from firing. +# Root deploy = `cd packages/a && vt run deploy`. # # The skip rule compares TaskQuery, which includes ContainingPackage(cwd). # After `cd packages/a`, the cwd changes, so the nested query resolves to diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap index 2076590e..2b797265 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-cd-no-skip/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-c "package_path": "/" }, "resolved_config": { - "command": "cd packages/a && vp run deploy", + "command": "cd packages/a && vt run deploy", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots.toml index d240f5b1..b1c8813b 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots.toml @@ -1,5 +1,5 @@ # Tests that dependsOn works through a passthrough root task. -# Root build = "vp run -r build", with dependsOn: ["lint"]. +# Root build = "vt run -r build", with dependsOn: ["lint"]. # The skip rule skips the recursive part, but the dependsOn lint tasks still run. [[plan]] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap index 088a4c4a..2b2df2a9 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-d "package_path": "/" }, "resolved_config": { - "command": "vp run -r build", + "command": "vt run -r build", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/vite-task.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/vite-task.json index 38c35fb2..51e7455a 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/vite-task.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-depends-on-passthrough/vite-task.json @@ -2,7 +2,7 @@ "cache": true, "tasks": { "build": { - "command": "vp run -r build", + "command": "vt run -r build", "dependsOn": ["lint"] } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/package.json index 1f7300d5..bd957321 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/package.json @@ -2,6 +2,6 @@ "name": "test-workspace", "private": true, "scripts": { - "build": "echo pre && vp run -r build" + "build": "echo pre && vt run -r build" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots.toml index fdda13ff..e8fb7b93 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots.toml @@ -1,5 +1,5 @@ -# Tests multi-command with self-referencing: root build = "echo pre && vp run -r build" -# The skip rule skips the recursive `vp run -r build` part, echo pre still runs. +# Tests multi-command with self-referencing: root build = "echo pre && vt run -r build" +# The skip rule skips the recursive `vt run -r build` part, echo pre still runs. [[plan]] name = "multi command skips recursive part" diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap index a4ebfd9c..ad3d26a1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-multi-command/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "package_path": "/" }, "resolved_config": { - "command": "echo pre && vp run -r build", + "command": "echo pre && vt run -r build", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/package.json index 26a2aa6f..93a79886 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/package.json @@ -2,7 +2,7 @@ "name": "test-workspace", "private": true, "scripts": { - "build": "vp run -r test", - "test": "vp run -r build" + "build": "vt run -r test", + "test": "vt run -r build" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots.toml index 90860234..d2c61ca2 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots.toml @@ -1,4 +1,4 @@ -# Tests mutual recursion detection: root#build → vp run -r test → root#test → vp run -r build → root#build +# Tests mutual recursion detection: root#build → vt run -r test → root#test → vt run -r build → root#build # This is NOT self-recursion — it's caught by check_recursion as mutual recursion. [[plan]] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/query - mutual recursion error.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/query - mutual recursion error.snap index 6202acc1..ea18f6a9 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/query - mutual recursion error.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/query - mutual recursion error.snap @@ -8,4 +8,4 @@ info: - build input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion --- -Failed to plan tasks from `vp run -r test` in task test-workspace#build: Failed to plan tasks from `vp run -r build` in task test-workspace#test: Detected a recursion in task call stack: the last frame calls the 1th frame +Failed to plan tasks from `vt run -r test` in task test-workspace#build: Failed to plan tasks from `vt run -r build` in task test-workspace#test: Detected a recursion in task call stack: the last frame calls the 1th frame diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap index 2414b07c..56f5e1d1 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-mutual-recursion/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "package_path": "/" }, "resolved_config": { - "command": "vp run -r test", + "command": "vt run -r test", "resolved_options": { "cwd": "/", "cache_config": { @@ -50,7 +50,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-m "package_path": "/" }, "resolved_config": { - "command": "vp run -r build", + "command": "vt run -r build", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/package.json b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/package.json index 20e8e426..ea186e96 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/package.json +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/package.json @@ -2,6 +2,6 @@ "name": "test-workspace", "private": true, "scripts": { - "build": "vp run -r build" + "build": "vt run -r build" } } diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots.toml b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots.toml index 2006d05d..9353f4af 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots.toml +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots.toml @@ -1,11 +1,11 @@ # Tests workspace root self-reference handling (skip rule and prune rule). -# Root build = `vp run -r build`. +# Root build = `vt run -r build`. # # The skip rule compares TaskQuery (package_query + task_name + include_explicit_deps). # Extra args are in PlanOptions, not TaskQuery, so they don't affect skip/prune. -# Skip rule: the nested `vp run -r build` produces the same query as the -# top-level `vp run -r build`, so the expansion is skipped. Root#build +# Skip rule: the nested `vt run -r build` produces the same query as the +# top-level `vt run -r build`, so the expansion is skipped. Root#build # becomes a passthrough (no items). Siblings a and b run normally. [[plan]] name = "recursive build skips self" @@ -19,8 +19,8 @@ name = "recursive build with extra arg skips self" args = ["run", "-r", "build", "extra_arg"] compact = true -# Prune rule: top-level query is `vp run build` (ContainingPackage), but root's -# script produces `vp run -r build` (All). The queries differ, so the skip rule +# Prune rule: top-level query is `vt run build` (ContainingPackage), but root's +# script produces `vt run -r build` (All). The queries differ, so the skip rule # does not fire. The nested All query finds root + a + b; the prune rule removes # root (the expanding task) from the result, leaving a and b. [[plan]] diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap index 97461bd0..74c8e04e 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-self-reference/snapshots/task graph.snap @@ -16,7 +16,7 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/workspace-root-s "package_path": "/" }, "resolved_config": { - "command": "vp run -r build", + "command": "vt run -r build", "resolved_options": { "cwd": "/", "cache_config": { diff --git a/crates/vite_task_plan/tests/plan_snapshots/main.rs b/crates/vite_task_plan/tests/plan_snapshots/main.rs index 1ea6877f..7d99e759 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/main.rs +++ b/crates/vite_task_plan/tests/plan_snapshots/main.rs @@ -22,7 +22,7 @@ use vite_workspace::find_workspace_root; /// Local parser wrapper for `BuiltInCommand` #[derive(Parser)] -#[command(name = "vp")] +#[command(name = "vt")] enum Cli { #[clap(flatten)] Command(Command), @@ -194,11 +194,11 @@ fn run_case_inner( runtime.block_on(async { let workspace_root_str = workspace_root.path.as_path().to_str().unwrap(); - let mut owned_callbacks = vite_task_bin::OwnedSessionCallbacks::default(); + let mut owned_config = vite_task_bin::OwnedSessionConfig::default(); let mut session = Session::init_with( plan_envs, Arc::clone(&workspace_root.path), - owned_callbacks.as_callbacks(), + owned_config.as_config(), ) .unwrap(); @@ -239,7 +239,7 @@ fn run_case_inner( let _guard = case_settings.bind_to_scope(); let cli = match Cli::try_parse_from( - std::iter::once("vp") // dummy program name + std::iter::once("vt") // dummy program name .chain(plan.args.iter().map(vite_str::Str::as_str)), ) { Ok(ok) => ok, From 0173c6788e82427364958cd73b18c04426d8950a Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 12 Mar 2026 11:07:09 +0800 Subject: [PATCH 2/4] fix: remove stale lint expectation in session init_with MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `needless_pass_by_value` expect was no longer triggered after the SessionCallbacks → SessionConfig rename, causing clippy to error on the unfulfilled expectation. Co-Authored-By: Claude Sonnet 4.6 --- crates/vite_task/src/session/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/vite_task/src/session/mod.rs b/crates/vite_task/src/session/mod.rs index 275efac2..e9eca149 100644 --- a/crates/vite_task/src/session/mod.rs +++ b/crates/vite_task/src/session/mod.rs @@ -217,10 +217,6 @@ impl<'a> Session<'a> { /// /// Returns an error if workspace root cannot be found or PATH env cannot be prepended. #[tracing::instrument(level = "debug", skip_all)] - #[expect( - clippy::needless_pass_by_value, - reason = "cwd is an Arc that gets cloned internally, pass by value is intentional" - )] pub fn init_with( mut envs: FxHashMap, Arc>, cwd: Arc, From 6e1e26e96de4dbf5bbe88d3eed80dba6bebe25f4 Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 12 Mar 2026 11:20:30 +0800 Subject: [PATCH 3/4] fix: track dummy vt binary in cache-subcommand fixture The vp dummy binary was previously tracked in git (bypassing gitignore). The rename commit deleted it but didn't add the replacement vt dummy, causing CI to fail to resolve the vt executable during plan snapshot tests. Co-Authored-By: Claude Sonnet 4.6 --- .../fixtures/cache-subcommand/node_modules/.bin/vt | 2 ++ .../fixtures/cache-subcommand/node_modules/.bin/vt.cmd | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt create mode 100644 crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt new file mode 100755 index 00000000..c635c2dc --- /dev/null +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt @@ -0,0 +1,2 @@ +# Dummy executable so `which("vite")` succeeds during plan resolution. +# This file is never actually executed. diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd new file mode 100644 index 00000000..0efc832a --- /dev/null +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd @@ -0,0 +1,2 @@ +@REM Dummy executable so `which("vite")` succeeds during plan resolution on Windows. +@REM This file is never actually executed. From b2910deafe9e2a727df38fd47b7d6e8ea65923a9 Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 12 Mar 2026 11:32:54 +0800 Subject: [PATCH 4/4] fix: update stale `vite` reference in vt dummy binary comments Co-Authored-By: Claude Sonnet 4.6 --- .../fixtures/cache-subcommand/node_modules/.bin/vt | 2 +- .../fixtures/cache-subcommand/node_modules/.bin/vt.cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt index c635c2dc..b43631fc 100755 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt @@ -1,2 +1,2 @@ -# Dummy executable so `which("vite")` succeeds during plan resolution. +# Dummy executable so `which("vt")` succeeds during plan resolution. # This file is never actually executed. diff --git a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd index 0efc832a..91c459bd 100644 --- a/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd +++ b/crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-subcommand/node_modules/.bin/vt.cmd @@ -1,2 +1,2 @@ -@REM Dummy executable so `which("vite")` succeeds during plan resolution on Windows. +@REM Dummy executable so `which("vt")` succeeds during plan resolution on Windows. @REM This file is never actually executed.