Commit e041b2c
committed
docs(rfc): simplify Windows bin lookup to vp.cmd only
Package managers create `.cmd` shims on Windows for JS-based bins.
Trying `vp.exe` and bare `vp` as fallbacks is over-engineered noise:
- `vp.exe` would only be created for native binaries; `vp` is a JS
shim, so no package manager produces a .exe.
- Bare `vp` (no extension) on Windows isn't materialized on disk; it
works under shell environments via PATHEXT, but existsSync checks
filesystem entries and would miss it anyway.
Collapses the candidates loop to a single conditional path, drops the
"`.cmd`/`.exe`" mention from the prose.1 parent 401eb74 commit e041b2c
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 205 | + | |
| 206 | + | |
214 | 207 | | |
215 | 208 | | |
216 | 209 | | |
| |||
267 | 260 | | |
268 | 261 | | |
269 | 262 | | |
270 | | - | |
271 | | - | |
272 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
273 | 266 | | |
274 | 267 | | |
275 | 268 | | |
| |||
0 commit comments