Commit 08a5993
authored
fix: remove auto-install feature from local CLI for better performance (#631)
The `vp run` command was automatically running `pnpm install` before
executing tasks, causing serious performance degradation. Remove the
entire auto-install feature:
- Delete `create_install_synthetic_request()` and auto-install block
from `execute_vite_task_command()` in the NAPI binding
- Remove `VITE_DISABLE_AUTO_INSTALL` env var from 147 snap test files
- Delete `auto-install-before-task` snap test and benchmark script
- Update docs and RFCs to remove auto-install references1 parent 5dc3a8b commit 08a5993
157 files changed
Lines changed: 27 additions & 553 deletions
File tree
- bench/benches
- docs/vite/guide
- packages
- cli
- binding/src
- snap-tests-global
- command-add-npm10-with-workspace
- command-add-npm10
- command-add-npm11-with-workspace
- command-add-npm11
- command-add-pnpm10-with-workspace
- command-add-pnpm10
- command-add-pnpm9-with-workspace
- command-add-pnpm9
- command-add-yarn4-with-workspace
- command-add-yarn4
- command-cache-npm10
- command-cache-pnpm10
- command-cache-yarn4
- command-config-npm10
- command-config-pnpm10
- command-config-yarn1
- command-config-yarn4
- command-dedupe-npm10
- command-dedupe-pnpm10
- command-dedupe-yarn4
- command-dlx-npm10
- command-dlx-pnpm10
- command-dlx-yarn4
- command-install-auto-create-package-json
- command-install-bug-31
- command-link-npm10
- command-link-pnpm10
- command-link-yarn4
- command-list-npm10-with-workspace
- command-list-npm10
- command-list-pnpm10-with-workspace
- command-list-pnpm10
- command-list-yarn1
- command-list-yarn4
- command-outdated-npm10-with-workspace
- command-outdated-npm10
- command-outdated-pnpm10-with-workspace
- command-outdated-pnpm10
- command-outdated-yarn4
- command-owner-npm10
- command-owner-pnpm10
- command-owner-yarn1
- command-owner-yarn4
- command-pack-npm10-with-workspace
- command-pack-npm10
- command-pack-pnpm10-with-workspace
- command-pack-pnpm10
- command-pack-yarn4-with-workspace
- command-pack-yarn4
- command-prune-npm10
- command-prune-pnpm10
- command-prune-yarn4
- command-publish-npm10
- command-publish-pnpm10
- command-publish-yarn1
- command-publish-yarn4
- command-remove-npm10-with-workspace
- command-remove-npm10
- command-remove-pnpm10-with-workspace
- command-remove-pnpm10
- command-remove-yarn4-with-workspace
- command-remove-yarn4
- command-run-without-vite-plus
- command-unlink-npm10
- command-unlink-pnpm10
- command-unlink-yarn4
- command-update-npm10-with-workspace
- command-update-npm10
- command-update-pnpm10-with-workspace
- command-update-pnpm10
- command-update-yarn4-with-workspace
- command-update-yarn4
- command-view-npm10
- command-view-pnpm10
- command-view-yarn1
- command-view-yarn4
- command-vpx-pnpm10
- command-why-npm10-with-workspace
- command-why-npm10
- command-why-pnpm10-with-workspace
- command-why-pnpm10
- command-why-yarn4
- dev-engines-runtime-pnpm10
- global-cli-fallback
- migration-agent-claude
- migration-auto-create-vite-config
- migration-from-tsdown-json-config
- migration-from-tsdown
- migration-from-vitest-config
- migration-from-vitest-files
- migration-lintstagedrc-json
- migration-lintstagedrc-not-support
- migration-merge-vite-config-js
- migration-merge-vite-config-ts
- migration-monorepo-pnpm-overrides-dependency-selector
- migration-monorepo-pnpm
- migration-monorepo-skip-vite-peer-dependency
- migration-monorepo-yarn4
- migration-no-agent
- migration-not-supported-npm8.2
- migration-not-supported-pnpm9.4
- migration-not-supported-vite6
- migration-not-supported-vitest3
- migration-rewrite-declare-module
- migration-skip-vite-dependency
- migration-skip-vite-peer-dependency
- new-create-vite-with-scope-name
- new-create-vite
- snap-tests-todo
- command-pack-watch-restart
- exit-non-zero-on-cmd-not-exists
- pnpm-install-with-options
- test-panicked-fix
- snap-tests
- auto-install-before-task
- build-vite-env
- cache-clean
- cache-scripts-default
- cache-scripts-enabled
- change-passthrough-env-config
- check-oxlint-env
- command-dev-with-port
- command-doc
- command-helper
- command-install-shortcut
- command-pack-monorepo
- command-pack
- command-preview
- command-vp-alias
- exit-code
- fingerprint-ignore-test
- fmt-check-ignore-temp-config
- fmt-ignore-patterns
- ignore_dist
- lint-ignore-patterns
- lint-ignore-temp-config
- npm-install-with-options
- oxlint-typeaware
- pass-no-color-env
- plain-terminal-ui-nested
- plain-terminal-ui
- synthetic-build-cache-disabled
- synthetic-dev-cache-disabled
- task-config-cwd
- test-nested-tasks
- vite-config-task
- vite-task-path-env-include-pm
- vitest-browser-mode
- vp-run-expansion
- workspace-root-vite-config
- yarn-install-with-options
- tools/src
- rfcs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
376 | 375 | | |
377 | 376 | | |
378 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | 647 | | |
674 | 648 | | |
675 | 649 | | |
| |||
766 | 740 | | |
767 | 741 | | |
768 | 742 | | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 743 | | |
785 | 744 | | |
786 | 745 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 3 | | |
7 | 4 | | |
8 | 5 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments