From e81cb2189862d8b48ba8413484a899ab07b95457 Mon Sep 17 00:00:00 2001 From: MK Date: Thu, 25 Sep 2025 14:57:25 +0800 Subject: [PATCH 1/2] chore(task): remove unuse empty line --- crates/vite_task/src/schedule.rs | 1 - packages/cli/snap-tests/associate-existing-cache/snap.txt | 3 --- packages/cli/snap-tests/builtin-different-cwd/snap.txt | 4 ---- packages/cli/snap-tests/cache-clean/snap.txt | 4 ---- .../cli/snap-tests/cache-miss-command-change/snap.txt | 5 ----- .../cli/snap-tests/change-passthrough-env-config/snap.txt | 3 --- packages/cli/snap-tests/check-oxlint-env/snap.txt | 3 --- packages/cli/snap-tests/command-doc/snap.txt | 2 -- packages/cli/snap-tests/command-helper/snap.txt | 5 ----- packages/cli/snap-tests/command-install-shortcut/snap.txt | 3 --- packages/cli/snap-tests/command-lib/snap.txt | 3 --- packages/cli/snap-tests/exit-code/snap.txt | 4 ---- packages/cli/snap-tests/ignore_dist/snap.txt | 2 -- .../cli/snap-tests/individual-cache-for-adt-args/snap.txt | 4 ---- .../cli/snap-tests/individual-cache-for-envs/snap.txt | 4 ---- packages/cli/snap-tests/lint-dot-git/snap.txt | 2 -- packages/cli/snap-tests/npm-install-with-options/snap.txt | 3 --- packages/cli/snap-tests/pass-no-color-env/snap.txt | 2 -- packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt | 8 -------- packages/cli/snap-tests/plain-terminal-ui/snap.txt | 8 -------- .../snap-tests/replay-logs-chronological-order/snap.txt | 5 ----- packages/cli/snap-tests/same-name-as-builtin/snap.txt | 4 ---- packages/cli/snap-tests/shared-caching-inputs/snap.txt | 4 ---- packages/cli/snap-tests/task-config-cwd/snap.txt | 1 - packages/cli/snap-tests/test-nested-tasks/snap.txt | 3 --- .../cli/snap-tests/workspace-root-vite-config/snap.txt | 1 - .../cli/snap-tests/yarn-install-with-options/snap.txt | 3 --- 27 files changed, 94 deletions(-) diff --git a/crates/vite_task/src/schedule.rs b/crates/vite_task/src/schedule.rs index 56001874e4..6f3af74313 100644 --- a/crates/vite_task/src/schedule.rs +++ b/crates/vite_task/src/schedule.rs @@ -167,7 +167,6 @@ impl ExecutionPlan { // Execute or replay the task let exit_status = execute_or_replay.await?; - println!(); Ok(ExecutionStatus { execution_id, pre_execution_status, diff --git a/packages/cli/snap-tests/associate-existing-cache/snap.txt b/packages/cli/snap-tests/associate-existing-cache/snap.txt index 052b6566ed..f395e523ee 100644 --- a/packages/cli/snap-tests/associate-existing-cache/snap.txt +++ b/packages/cli/snap-tests/associate-existing-cache/snap.txt @@ -2,7 +2,6 @@ $ echo hello hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ echo hello (✓ cache hit, replaying) hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -39,7 +37,6 @@ Task Details: $ echo world (✗ cache miss: command changed, executing) world - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/builtin-different-cwd/snap.txt b/packages/cli/snap-tests/builtin-different-cwd/snap.txt index 60b585a595..a0afbc7dba 100644 --- a/packages/cli/snap-tests/builtin-different-cwd/snap.txt +++ b/packages/cli/snap-tests/builtin-different-cwd/snap.txt @@ -2,21 +2,17 @@ Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - > cd folder2 && vite lint # should create different cache even though the package is the same Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - > echo 'console.log(1);' > folder2/a.js > cd folder1 && vite lint ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - > cd folder2 && vite lint ✗ cache miss: content of input 'folder2/a.js' changed, executing Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - diff --git a/packages/cli/snap-tests/cache-clean/snap.txt b/packages/cli/snap-tests/cache-clean/snap.txt index 6a1332c0fd..5b3432f193 100644 --- a/packages/cli/snap-tests/cache-clean/snap.txt +++ b/packages/cli/snap-tests/cache-clean/snap.txt @@ -2,7 +2,6 @@ $ echo hello hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ echo hello (✓ cache hit, replaying) hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -39,7 +37,6 @@ Task Details: $ echo hello hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -58,7 +55,6 @@ Task Details: $ echo hello hello - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/cache-miss-command-change/snap.txt b/packages/cli/snap-tests/cache-miss-command-change/snap.txt index cefa9ddccb..d363796927 100644 --- a/packages/cli/snap-tests/cache-miss-command-change/snap.txt +++ b/packages/cli/snap-tests/cache-miss-command-change/snap.txt @@ -1,11 +1,9 @@ > vite run hello # create caches for 'echo foo' and 'echo bar' $ echo foo foo - $ echo bar bar - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -26,11 +24,9 @@ Task Details: > vite run hello # should report cache miss of the first subcommand, and hit cache of the second subcommand $ echo baz (✗ cache miss: command changed, executing) baz - $ echo bar (✓ cache hit, replaying) bar - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -52,7 +48,6 @@ Task Details: $ echo bar (✓ cache hit, replaying) bar - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/change-passthrough-env-config/snap.txt b/packages/cli/snap-tests/change-passthrough-env-config/snap.txt index d29b6fb916..744de4231b 100644 --- a/packages/cli/snap-tests/change-passthrough-env-config/snap.txt +++ b/packages/cli/snap-tests/change-passthrough-env-config/snap.txt @@ -2,7 +2,6 @@ $ node -p process.env.MY_ENV 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ node -p process.env.MY_ENV (✓ cache hit, replaying) 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -39,7 +37,6 @@ Task Details: $ node -p process.env.MY_ENV (✗ cache miss: envs changed, executing) 2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/check-oxlint-env/snap.txt b/packages/cli/snap-tests/check-oxlint-env/snap.txt index e2116c8f9b..d27e407777 100644 --- a/packages/cli/snap-tests/check-oxlint-env/snap.txt +++ b/packages/cli/snap-tests/check-oxlint-env/snap.txt @@ -2,7 +2,6 @@ $ node check.js OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -21,8 +20,6 @@ Task Details: $ node check.js OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint2 - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/command-doc/snap.txt b/packages/cli/snap-tests/command-doc/snap.txt index b3c35c3f5e..f6c8751759 100644 --- a/packages/cli/snap-tests/command-doc/snap.txt +++ b/packages/cli/snap-tests/command-doc/snap.txt @@ -4,7 +4,6 @@ build complete in ms. - - building client + server bundles... ✓ building client + server bundles... - rendering pages... @@ -17,7 +16,6 @@ build complete in ms. build complete in ms. - - building client + server bundles... ✓ building client + server bundles... - rendering pages... diff --git a/packages/cli/snap-tests/command-helper/snap.txt b/packages/cli/snap-tests/command-helper/snap.txt index 70d1bdf9dc..e5f0950a9a 100644 --- a/packages/cli/snap-tests/command-helper/snap.txt +++ b/packages/cli/snap-tests/command-helper/snap.txt @@ -49,7 +49,6 @@ Options: -h, --help Display this message -v, --version Display version number - > vite fmt -h # fmt help message Usage: [--check | --list-different] [PATH]... @@ -70,7 +69,6 @@ Available options: -V, --version Prints version information - > vite lint -h # lint help message Usage: [-c=<./.oxlintrc.json>] [PATH]... @@ -167,7 +165,6 @@ Available options: -V, --version Prints version information - > vite build -h # build help message vite/ @@ -197,7 +194,6 @@ Options: -m, --mode [string] set env mode -h, --help Display this message - > vite test -h # test help message vitest/ WARN: no options were found for your subcommands so we printed the whole output @@ -288,4 +284,3 @@ Options: --standalone Start Vitest without running tests. File filters will be ignored, tests will be running only on change (default: false) --mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests -h, --help Display this message - diff --git a/packages/cli/snap-tests/command-install-shortcut/snap.txt b/packages/cli/snap-tests/command-install-shortcut/snap.txt index d7b3b2769c..cd8df875ce 100644 --- a/packages/cli/snap-tests/command-install-shortcut/snap.txt +++ b/packages/cli/snap-tests/command-install-shortcut/snap.txt @@ -8,7 +8,6 @@ dependencies: Done in ms using pnpm v - > vite i # install shortcut hit cache ✓ cache hit, replaying Packages: + @@ -20,7 +19,6 @@ dependencies: Done in ms using pnpm v - > vite install # install command still hit cache ✓ cache hit, replaying Packages: + @@ -31,4 +29,3 @@ dependencies: + tslib Done in ms using pnpm v - diff --git a/packages/cli/snap-tests/command-lib/snap.txt b/packages/cli/snap-tests/command-lib/snap.txt index f166452071..0a89e82633 100644 --- a/packages/cli/snap-tests/command-lib/snap.txt +++ b/packages/cli/snap-tests/command-lib/snap.txt @@ -49,7 +49,6 @@ Options: -h, --help Display this message -v, --version Display version number - > vite lib src/index.ts # should build the library ℹ tsdown v powered by rolldown v ℹ entry: src/index.ts @@ -58,7 +57,6 @@ Options: ℹ 1 files, total: kB ✔ Build complete in ms - > ls dist # should have the library index.js @@ -70,4 +68,3 @@ index.js ℹ dist/index.js kB │ gzip: kB ℹ 1 files, total: kB ✔ Build complete in ms - diff --git a/packages/cli/snap-tests/exit-code/snap.txt b/packages/cli/snap-tests/exit-code/snap.txt index d9531e4a4e..99f355d3d6 100644 --- a/packages/cli/snap-tests/exit-code/snap.txt +++ b/packages/cli/snap-tests/exit-code/snap.txt @@ -2,7 +2,6 @@ $ echo success success - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ echo success (✓ cache hit, replaying) success - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -38,7 +36,6 @@ Task Details: $ node failure.js failure - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -56,7 +53,6 @@ Task Details: $ node failure.js failure - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/ignore_dist/snap.txt b/packages/cli/snap-tests/ignore_dist/snap.txt index b73c154cf6..41820da28e 100644 --- a/packages/cli/snap-tests/ignore_dist/snap.txt +++ b/packages/cli/snap-tests/ignore_dist/snap.txt @@ -2,10 +2,8 @@ Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. - > mkdir dist > vite lint # new dist folder should not invalidate cache ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. - diff --git a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt index 11abb67238..7833ae8876 100644 --- a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt +++ b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt @@ -2,7 +2,6 @@ $ echo a a - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ echo b b - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -38,7 +36,6 @@ Task Details: $ echo a (✓ cache hit, replaying) a - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -56,7 +53,6 @@ Task Details: $ echo b (✓ cache hit, replaying) b - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/individual-cache-for-envs/snap.txt b/packages/cli/snap-tests/individual-cache-for-envs/snap.txt index ea1e95a78c..e00d93dea6 100644 --- a/packages/cli/snap-tests/individual-cache-for-envs/snap.txt +++ b/packages/cli/snap-tests/individual-cache-for-envs/snap.txt @@ -2,7 +2,6 @@ $ node -p process.env.FOO 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ node -p process.env.FOO (✗ cache miss: envs changed, executing) 2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -38,7 +36,6 @@ Task Details: $ node -p process.env.FOO (✓ cache hit, replaying) 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -56,7 +53,6 @@ Task Details: $ node -p process.env.FOO (✓ cache hit, replaying) 2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/lint-dot-git/snap.txt b/packages/cli/snap-tests/lint-dot-git/snap.txt index 85ab452152..588cbc5271 100644 --- a/packages/cli/snap-tests/lint-dot-git/snap.txt +++ b/packages/cli/snap-tests/lint-dot-git/snap.txt @@ -3,10 +3,8 @@ Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. - > echo hello > .git/foo.txt > vite lint # changes inside .git should not invalidate cache ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. - diff --git a/packages/cli/snap-tests/npm-install-with-options/snap.txt b/packages/cli/snap-tests/npm-install-with-options/snap.txt index a29fbd3359..6521044bec 100644 --- a/packages/cli/snap-tests/npm-install-with-options/snap.txt +++ b/packages/cli/snap-tests/npm-install-with-options/snap.txt @@ -20,14 +20,12 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall Run "npm help install" for more info - > vite install --production # https://docs.npmjs.com/cli/v10/commands/npm-install added 1 package, and audited 2 packages in ms found 0 vulnerabilities - npm warn config production Use `--omit=dev` instead. > ls node_modules @@ -41,5 +39,4 @@ added 1 package, and audited 2 packages in ms found 0 vulnerabilities - npm warn config production Use `--omit=dev` instead. diff --git a/packages/cli/snap-tests/pass-no-color-env/snap.txt b/packages/cli/snap-tests/pass-no-color-env/snap.txt index 0acc252001..e3ca65121b 100644 --- a/packages/cli/snap-tests/pass-no-color-env/snap.txt +++ b/packages/cli/snap-tests/pass-no-color-env/snap.txt @@ -2,7 +2,6 @@ $ node check.js --foo NO_COLOR=true, CI=true - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ node check.js --bar NO_COLOR=false, CI=true - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt b/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt index 67d25e8e79..e82b4c0dc1 100644 --- a/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt +++ b/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt @@ -2,14 +2,10 @@ $ vite lint ./src Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - - $ vite lint Found 0 warnings and 0 errors. Finished in ms on 2 files with rules using threads. - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -31,14 +27,10 @@ Task Details: $ vite lint ./src (✓ cache hit, replaying) Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - - $ vite lint (✗ cache miss: content of input 'a.ts' changed, executing) Found 0 warnings and 0 errors. Finished in ms on 2 files with rules using threads. - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/plain-terminal-ui/snap.txt b/packages/cli/snap-tests/plain-terminal-ui/snap.txt index 4182acfc4b..02ef214e04 100644 --- a/packages/cli/snap-tests/plain-terminal-ui/snap.txt +++ b/packages/cli/snap-tests/plain-terminal-ui/snap.txt @@ -2,7 +2,6 @@ $ node hello.mjs input_content 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ node hello.mjs (✓ cache hit, replaying) input_content 1 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -38,7 +36,6 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content 2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -56,7 +53,6 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content 2 - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -74,7 +70,6 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content undefined - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -93,7 +88,6 @@ Task Details: $ node hello.mjs (✗ cache miss: content of input 'input.txt' changed, executing) bar undefined - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -112,7 +106,6 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) bar undefined - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -131,7 +124,6 @@ Task Details: ~/subfolder$ node hello.mjs (✗ cache miss: working directory changed, executing) hello from subfolder - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt b/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt index 37ea529663..19e1ca8d0d 100644 --- a/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt +++ b/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt @@ -94,7 +94,6 @@ $ node build.js [echo.js] -------------------------------- [build.js] main process end - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -204,7 +203,6 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -314,7 +312,6 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -424,7 +421,6 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -534,7 +530,6 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/same-name-as-builtin/snap.txt b/packages/cli/snap-tests/same-name-as-builtin/snap.txt index 893041b409..6516e6823d 100644 --- a/packages/cli/snap-tests/same-name-as-builtin/snap.txt +++ b/packages/cli/snap-tests/same-name-as-builtin/snap.txt @@ -2,12 +2,10 @@ Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - > vite run lint # lint script should have different cache from builtin lint $ echo lint script lint script - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -27,12 +25,10 @@ Task Details: Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. - > vite run lint $ echo lint script (✓ cache hit, replaying) lint script - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/shared-caching-inputs/snap.txt b/packages/cli/snap-tests/shared-caching-inputs/snap.txt index a29a3fb490..e1f5409d0d 100644 --- a/packages/cli/snap-tests/shared-caching-inputs/snap.txt +++ b/packages/cli/snap-tests/shared-caching-inputs/snap.txt @@ -2,7 +2,6 @@ $ cat foo.txt bar - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,7 +19,6 @@ Task Details: $ cat foo.txt (✓ cache hit, replaying) bar - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -39,7 +37,6 @@ Task Details: $ cat foo.txt (✗ cache miss: content of input 'foo.txt' changed, executing) baz - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -57,7 +54,6 @@ Task Details: $ cat foo.txt (✓ cache hit, replaying) baz - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/task-config-cwd/snap.txt b/packages/cli/snap-tests/task-config-cwd/snap.txt index e93919dbc5..84cf331750 100644 --- a/packages/cli/snap-tests/task-config-cwd/snap.txt +++ b/packages/cli/snap-tests/task-config-cwd/snap.txt @@ -2,7 +2,6 @@ ~/subfolder$ node a.js hello from subfolder - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/test-nested-tasks/snap.txt b/packages/cli/snap-tests/test-nested-tasks/snap.txt index 77646d7252..95d8d11772 100644 --- a/packages/cli/snap-tests/test-nested-tasks/snap.txt +++ b/packages/cli/snap-tests/test-nested-tasks/snap.txt @@ -2,7 +2,6 @@ $ echo 'hello vite' hello vite - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,8 +19,6 @@ Task Details: $ echo 'hello vite' (✓ cache hit, replaying) hello vite - - ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/workspace-root-vite-config/snap.txt b/packages/cli/snap-tests/workspace-root-vite-config/snap.txt index 0be72a4048..86450c5d08 100644 --- a/packages/cli/snap-tests/workspace-root-vite-config/snap.txt +++ b/packages/cli/snap-tests/workspace-root-vite-config/snap.txt @@ -7,4 +7,3 @@ packages/app-b/index.js (ms) Format issues found in above 1 files. Run without `--check` to fix. Finished in ms on 1 files using threads. - diff --git a/packages/cli/snap-tests/yarn-install-with-options/snap.txt b/packages/cli/snap-tests/yarn-install-with-options/snap.txt index 93dd8a9a28..b8762de487 100644 --- a/packages/cli/snap-tests/yarn-install-with-options/snap.txt +++ b/packages/cli/snap-tests/yarn-install-with-options/snap.txt @@ -64,7 +64,6 @@ Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. - > vite install --prod # https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-production-true-false yarn install v info No lockfile found. @@ -75,7 +74,6 @@ info No lockfile found. success Saved lockfile. Done in ms. - > ls node_modules tslib @@ -89,4 +87,3 @@ info No lockfile found. [4/4] Building fresh packages... success Saved lockfile. Done in ms. - From 0bf3cde9e6580f0e9d8b16b84e88ce89ee7853b9 Mon Sep 17 00:00:00 2001 From: branchseer Date: Thu, 25 Sep 2025 15:17:03 +0800 Subject: [PATCH 2/2] add case task-no-trailing-newline --- crates/vite_task/src/schedule.rs | 3 +++ .../associate-existing-cache/snap.txt | 3 +++ .../snap-tests/builtin-different-cwd/snap.txt | 4 ++++ packages/cli/snap-tests/cache-clean/snap.txt | 4 ++++ .../cache-miss-command-change/snap.txt | 5 +++++ .../change-passthrough-env-config/snap.txt | 3 +++ .../cli/snap-tests/check-oxlint-env/snap.txt | 3 +++ packages/cli/snap-tests/command-doc/snap.txt | 2 ++ .../cli/snap-tests/command-helper/snap.txt | 5 +++++ .../command-install-shortcut/snap.txt | 3 +++ packages/cli/snap-tests/command-lib/snap.txt | 3 +++ packages/cli/snap-tests/exit-code/snap.txt | 4 ++++ packages/cli/snap-tests/ignore_dist/snap.txt | 2 ++ .../individual-cache-for-adt-args/snap.txt | 4 ++++ .../individual-cache-for-envs/snap.txt | 4 ++++ packages/cli/snap-tests/lint-dot-git/snap.txt | 2 ++ .../npm-install-with-options/snap.txt | 3 +++ .../cli/snap-tests/pass-no-color-env/snap.txt | 2 ++ .../plain-terminal-ui-nested/snap.txt | 8 +++++++ .../cli/snap-tests/plain-terminal-ui/snap.txt | 8 +++++++ .../replay-logs-chronological-order/snap.txt | 5 +++++ .../snap-tests/same-name-as-builtin/snap.txt | 4 ++++ .../snap-tests/shared-caching-inputs/snap.txt | 4 ++++ .../cli/snap-tests/task-config-cwd/snap.txt | 1 + .../task-no-trailing-newline/package.json | 5 +++++ .../task-no-trailing-newline/snap.txt | 22 +++++++++++++++++++ .../task-no-trailing-newline/steps.json | 8 +++++++ .../cli/snap-tests/test-nested-tasks/snap.txt | 3 +++ .../workspace-root-vite-config/snap.txt | 1 + .../yarn-install-with-options/snap.txt | 3 +++ 30 files changed, 131 insertions(+) create mode 100644 packages/cli/snap-tests/task-no-trailing-newline/package.json create mode 100644 packages/cli/snap-tests/task-no-trailing-newline/snap.txt create mode 100644 packages/cli/snap-tests/task-no-trailing-newline/steps.json diff --git a/crates/vite_task/src/schedule.rs b/crates/vite_task/src/schedule.rs index 6f3af74313..73a82b7e86 100644 --- a/crates/vite_task/src/schedule.rs +++ b/crates/vite_task/src/schedule.rs @@ -167,6 +167,9 @@ impl ExecutionPlan { // Execute or replay the task let exit_status = execute_or_replay.await?; + + // FIXME: Print a new line to separate the tasks output, need a better solution + println!(); Ok(ExecutionStatus { execution_id, pre_execution_status, diff --git a/packages/cli/snap-tests/associate-existing-cache/snap.txt b/packages/cli/snap-tests/associate-existing-cache/snap.txt index f395e523ee..052b6566ed 100644 --- a/packages/cli/snap-tests/associate-existing-cache/snap.txt +++ b/packages/cli/snap-tests/associate-existing-cache/snap.txt @@ -2,6 +2,7 @@ $ echo hello hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ echo hello (✓ cache hit, replaying) hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -37,6 +39,7 @@ Task Details: $ echo world (✗ cache miss: command changed, executing) world + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/builtin-different-cwd/snap.txt b/packages/cli/snap-tests/builtin-different-cwd/snap.txt index a0afbc7dba..60b585a595 100644 --- a/packages/cli/snap-tests/builtin-different-cwd/snap.txt +++ b/packages/cli/snap-tests/builtin-different-cwd/snap.txt @@ -2,17 +2,21 @@ Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + > cd folder2 && vite lint # should create different cache even though the package is the same Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + > echo 'console.log(1);' > folder2/a.js > cd folder1 && vite lint ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + > cd folder2 && vite lint ✗ cache miss: content of input 'folder2/a.js' changed, executing Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + diff --git a/packages/cli/snap-tests/cache-clean/snap.txt b/packages/cli/snap-tests/cache-clean/snap.txt index 5b3432f193..6a1332c0fd 100644 --- a/packages/cli/snap-tests/cache-clean/snap.txt +++ b/packages/cli/snap-tests/cache-clean/snap.txt @@ -2,6 +2,7 @@ $ echo hello hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ echo hello (✓ cache hit, replaying) hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -37,6 +39,7 @@ Task Details: $ echo hello hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -55,6 +58,7 @@ Task Details: $ echo hello hello + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/cache-miss-command-change/snap.txt b/packages/cli/snap-tests/cache-miss-command-change/snap.txt index d363796927..cefa9ddccb 100644 --- a/packages/cli/snap-tests/cache-miss-command-change/snap.txt +++ b/packages/cli/snap-tests/cache-miss-command-change/snap.txt @@ -1,9 +1,11 @@ > vite run hello # create caches for 'echo foo' and 'echo bar' $ echo foo foo + $ echo bar bar + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -24,9 +26,11 @@ Task Details: > vite run hello # should report cache miss of the first subcommand, and hit cache of the second subcommand $ echo baz (✗ cache miss: command changed, executing) baz + $ echo bar (✓ cache hit, replaying) bar + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -48,6 +52,7 @@ Task Details: $ echo bar (✓ cache hit, replaying) bar + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/change-passthrough-env-config/snap.txt b/packages/cli/snap-tests/change-passthrough-env-config/snap.txt index 744de4231b..d29b6fb916 100644 --- a/packages/cli/snap-tests/change-passthrough-env-config/snap.txt +++ b/packages/cli/snap-tests/change-passthrough-env-config/snap.txt @@ -2,6 +2,7 @@ $ node -p process.env.MY_ENV 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ node -p process.env.MY_ENV (✓ cache hit, replaying) 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -37,6 +39,7 @@ Task Details: $ node -p process.env.MY_ENV (✗ cache miss: envs changed, executing) 2 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/check-oxlint-env/snap.txt b/packages/cli/snap-tests/check-oxlint-env/snap.txt index d27e407777..e2116c8f9b 100644 --- a/packages/cli/snap-tests/check-oxlint-env/snap.txt +++ b/packages/cli/snap-tests/check-oxlint-env/snap.txt @@ -2,6 +2,7 @@ $ node check.js OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -20,6 +21,8 @@ Task Details: $ node check.js OXLINT_TSGOLINT_PATH=/path/to/oxlint_tsgolint2 + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/command-doc/snap.txt b/packages/cli/snap-tests/command-doc/snap.txt index f6c8751759..b3c35c3f5e 100644 --- a/packages/cli/snap-tests/command-doc/snap.txt +++ b/packages/cli/snap-tests/command-doc/snap.txt @@ -4,6 +4,7 @@ build complete in ms. + - building client + server bundles... ✓ building client + server bundles... - rendering pages... @@ -16,6 +17,7 @@ build complete in ms. build complete in ms. + - building client + server bundles... ✓ building client + server bundles... - rendering pages... diff --git a/packages/cli/snap-tests/command-helper/snap.txt b/packages/cli/snap-tests/command-helper/snap.txt index e5f0950a9a..70d1bdf9dc 100644 --- a/packages/cli/snap-tests/command-helper/snap.txt +++ b/packages/cli/snap-tests/command-helper/snap.txt @@ -49,6 +49,7 @@ Options: -h, --help Display this message -v, --version Display version number + > vite fmt -h # fmt help message Usage: [--check | --list-different] [PATH]... @@ -69,6 +70,7 @@ Available options: -V, --version Prints version information + > vite lint -h # lint help message Usage: [-c=<./.oxlintrc.json>] [PATH]... @@ -165,6 +167,7 @@ Available options: -V, --version Prints version information + > vite build -h # build help message vite/ @@ -194,6 +197,7 @@ Options: -m, --mode [string] set env mode -h, --help Display this message + > vite test -h # test help message vitest/ WARN: no options were found for your subcommands so we printed the whole output @@ -284,3 +288,4 @@ Options: --standalone Start Vitest without running tests. File filters will be ignored, tests will be running only on change (default: false) --mergeReports [path] Path to a blob reports directory. If this options is used, Vitest won't run any tests, it will only report previously recorded tests -h, --help Display this message + diff --git a/packages/cli/snap-tests/command-install-shortcut/snap.txt b/packages/cli/snap-tests/command-install-shortcut/snap.txt index cd8df875ce..d7b3b2769c 100644 --- a/packages/cli/snap-tests/command-install-shortcut/snap.txt +++ b/packages/cli/snap-tests/command-install-shortcut/snap.txt @@ -8,6 +8,7 @@ dependencies: Done in ms using pnpm v + > vite i # install shortcut hit cache ✓ cache hit, replaying Packages: + @@ -19,6 +20,7 @@ dependencies: Done in ms using pnpm v + > vite install # install command still hit cache ✓ cache hit, replaying Packages: + @@ -29,3 +31,4 @@ dependencies: + tslib Done in ms using pnpm v + diff --git a/packages/cli/snap-tests/command-lib/snap.txt b/packages/cli/snap-tests/command-lib/snap.txt index 0a89e82633..f166452071 100644 --- a/packages/cli/snap-tests/command-lib/snap.txt +++ b/packages/cli/snap-tests/command-lib/snap.txt @@ -49,6 +49,7 @@ Options: -h, --help Display this message -v, --version Display version number + > vite lib src/index.ts # should build the library ℹ tsdown v powered by rolldown v ℹ entry: src/index.ts @@ -57,6 +58,7 @@ Options: ℹ 1 files, total: kB ✔ Build complete in ms + > ls dist # should have the library index.js @@ -68,3 +70,4 @@ index.js ℹ dist/index.js kB │ gzip: kB ℹ 1 files, total: kB ✔ Build complete in ms + diff --git a/packages/cli/snap-tests/exit-code/snap.txt b/packages/cli/snap-tests/exit-code/snap.txt index 99f355d3d6..d9531e4a4e 100644 --- a/packages/cli/snap-tests/exit-code/snap.txt +++ b/packages/cli/snap-tests/exit-code/snap.txt @@ -2,6 +2,7 @@ $ echo success success + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ echo success (✓ cache hit, replaying) success + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -36,6 +38,7 @@ Task Details: $ node failure.js failure + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -53,6 +56,7 @@ Task Details: $ node failure.js failure + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/ignore_dist/snap.txt b/packages/cli/snap-tests/ignore_dist/snap.txt index 41820da28e..b73c154cf6 100644 --- a/packages/cli/snap-tests/ignore_dist/snap.txt +++ b/packages/cli/snap-tests/ignore_dist/snap.txt @@ -2,8 +2,10 @@ Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. + > mkdir dist > vite lint # new dist folder should not invalidate cache ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. + diff --git a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt index 7833ae8876..11abb67238 100644 --- a/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt +++ b/packages/cli/snap-tests/individual-cache-for-adt-args/snap.txt @@ -2,6 +2,7 @@ $ echo a a + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ echo b b + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -36,6 +38,7 @@ Task Details: $ echo a (✓ cache hit, replaying) a + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -53,6 +56,7 @@ Task Details: $ echo b (✓ cache hit, replaying) b + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/individual-cache-for-envs/snap.txt b/packages/cli/snap-tests/individual-cache-for-envs/snap.txt index e00d93dea6..ea1e95a78c 100644 --- a/packages/cli/snap-tests/individual-cache-for-envs/snap.txt +++ b/packages/cli/snap-tests/individual-cache-for-envs/snap.txt @@ -2,6 +2,7 @@ $ node -p process.env.FOO 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ node -p process.env.FOO (✗ cache miss: envs changed, executing) 2 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -36,6 +38,7 @@ Task Details: $ node -p process.env.FOO (✓ cache hit, replaying) 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -53,6 +56,7 @@ Task Details: $ node -p process.env.FOO (✓ cache hit, replaying) 2 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/lint-dot-git/snap.txt b/packages/cli/snap-tests/lint-dot-git/snap.txt index 588cbc5271..85ab452152 100644 --- a/packages/cli/snap-tests/lint-dot-git/snap.txt +++ b/packages/cli/snap-tests/lint-dot-git/snap.txt @@ -3,8 +3,10 @@ Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. + > echo hello > .git/foo.txt > vite lint # changes inside .git should not invalidate cache ✓ cache hit, replaying Found 0 warnings and 0 errors. Finished in ms on 0 files with rules using threads. + diff --git a/packages/cli/snap-tests/npm-install-with-options/snap.txt b/packages/cli/snap-tests/npm-install-with-options/snap.txt index 6521044bec..a29fbd3359 100644 --- a/packages/cli/snap-tests/npm-install-with-options/snap.txt +++ b/packages/cli/snap-tests/npm-install-with-options/snap.txt @@ -20,12 +20,14 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall Run "npm help install" for more info + > vite install --production # https://docs.npmjs.com/cli/v10/commands/npm-install added 1 package, and audited 2 packages in ms found 0 vulnerabilities + npm warn config production Use `--omit=dev` instead. > ls node_modules @@ -39,4 +41,5 @@ added 1 package, and audited 2 packages in ms found 0 vulnerabilities + npm warn config production Use `--omit=dev` instead. diff --git a/packages/cli/snap-tests/pass-no-color-env/snap.txt b/packages/cli/snap-tests/pass-no-color-env/snap.txt index e3ca65121b..0acc252001 100644 --- a/packages/cli/snap-tests/pass-no-color-env/snap.txt +++ b/packages/cli/snap-tests/pass-no-color-env/snap.txt @@ -2,6 +2,7 @@ $ node check.js --foo NO_COLOR=true, CI=true + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ node check.js --bar NO_COLOR=false, CI=true + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt b/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt index e82b4c0dc1..67d25e8e79 100644 --- a/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt +++ b/packages/cli/snap-tests/plain-terminal-ui-nested/snap.txt @@ -2,10 +2,14 @@ $ vite lint ./src Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + + $ vite lint Found 0 warnings and 0 errors. Finished in ms on 2 files with rules using threads. + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -27,10 +31,14 @@ Task Details: $ vite lint ./src (✓ cache hit, replaying) Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + + $ vite lint (✗ cache miss: content of input 'a.ts' changed, executing) Found 0 warnings and 0 errors. Finished in ms on 2 files with rules using threads. + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/plain-terminal-ui/snap.txt b/packages/cli/snap-tests/plain-terminal-ui/snap.txt index 02ef214e04..4182acfc4b 100644 --- a/packages/cli/snap-tests/plain-terminal-ui/snap.txt +++ b/packages/cli/snap-tests/plain-terminal-ui/snap.txt @@ -2,6 +2,7 @@ $ node hello.mjs input_content 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ node hello.mjs (✓ cache hit, replaying) input_content 1 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -36,6 +38,7 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content 2 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -53,6 +56,7 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content 2 + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -70,6 +74,7 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) input_content undefined + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -88,6 +93,7 @@ Task Details: $ node hello.mjs (✗ cache miss: content of input 'input.txt' changed, executing) bar undefined + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -106,6 +112,7 @@ Task Details: $ node hello.mjs (✗ cache miss: envs changed, executing) bar undefined + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -124,6 +131,7 @@ Task Details: ~/subfolder$ node hello.mjs (✗ cache miss: working directory changed, executing) hello from subfolder + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt b/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt index 19e1ca8d0d..37ea529663 100644 --- a/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt +++ b/packages/cli/snap-tests/replay-logs-chronological-order/snap.txt @@ -94,6 +94,7 @@ $ node build.js [echo.js] -------------------------------- [build.js] main process end + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -203,6 +204,7 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -312,6 +314,7 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -421,6 +424,7 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -530,6 +534,7 @@ $ node build.js (✓ cache hit, replaying) [echo.js] -------------------------------- [build.js] main process end + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/same-name-as-builtin/snap.txt b/packages/cli/snap-tests/same-name-as-builtin/snap.txt index 6516e6823d..893041b409 100644 --- a/packages/cli/snap-tests/same-name-as-builtin/snap.txt +++ b/packages/cli/snap-tests/same-name-as-builtin/snap.txt @@ -2,10 +2,12 @@ Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + > vite run lint # lint script should have different cache from builtin lint $ echo lint script lint script + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -25,10 +27,12 @@ Task Details: Found 0 warnings and 0 errors. Finished in ms on 1 file with rules using threads. + > vite run lint $ echo lint script (✓ cache hit, replaying) lint script + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/shared-caching-inputs/snap.txt b/packages/cli/snap-tests/shared-caching-inputs/snap.txt index e1f5409d0d..a29a3fb490 100644 --- a/packages/cli/snap-tests/shared-caching-inputs/snap.txt +++ b/packages/cli/snap-tests/shared-caching-inputs/snap.txt @@ -2,6 +2,7 @@ $ cat foo.txt bar + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,7 @@ Task Details: $ cat foo.txt (✓ cache hit, replaying) bar + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -37,6 +39,7 @@ Task Details: $ cat foo.txt (✗ cache miss: content of input 'foo.txt' changed, executing) baz + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -54,6 +57,7 @@ Task Details: $ cat foo.txt (✓ cache hit, replaying) baz + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/task-config-cwd/snap.txt b/packages/cli/snap-tests/task-config-cwd/snap.txt index 84cf331750..e93919dbc5 100644 --- a/packages/cli/snap-tests/task-config-cwd/snap.txt +++ b/packages/cli/snap-tests/task-config-cwd/snap.txt @@ -2,6 +2,7 @@ ~/subfolder$ node a.js hello from subfolder + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/task-no-trailing-newline/package.json b/packages/cli/snap-tests/task-no-trailing-newline/package.json new file mode 100644 index 0000000000..3807c88c54 --- /dev/null +++ b/packages/cli/snap-tests/task-no-trailing-newline/package.json @@ -0,0 +1,5 @@ +{ + "scripts": { + "hello": "echo -n foo && echo bar" + } +} diff --git a/packages/cli/snap-tests/task-no-trailing-newline/snap.txt b/packages/cli/snap-tests/task-no-trailing-newline/snap.txt new file mode 100644 index 0000000000..0d82a6f321 --- /dev/null +++ b/packages/cli/snap-tests/task-no-trailing-newline/snap.txt @@ -0,0 +1,22 @@ +> vite run hello +$ echo -n foo +foo +$ echo bar +bar + + +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + Vite+ Task Runner • Execution Summary +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + +Statistics: 2 tasks • 0 cache hits • 2 cache misses +Performance: 0% cache hit rate + +Task Details: +──────────────────────────────────────────────── + [1] hello(subcommand 0): $ echo -n foo ✓ + → Cache miss: no previous cache entry found + ······················································· + [2] hello: $ echo bar ✓ + → Cache miss: no previous cache entry found +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/task-no-trailing-newline/steps.json b/packages/cli/snap-tests/task-no-trailing-newline/steps.json new file mode 100644 index 0000000000..e1a52543b0 --- /dev/null +++ b/packages/cli/snap-tests/task-no-trailing-newline/steps.json @@ -0,0 +1,8 @@ +{ + "env": { + "VITE_DISABLE_AUTO_INSTALL": "1" + }, + "commands": [ + "vite run hello" + ] +} diff --git a/packages/cli/snap-tests/test-nested-tasks/snap.txt b/packages/cli/snap-tests/test-nested-tasks/snap.txt index 95d8d11772..77646d7252 100644 --- a/packages/cli/snap-tests/test-nested-tasks/snap.txt +++ b/packages/cli/snap-tests/test-nested-tasks/snap.txt @@ -2,6 +2,7 @@ $ echo 'hello vite' hello vite + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -19,6 +20,8 @@ Task Details: $ echo 'hello vite' (✓ cache hit, replaying) hello vite + + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Vite+ Task Runner • Execution Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/packages/cli/snap-tests/workspace-root-vite-config/snap.txt b/packages/cli/snap-tests/workspace-root-vite-config/snap.txt index 86450c5d08..0be72a4048 100644 --- a/packages/cli/snap-tests/workspace-root-vite-config/snap.txt +++ b/packages/cli/snap-tests/workspace-root-vite-config/snap.txt @@ -7,3 +7,4 @@ packages/app-b/index.js (ms) Format issues found in above 1 files. Run without `--check` to fix. Finished in ms on 1 files using threads. + diff --git a/packages/cli/snap-tests/yarn-install-with-options/snap.txt b/packages/cli/snap-tests/yarn-install-with-options/snap.txt index b8762de487..93dd8a9a28 100644 --- a/packages/cli/snap-tests/yarn-install-with-options/snap.txt +++ b/packages/cli/snap-tests/yarn-install-with-options/snap.txt @@ -64,6 +64,7 @@ Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. + > vite install --prod # https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-production-true-false yarn install v info No lockfile found. @@ -74,6 +75,7 @@ info No lockfile found. success Saved lockfile. Done in ms. + > ls node_modules tslib @@ -87,3 +89,4 @@ info No lockfile found. [4/4] Building fresh packages... success Saved lockfile. Done in ms. +