Commit af9f92c
authored
fix: disable vp CLI caching and add force-install test matrix (#13)
## Summary
- Temporarily disable vp CLI caching (`restoreVpCache` / `saveVpCache`)
with early returns to avoid the Windows `Cannot find module 'which'`
issue (#10). Original code is preserved with FIXME comments.
- Add `SETUP_VP_FORCE_INSTALL` env var to bypass vp CLI cache (for
future use when caching is re-enabled)
- Add `force-install: [false, true]` matrix to all test jobs to cover
both cached and fresh install paths
- Revert install URLs back to `viteplus.dev`
## Changes
- `src/cache-vp.ts`: Add early returns to disable caching, original code
preserved
- `src/cache-vp.test.ts`: Skip cache restore/save tests with
`describe.skip` and FIXME comments
- `src/install-viteplus.ts`: Revert install URLs to `viteplus.dev`
- `.github/workflows/test.yml`: Add `force-install` matrix to all test
jobs, add `vp exec` / `vp run` test jobs
## Test plan
- [ ] All test jobs pass on all platforms with `force-install: false`
- [ ] All test jobs pass on all platforms with `force-install: true`
- [ ] `vp exec` works on Windows (the scenario that broke in #10)
Closes #10
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 3c260a1 commit af9f92c
File tree
5 files changed
+55
-9
lines changed- .github/workflows
- dist
- src
5 files changed
+55
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
| 68 | + | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
| |||
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
83 | 99 | | |
| 100 | + | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
| |||
106 | 124 | | |
107 | 125 | | |
108 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
109 | 131 | | |
| 132 | + | |
| 133 | + | |
110 | 134 | | |
111 | 135 | | |
112 | 136 | | |
| |||
136 | 160 | | |
137 | 161 | | |
138 | 162 | | |
| 163 | + | |
139 | 164 | | |
| 165 | + | |
| 166 | + | |
140 | 167 | | |
141 | 168 | | |
142 | 169 | | |
| |||
150 | 177 | | |
151 | 178 | | |
152 | 179 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 180 | | |
158 | 181 | | |
159 | 182 | | |
160 | 183 | | |
161 | 184 | | |
| 185 | + | |
162 | 186 | | |
| 187 | + | |
| 188 | + | |
163 | 189 | | |
164 | 190 | | |
165 | 191 | | |
| |||
187 | 213 | | |
188 | 214 | | |
189 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
190 | 220 | | |
| 221 | + | |
| 222 | + | |
191 | 223 | | |
192 | 224 | | |
193 | 225 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments