Commit 3af4839
committed
refactor: remove PM fallback from
The `run_or_delegate` module previously fell back to `<pm> run <script>`
when vite-plus was not a project dependency. This is no longer needed
because the global CLI ships with its own vite-plus installation, and
`delegate::execute()` already resolves local vite-plus first then falls
back to the global one.
Now `vp run` and `vpr` always delegate through the vite-plus task runner,
regardless of whether the project has vite-plus as a dependency.
Closes #1132vp run, always delegate to vite-plus1 parent 8616f4e commit 3af4839
File tree
12 files changed
+26
-667
lines changed- crates
- vite_global_cli/src
- commands
- vite_install/src/commands
- packages/cli/snap-tests-global
- command-run-without-vite-plus
- command-vpr
- delegate-respects-default-node-version
- rfcs
12 files changed
+26
-667
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1929 | 1929 | | |
1930 | 1930 | | |
1931 | 1931 | | |
1932 | | - | |
| 1932 | + | |
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
This file was deleted.
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
8 | 5 | | |
9 | 6 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 7 | | |
14 | | - | |
15 | | - | |
| 8 | + | |
| 9 | + | |
16 | 10 | | |
| 11 | + | |
17 | 12 | | |
18 | 13 | | |
19 | | - | |
20 | | - | |
21 | 14 | | |
22 | | - | |
| 15 | + | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
| 18 | + | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 38 | | |
| 39 | + | |
| 40 | + | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
49 | | - | |
50 | 43 | | |
51 | | - | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
0 commit comments