( stagingPath: string, installPath: string, downloadType: 'npm' | 'binary', )
| 422 | } |
| 423 | |
| 424 | async function installVersion( |
| 425 | stagingPath: string, |
| 426 | installPath: string, |
| 427 | downloadType: 'npm' | 'binary', |
| 428 | ) { |
| 429 | // Use the explicit download type instead of guessing |
| 430 | if (downloadType === 'npm') { |
| 431 | await installVersionFromPackage(stagingPath, installPath) |
| 432 | } else { |
| 433 | await installVersionFromBinary(stagingPath, installPath) |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | /** |
| 438 | * Performs the core update operation: download (if needed), install, and update symlink. |
no test coverage detected