Commit e2d9b14
committed
fix: stop intercepting
`VitePlusCommandHandler` was intercepting both `vp` and `vite` program
names in task scripts. This caused `vp run dev` to fail with "Invalid
vite task command" when a package.json script used bare `vite` (e.g.
`"dev": "vite"`), because `vite` is a separate tool, not a vp alias.
Only intercept `vp` commands now; `vite` runs verbatim as an external
process.
Closes #1176vite as a vp command in task scripts1 parent e4862b2 commit e2d9b14
5 files changed
Lines changed: 50 additions & 7 deletions
File tree
- packages/cli
- binding/src
- snap-tests-global/command-run-script-vite-program
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
| 554 | + | |
| 555 | + | |
558 | 556 | | |
559 | | - | |
| 557 | + | |
560 | 558 | | |
561 | 559 | | |
562 | | - | |
563 | | - | |
564 | 560 | | |
565 | 561 | | |
566 | 562 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments