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